|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.security.AbstractUser info.magnolia.cms.security.DummyUser
public class DummyUser
Dummy user implementation returned when an actual user instance can't be instantiated.
Field Summary |
---|
Fields inherited from class info.magnolia.cms.security.AbstractUser |
---|
subject |
Method Summary | |
---|---|
void |
addGroup(String groupName)
Deprecated. Adds this user to a group. |
void |
addRole(String roleName)
Deprecated. Simply log that its a dummy user. |
Collection<String> |
getAllGroups()
Deprecated. Get all groups to which this user belongs to, collected recursively including. |
Collection<String> |
getAllRoles()
Deprecated. Get all roles assigned to this user, collected recursively including groups/subgroups. |
Collection<String> |
getGroups()
Deprecated. Get groups that are directly assigned to the user. |
String |
getLanguage()
Deprecated. |
String |
getName()
Deprecated. |
String |
getPassword()
Deprecated. |
String |
getProperty(String propertyName)
Deprecated. Gets an arbitrary property from this user. |
Collection<String> |
getRoles()
Deprecated. Get roles that are directly assigned to the user. |
boolean |
hasRole(String roleName)
Deprecated. Dummy user has full access, always returns true. |
boolean |
inGroup(String groupName)
Deprecated. Always returns true. |
boolean |
isEnabled()
Deprecated. Returns false if the user was explicitly disabled. |
void |
removeGroup(String groupName)
Deprecated. Remove a group. |
void |
removeRole(String roleName)
Deprecated. Simply log that its a dummy user. |
void |
setEnabled(boolean enabled)
Deprecated. |
void |
setProperty(String propertyName,
String value)
Deprecated. Sets an arbitrary property for this user. |
Methods inherited from class info.magnolia.cms.security.AbstractUser |
---|
getSubject, setSubject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean hasRole(String roleName)
roleName
- the name of the role
public void removeRole(String roleName) throws UnsupportedOperationException
UnsupportedOperationException
public void addRole(String roleName) throws UnsupportedOperationException
roleName
- the name of the role
UnsupportedOperationException
public boolean inGroup(String groupName)
public void removeGroup(String groupName) throws UnsupportedOperationException
User
UnsupportedOperationException
public void addGroup(String groupName) throws UnsupportedOperationException
User
UnsupportedOperationException
public boolean isEnabled()
User
public void setEnabled(boolean enabled)
public String getLanguage()
public String getName()
public String getPassword()
public String getProperty(String propertyName)
User
public void setProperty(String propertyName, String value)
User
public Collection<String> getGroups()
User
public Collection<String> getAllGroups()
User
public Collection<String> getRoles()
User
public Collection<String> getAllRoles()
User
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |