|
||||||||||
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.GroupPrincipalImpl
public class GroupPrincipalImpl
GroupPrincipal
interface implementation.
Field Summary |
---|
Fields inherited from interface org.apache.jetspeed.security.BasePrincipal |
---|
PREFS_GROUP_ROOT, PREFS_ROLE_ROOT, PREFS_USER_ROOT |
Constructor Summary | |
---|---|
GroupPrincipalImpl(java.lang.String groupName)
The group principal constructor. |
|
GroupPrincipalImpl(java.lang.String groupName,
boolean isEnabled,
boolean isMapping)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object another)
Compares this principal to the specified object. |
static java.lang.String |
getFullPathFromPrincipalName(java.lang.String name)
Gets the principal implementation full path from the principal name. |
static java.lang.String |
getFullPathFromPrincipalName(java.lang.String name,
java.lang.String prefsRoot)
|
static java.lang.String |
getPrincipalNameFromFullPath(java.lang.String fullPath)
Gets the principal name from the principal implementation full path. |
static java.lang.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 |
Constructor Detail |
---|
public GroupPrincipalImpl(java.lang.String groupName)
The group principal constructor.
groupName
- The group principal name.public GroupPrincipalImpl(java.lang.String groupName, boolean isEnabled, boolean isMapping)
Method Detail |
---|
public static final java.lang.Object useHierarchicalNames(boolean hierarchicalNames)
public boolean equals(java.lang.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 java.security.Principal
equals
in class java.lang.Object
another
- Principal to compare with.
public static java.lang.String getFullPathFromPrincipalName(java.lang.String name)
Gets the principal implementation full path from the principal name.
Prepends PREFS_GROUP_ROOT if not prepended.
name
- The principal name.
public static java.lang.String getPrincipalNameFromFullPath(java.lang.String fullPath)
Gets the principal name from the principal implementation full path.
Remove prepended PREFS_GROUP_ROOT if present.
fullPath
- The principal full path.
public static java.lang.String getFullPathFromPrincipalName(java.lang.String name, java.lang.String prefsRoot)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |