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

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

public class InternalRolePrincipalImpl
extends InternalPrincipalImpl
implements InternalRolePrincipal

InternalRolePrincipal 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
InternalRolePrincipalImpl()
          Role principal implementation default constructor.
InternalRolePrincipalImpl(java.lang.String fullPath)
          Constructor to create a new role principal.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares this InternalRolePrincipal to the provided role principal and check if they are equal.
 java.util.Collection getGroupPrincipals()
          Getter for the group principals.
 java.util.Collection getUserPrincipals()
          Getter for the user principals.
 void setGroupPrincipals(java.util.Collection groupPrincipals)
          Setter for the group principals.
 void setUserPrincipals(java.util.Collection userPrincipals)
          Setter for the user 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

InternalRolePrincipalImpl

public InternalRolePrincipalImpl()

Role principal implementation default constructor.


InternalRolePrincipalImpl

public InternalRolePrincipalImpl(java.lang.String fullPath)

Constructor to create a new role principal.

Parameters:
fullPath - The role full path.
Method Detail

getUserPrincipals

public java.util.Collection getUserPrincipals()
Description copied from interface: InternalRolePrincipal

Getter for the user principals.

Specified by:
getUserPrincipals in interface InternalRolePrincipal
Returns:
The user principals.
See Also:
InternalRolePrincipal.getUserPrincipals()

setUserPrincipals

public void setUserPrincipals(java.util.Collection userPrincipals)
Description copied from interface: InternalRolePrincipal

Setter for the user principals.

Specified by:
setUserPrincipals in interface InternalRolePrincipal
Parameters:
userPrincipals - The user principals.
See Also:
InternalRolePrincipal.setUserPrincipals(java.util.Collection)

getGroupPrincipals

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

Getter for the group principals.

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

setGroupPrincipals

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

Setter for the group principals.

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

equals

public boolean equals(java.lang.Object object)

Compares this InternalRolePrincipal to the provided role principal and check if they are equal.

return Whether the InternalRolePrincipal are equal.

Overrides:
equals in class java.lang.Object


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