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