You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jv...@apache.org on 2001/06/28 09:32:30 UTC

cvs commit: jakarta-turbine/src/java/org/apache/turbine/om/security TurbineUserPeer.java

jvanzyl     01/06/28 00:32:29

  Modified:    src/java/org/apache/turbine/om/security TurbineUserPeer.java
  Log:
  - class must implement UserPeer or we get a class cast exception in
    the DBSecurityService when trying to get an instance the user peer.
    required to get the tdk sample app working again. we should just
    deprecate all the crap in the 2.1 branch and do this cleanly
    for 2.2.
  
  Revision  Changes    Path
  1.2       +3 -3      jakarta-turbine/src/java/org/apache/turbine/om/security/TurbineUserPeer.java
  
  Index: TurbineUserPeer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/src/java/org/apache/turbine/om/security/TurbineUserPeer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TurbineUserPeer.java	2001/06/26 20:09:42	1.1
  +++ TurbineUserPeer.java	2001/06/28 07:32:23	1.2
  @@ -68,10 +68,11 @@
    * @author <a href="mailto:john.mcnally@clearink.com">John D. McNally</a>
    * @author <a href="mailto:bmclaugh@algx.net">Brett McLaughlin</a>
    * @author <a href="mailto:mpoeschl@marmot.at">Martin Poeschl</a>
  - * @version $Id: TurbineUserPeer.java,v 1.1 2001/06/26 20:09:42 mpoeschl Exp $
  + * @version $Id: TurbineUserPeer.java,v 1.2 2001/06/28 07:32:23 jvanzyl Exp $
    */
   public class TurbineUserPeer
       extends org.apache.turbine.om.security.BaseTurbineUserPeer
  +    implements org.apache.turbine.om.security.peer.UserPeer
   {
       /** The key name for the username field. */
       public static final String USERNAME = LOGIN_NAME; //"TURBINE_USER.LOGIN_NAME";
  @@ -81,7 +82,7 @@
        */
       public static Criteria buildCriteria(User user)
       {
  -        return buildCriteria((TurbineUser)user);
  +       return buildCriteria((TurbineUser)user);
       }
   
       /**
  @@ -176,5 +177,4 @@
           criteria.setIgnoreCase(true);
           return TurbineUserPeer.doSelect(criteria);
       }
  -
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org