|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.security.impl.BasePrincipalImpl org.apache.jetspeed.security.impl.RolePrincipalImpl
public class RolePrincipalImpl
RolePrincipal
interface implementation.
Field Summary | |
---|---|
private static boolean |
hiearchicalNames
|
private static long |
serialVersionUID
The serial version uid. |
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. |
|
RolePrincipalImpl(String roleName,
boolean isEnabled,
boolean isMapping)
|
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 |
getFullPathFromPrincipalName(String name,
String prefsRoot)
|
static String |
getPrincipalNameFromFullPath(String fullPath)
Gets the principal name from the principal implementation full path. |
static Object |
useHierarchicalNames(boolean hierarchicalNames)
|
Methods inherited from class org.apache.jetspeed.security.impl.BasePrincipalImpl |
---|
getFullPath, getFullPathFromPrincipalName, getName, getPrincipalNameFromFullPath, hashCode, isEnabled, isMapping, 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, isMapping, setEnabled |
Methods inherited from interface java.security.Principal |
---|
getName, hashCode, toString |
Field Detail |
---|
private static final long serialVersionUID
private static boolean hiearchicalNames
Constructor Detail |
---|
public RolePrincipalImpl(String roleName)
The role principal constructor.
roleName
- The role principal name.public RolePrincipalImpl(String roleName, boolean isEnabled, boolean isMapping)
Method Detail |
---|
public static final Object useHierarchicalNames(boolean hierarchicalNames)
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
equals
in class Object
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.
public static String getFullPathFromPrincipalName(String name, String prefsRoot)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |