|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.security.impl.BasePrincipalImpl
org.apache.jetspeed.security.impl.RolePrincipalImpl
RolePrincipal
interface implementation.
Field Summary |
Fields inherited from class org.apache.jetspeed.security.impl.BasePrincipalImpl |
|
Fields inherited from interface org.apache.jetspeed.security.BasePrincipal |
PREFS_GROUP_ROOT, PREFS_ROLE_ROOT, PREFS_USER_ROOT |
Constructor Summary | |
RolePrincipalImpl(String roleName)
The role principal constructor. |
Method Summary | |
boolean |
equals(Object another)
Compares this principal to the specified object. |
static String |
getFullPathFromPrincipalName(String name)
Gets the principal implementation full path from the principal name. |
static String |
getPrincipalNameFromFullPath(String fullPath)
Gets the principal name from the principal implementation full path. |
Methods inherited from class org.apache.jetspeed.security.impl.BasePrincipalImpl |
getFullPath, getFullPathFromPrincipalName, getName, getPrincipalNameFromFullPath, hashCode, isEnabled, setEnabled, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jetspeed.security.BasePrincipal |
getFullPath, isEnabled, setEnabled |
Methods inherited from interface java.security.Principal |
getName, hashCode, toString |
Constructor Detail |
public RolePrincipalImpl(String roleName)
The role principal constructor.
roleName
- The role principal name.Method Detail |
public boolean equals(Object another)
Compares this principal to the specified object. Returns true if the object passed in matches the principal represented by the implementation of this interface.
equals
in interface Principal
another
- Principal to compare with.
public static String getFullPathFromPrincipalName(String name)
Gets the principal implementation full path from the principal name.
Prepends PREFS_ROLE_ROOT if not prepended.
name
- The principal name.
public static String getPrincipalNameFromFullPath(String fullPath)
Gets the principal name from the principal implementation full path.
Remove prepended PREFS_ROLE_ROOT if present.
fullPath
- The principal full path.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |