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

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

public class InternalGroupPrincipalImpl
extends InternalPrincipalImpl
implements org.apache.jetspeed.security.om.InternalGroupPrincipal

InternalGroupPrincipal interface implementation.

Author:
David Le Strat
See Also:
Serialized Form

Field Summary
(package private) static String GROUP_PRINCIPAL_CLASSNAME
          Group principal security class.
private  Collection rolePrincipals
           
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
InternalGroupPrincipalImpl()
          Group principal implementation default constructor.
InternalGroupPrincipalImpl(String fullPath)
          Constructor to create a new group principal.
 
Method Summary
 boolean equals(Object object)
          Compares this InternalGroupPrincipal to the provided group principal and check if they are equal.
 Collection getRolePrincipals()
           
 Collection getUserPrincipals()
           
 void setRolePrincipals(Collection rolePrincipals)
           
 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

GROUP_PRINCIPAL_CLASSNAME

static String GROUP_PRINCIPAL_CLASSNAME

Group principal security class.


userPrincipals

private Collection userPrincipals

rolePrincipals

private Collection rolePrincipals
Constructor Detail

InternalGroupPrincipalImpl

public InternalGroupPrincipalImpl()

Group principal implementation default constructor.


InternalGroupPrincipalImpl

public InternalGroupPrincipalImpl(String fullPath)

Constructor to create a new group principal.

Parameters:
fullPath - The group full path.
Method Detail

getUserPrincipals

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

setUserPrincipals

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

getRolePrincipals

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

setRolePrincipals

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

equals

public boolean equals(Object object)

Compares this InternalGroupPrincipal to the provided group principal and check if they are equal.

return Whether the InternalGroupPrincipal are equal.

Overrides:
equals in class Object


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