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:
Serializable, Cloneable, org.apache.jetspeed.security.om.InternalPrincipal, org.apache.jetspeed.security.om.InternalRolePrincipal

public class InternalRolePrincipalImpl
extends InternalPrincipalImpl
implements org.apache.jetspeed.security.om.InternalRolePrincipal

InternalRolePrincipal interface implementation.

Author:
David Le Strat
See Also:
Serialized Form

Field Summary
private  Collection groupPrincipals
           
(package private) static String ROLE_PRINCIPAL_CLASSNAME
          Role principal security class.
private static long serialVersionUID
          The serial version uid.
private  Collection userPrincipals
           
 
Fields inherited from class org.apache.jetspeed.security.om.impl.InternalPrincipalImpl
ojbConcreteClass
 
Constructor Summary
InternalRolePrincipalImpl()
          Role principal implementation default constructor.
InternalRolePrincipalImpl(String fullPath)
          Constructor to create a new role principal.
 
Method Summary
 boolean equals(Object object)
          Compares this InternalRolePrincipal to the provided role principal and check if they are equal.
 Collection getGroupPrincipals()
           
 Collection getUserPrincipals()
           
 void setGroupPrincipals(Collection groupPrincipals)
           
 void setUserPrincipals(Collection userPrincipals)
           
 
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

ROLE_PRINCIPAL_CLASSNAME

static String ROLE_PRINCIPAL_CLASSNAME

Role principal security class.


userPrincipals

private Collection userPrincipals

groupPrincipals

private Collection groupPrincipals
Constructor Detail

InternalRolePrincipalImpl

public InternalRolePrincipalImpl()

Role principal implementation default constructor.


InternalRolePrincipalImpl

public InternalRolePrincipalImpl(String fullPath)

Constructor to create a new role principal.

Parameters:
fullPath - The role full path.
Method Detail

getUserPrincipals

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

setUserPrincipals

public void setUserPrincipals(Collection userPrincipals)
Specified by:
setUserPrincipals in interface org.apache.jetspeed.security.om.InternalRolePrincipal
See Also:
InternalRolePrincipal.setUserPrincipals(java.util.Collection)

getGroupPrincipals

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

setGroupPrincipals

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

equals

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


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