| java.lang.Object org.apache.jetspeed.security.impl.BasePrincipalImpl
All known Subclasses: org.apache.jetspeed.security.impl.UserPrincipalImpl, org.apache.jetspeed.security.impl.RolePrincipalImpl, org.apache.jetspeed.security.impl.GroupPrincipalImpl,
BasePrincipalImpl | public BasePrincipalImpl(String name, String prefsRoot, boolean hiearchicalNames)(Code) | |
Principal constructor given a name and preferences root.
Parameters: name - The principal name. Parameters: prefsRoot - The preferences root node. |
BasePrincipalImpl | public BasePrincipalImpl(String name, String prefsRoot, boolean hiearchicalNames, boolean isEnabled, boolean isMapping)(Code) | | |
getFullPathFromPrincipalName | public static String getFullPathFromPrincipalName(String name, String prefsRoot, boolean hiearchicalNames)(Code) | |
Gets the principal implementation full path from the principal name.
Hierarchical principal names should follow: {principal}.{subprincipal}. "." is used as the
separator for hierarchical elements.
The implementation path follow /PREFS_{PRINCIPAL}_ROOT/{principal}/{subprincipal}.
Parameters: name - The principal name. Parameters: prefsRoot - The preferences root node. Parameters: hiearchicalNames - indicator if hierarchy encoding (replacing '.' with '/') should be done The preferences full path / principal name. |
getPrincipalNameFromFullPath | public static String getPrincipalNameFromFullPath(String fullPath, String prefsRoot, boolean hiearchicalNames)(Code) | |
Gets the principal name from the principal implementation full path.
Hierarchical principal names should follow: {principal}.{subprincipal}. "." is used as the
separator for hierarchical elements.
The implementation path follow /PREFS_{PRINCIPAL}_ROOT/{principal}/{subprincipal}.
Parameters: fullPath - The principal full path. Parameters: prefsRoot - The preferences root node. Parameters: hiearchicalNames - indicator if hierarchical decoding (replacing '/' with '.') should be done The principal name. |
isMapping | public boolean isMapping()(Code) | | |
toString | public String toString()(Code) | |
Returns a string representation of this principal.
A string representation of this principal. |
|
|