|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface User
Represents a magnolia user.
Method Summary | |
---|---|
void |
addGroup(String groupName)
Adds this user to a group. |
void |
addRole(String roleName)
Adds a role to this user. |
Collection<String> |
getAllGroups()
Get all groups to which this user belongs to, collected recursively including. |
Collection<String> |
getAllRoles()
Get all roles assigned to this user, collected recursively including groups/subgroups. |
Collection<String> |
getGroups()
Get groups that are directly assigned to the user. |
String |
getLanguage()
|
String |
getName()
|
String |
getPassword()
|
String |
getProperty(String propertyName)
Gets an arbitrary property from this user. |
Collection<String> |
getRoles()
Get roles that are directly assigned to the user. |
Subject |
getSubject()
Returns the jaas subject if available. |
boolean |
hasRole(String roleName)
Is this user in a specified role? |
boolean |
inGroup(String groupName)
Is this user in a specified group? |
boolean |
isEnabled()
Returns false if the user was explicitly disabled. |
void |
removeGroup(String groupName)
Remove a group. |
void |
removeRole(String roleName)
Remove a role. |
void |
setEnabled(boolean enabled)
|
void |
setProperty(String propertyName,
String value)
Sets an arbitrary property for this user. |
void |
setSubject(Subject subject)
The jass login handler will set the subject. |
Method Detail |
---|
boolean hasRole(String roleName)
roleName
- the name of the role
void removeRole(String roleName) throws UnsupportedOperationException
UnsupportedOperationException
void addRole(String roleName) throws UnsupportedOperationException
roleName
- the name of the role
UnsupportedOperationException
boolean inGroup(String groupName)
void removeGroup(String groupName) throws UnsupportedOperationException
UnsupportedOperationException
void addGroup(String groupName) throws UnsupportedOperationException
UnsupportedOperationException
boolean isEnabled()
void setEnabled(boolean enabled)
String getLanguage()
String getName()
String getPassword()
String getProperty(String propertyName)
void setProperty(String propertyName, String value)
Collection<String> getGroups()
Collection<String> getAllGroups()
Collection<String> getRoles()
Collection<String> getAllRoles()
Subject getSubject()
void setSubject(Subject subject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |