|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jetspeed.security.impl.BasePrincipalImpl
BasePrincipal interface implementation.
| Field Summary | |
private boolean |
enabled
|
private String |
fullPath
The full path. |
private String |
name
The principal name. |
private static long |
serialVersionUID
The version uid. |
| Fields inherited from interface org.apache.jetspeed.security.BasePrincipal |
PREFS_GROUP_ROOT, PREFS_ROLE_ROOT, PREFS_USER_ROOT |
| Constructor Summary | |
BasePrincipalImpl(String name,
String prefsRoot)
Principal constructor given a name and preferences root. |
|
| Method Summary | |
String |
getFullPath()
|
static String |
getFullPathFromPrincipalName(String name,
String prefsRoot)
Gets the principal implementation full path from the principal name. |
String |
getName()
|
static String |
getPrincipalNameFromFullPath(String fullPath,
String prefsRoot)
Gets the principal name from the principal implementation full path. |
int |
hashCode()
|
boolean |
isEnabled()
|
void |
setEnabled(boolean enabled)
|
String |
toString()
Returns a string representation of this principal. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
equals |
| Field Detail |
private static final long serialVersionUID
private final String name
private final String fullPath
private boolean enabled
| Constructor Detail |
public BasePrincipalImpl(String name,
String prefsRoot)
Principal constructor given a name and preferences root.
name - The principal name.prefsRoot - The preferences root node.| Method Detail |
public String getFullPath()
getFullPath in interface org.apache.jetspeed.security.BasePrincipalBasePrincipal.getFullPath()public String getName()
getName in interface PrincipalPrincipal.getName()public int hashCode()
hashCode in interface PrincipalObject.hashCode()public String toString()
Returns a string representation of this principal.
toString in interface Principal
public static String getFullPathFromPrincipalName(String name,
String prefsRoot)
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}.
name - The principal name.prefsRoot - The preferences root node.
public static String getPrincipalNameFromFullPath(String fullPath,
String prefsRoot)
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}.
fullPath - The principal full path.prefsRoot - The preferences root node.
public boolean isEnabled()
isEnabled in interface org.apache.jetspeed.security.BasePrincipalBasePrincipal.isEnabled()public void setEnabled(boolean enabled)
setEnabled in interface org.apache.jetspeed.security.BasePrincipalBasePrincipal.setEnabled(boolean)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||