org.apache.jetspeed.security.om.impl
Class InternalUserPrincipalImpl

java.lang.Object
  extended by org.apache.jetspeed.security.om.impl.InternalPrincipalImpl
      extended by org.apache.jetspeed.security.om.impl.InternalUserPrincipalImpl
All Implemented Interfaces:
Serializable, Cloneable, org.apache.jetspeed.security.om.InternalPrincipal, org.apache.jetspeed.security.om.InternalUserPrincipal

public class InternalUserPrincipalImpl
extends InternalPrincipalImpl
implements org.apache.jetspeed.security.om.InternalUserPrincipal

InternalUserPrincipal interface implementation.

Author:
David Le Strat
See Also:
Serialized Form

Field Summary
private  Collection credentials
          The credentials.
private  Collection groupPrincipals
          The group principals.
private  Collection rolePrincipals
          The role principals.
private static long serialVersionUID
          The serial version uid.
(package private) static String USER_PRINCIPAL_CLASSNAME
          User principal security class.
 
Fields inherited from class org.apache.jetspeed.security.om.impl.InternalPrincipalImpl
ojbConcreteClass
 
Constructor Summary
InternalUserPrincipalImpl()
          InternalUserPrincipal implementation default constructor.
InternalUserPrincipalImpl(String username)
          Constructor to create a new user principal and its credential given a username and password.
 
Method Summary
 boolean equals(Object object)
          Compares this InternalUserPrincipal to the provided user principal and check if they are equal.
 Collection getCredentials()
           
 Collection getGroupPrincipals()
           
 Collection getRolePrincipals()
           
 void setCredentials(Collection credentials)
           
 void setGroupPrincipals(Collection groupPrincipals)
           
 void setRolePrincipals(Collection rolePrincipals)
           
 
Methods inherited from class org.apache.jetspeed.security.om.impl.InternalPrincipalImpl
getClassname, getCreationDate, getFullPath, getModifiedDate, getPermissions, getPrincipalId, isEnabled, isMappingOnly, setClassname, setCreationDate, setEnabled, setFullPath, setMappingOnly, setModifiedDate, setPermissions, setPrincipalId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.security.om.InternalPrincipal
getClassname, getCreationDate, getFullPath, getModifiedDate, getPermissions, getPrincipalId, isEnabled, isMappingOnly, setClassname, setCreationDate, setEnabled, setFullPath, setMappingOnly, setModifiedDate, setPermissions, setPrincipalId
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serial version uid.

See Also:
Constant Field Values

USER_PRINCIPAL_CLASSNAME

static String USER_PRINCIPAL_CLASSNAME

User principal security class.


credentials

private Collection credentials
The credentials.


rolePrincipals

private Collection rolePrincipals
The role principals.


groupPrincipals

private Collection groupPrincipals
The group principals.

Constructor Detail

InternalUserPrincipalImpl

public InternalUserPrincipalImpl()

InternalUserPrincipal implementation default constructor.


InternalUserPrincipalImpl

public InternalUserPrincipalImpl(String username)

Constructor to create a new user principal and its credential given a username and password.

Parameters:
username - The username.
Method Detail

getCredentials

public Collection getCredentials()
Specified by:
getCredentials in interface org.apache.jetspeed.security.om.InternalUserPrincipal
See Also:
InternalUserPrincipal.getCredentials()

setCredentials

public void setCredentials(Collection credentials)
Specified by:
setCredentials in interface org.apache.jetspeed.security.om.InternalUserPrincipal
See Also:
InternalUserPrincipal.setCredentials(java.util.Collection)

getRolePrincipals

public Collection getRolePrincipals()
Specified by:
getRolePrincipals in interface org.apache.jetspeed.security.om.InternalUserPrincipal
See Also:
InternalUserPrincipal.getRolePrincipals()

setRolePrincipals

public void setRolePrincipals(Collection rolePrincipals)
Specified by:
setRolePrincipals in interface org.apache.jetspeed.security.om.InternalUserPrincipal
See Also:
InternalUserPrincipal.setRolePrincipals(java.util.Collection)

getGroupPrincipals

public Collection getGroupPrincipals()
Specified by:
getGroupPrincipals in interface org.apache.jetspeed.security.om.InternalUserPrincipal
See Also:
InternalUserPrincipal.getGroupPrincipals()

setGroupPrincipals

public void setGroupPrincipals(Collection groupPrincipals)
Specified by:
setGroupPrincipals in interface org.apache.jetspeed.security.om.InternalUserPrincipal
See Also:
InternalUserPrincipal.setGroupPrincipals(java.util.Collection)

equals

public boolean equals(Object object)

Compares this InternalUserPrincipal to the provided user principal and check if they are equal.

return Whether the InternalUserPrincipal are equal.

Overrides:
equals in class Object


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.