|
||||||||||
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)
Deprecated. since 4.5 - use UserManager.addGroup(User, String) instead. |
void |
addRole(String roleName)
Deprecated. since 4.5 - use UserManager.addRole(User, String) instead. |
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. |
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)
Deprecated. since 4.5 - use UserManager#removeGroup(User, String) instead. |
void |
removeRole(String roleName)
Deprecated. since 4.5 - use UserManager#removeRole(User, String) instead. |
void |
setEnabled(boolean enabled)
|
void |
setProperty(String propertyName,
String value)
Sets an arbitrary property for this user. |
Methods inherited from interface java.security.Principal |
---|
equals, hashCode, toString |
Method Detail |
---|
boolean hasRole(String roleName)
roleName
- the name of the role
@Deprecated void removeRole(String roleName) throws UnsupportedOperationException
UserManager#removeRole(User, String)
instead.
UnsupportedOperationException
@Deprecated void addRole(String roleName) throws UnsupportedOperationException
UserManager.addRole(User, String)
instead.
roleName
- the name of the role
UnsupportedOperationException
boolean inGroup(String groupName)
@Deprecated void removeGroup(String groupName) throws UnsupportedOperationException
UserManager#removeGroup(User, String)
instead.
UnsupportedOperationException
@Deprecated void addGroup(String groupName) throws UnsupportedOperationException
UserManager.addGroup(User, String)
instead.
UnsupportedOperationException
boolean isEnabled()
void setEnabled(boolean enabled)
String getLanguage()
String getName()
getName
in interface Principal
String getPassword()
String getProperty(String propertyName)
void setProperty(String propertyName, String value)
Collection<String> getGroups()
Collection<String> getAllGroups()
Collection<String> getRoles()
Collection<String> getAllRoles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |