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:
java.io.Serializable, java.lang.Cloneable, InternalPrincipal, InternalUserPrincipal

public class InternalUserPrincipalImpl
extends InternalPrincipalImpl
implements InternalUserPrincipal

InternalUserPrincipal interface implementation.

Author:
David Le Strat
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jetspeed.security.om.impl.InternalPrincipalImpl
ojbConcreteClass
 
Constructor Summary
InternalUserPrincipalImpl()
          InternalUserPrincipal implementation default constructor.
InternalUserPrincipalImpl(java.lang.String username)
          Constructor to create a new user principal and its credential given a username and password.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares this InternalUserPrincipal to the provided user principal and check if they are equal.
 java.util.Collection getCredentials()
          Getter for the security credentials.
 java.util.Collection getGroupPrincipals()
          Getter for the group principals.
 java.util.Collection getRolePrincipals()
          Getter for the role principals.
 void setCredentials(java.util.Collection credentials)
          Setter for the security credentials.
 void setGroupPrincipals(java.util.Collection groupPrincipals)
          Setter for the group principals.
 void setRolePrincipals(java.util.Collection rolePrincipals)
          Setter for the role principals.
 
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
 

Constructor Detail

InternalUserPrincipalImpl

public InternalUserPrincipalImpl()

InternalUserPrincipal implementation default constructor.


InternalUserPrincipalImpl

public InternalUserPrincipalImpl(java.lang.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 java.util.Collection getCredentials()
Description copied from interface: InternalUserPrincipal

Getter for the security credentials.

Specified by:
getCredentials in interface InternalUserPrincipal
Returns:
The credentials.
See Also:
InternalUserPrincipal.getCredentials()

setCredentials

public void setCredentials(java.util.Collection credentials)
Description copied from interface: InternalUserPrincipal

Setter for the security credentials.

Specified by:
setCredentials in interface InternalUserPrincipal
Parameters:
credentials - The credentials.
See Also:
InternalUserPrincipal.setCredentials(java.util.Collection)

getRolePrincipals

public java.util.Collection getRolePrincipals()
Description copied from interface: InternalUserPrincipal

Getter for the role principals.

Specified by:
getRolePrincipals in interface InternalUserPrincipal
Returns:
The role principals.
See Also:
InternalUserPrincipal.getRolePrincipals()

setRolePrincipals

public void setRolePrincipals(java.util.Collection rolePrincipals)
Description copied from interface: InternalUserPrincipal

Setter for the role principals.

Specified by:
setRolePrincipals in interface InternalUserPrincipal
Parameters:
rolePrincipals - The role principals.
See Also:
InternalUserPrincipal.setRolePrincipals(java.util.Collection)

getGroupPrincipals

public java.util.Collection getGroupPrincipals()
Description copied from interface: InternalUserPrincipal

Getter for the group principals.

Specified by:
getGroupPrincipals in interface InternalUserPrincipal
Returns:
The group principals.
See Also:
InternalUserPrincipal.getGroupPrincipals()

setGroupPrincipals

public void setGroupPrincipals(java.util.Collection groupPrincipals)
Description copied from interface: InternalUserPrincipal

Setter for the group principals.

Specified by:
setGroupPrincipals in interface InternalUserPrincipal
Parameters:
groupPrincipals - The group principals.
See Also:
InternalUserPrincipal.setGroupPrincipals(java.util.Collection)

equals

public boolean equals(java.lang.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 java.lang.Object


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