|
||||||||||
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(java.lang.String groupName)
Deprecated. Adds this user to a group. |
void |
addRole(java.lang.String roleName)
Deprecated. Simply log that its a dummy user. |
java.util.Collection<java.lang.String> |
getAllGroups()
Deprecated. Get all groups to which this user belongs to, collected recursively including. |
java.util.Collection<java.lang.String> |
getAllRoles()
Deprecated. Get all roles assigned to this user, collected recursively including groups/subgroups. |
java.util.Collection<java.lang.String> |
getGroups()
Deprecated. Get groups that are directly assigned to the user. |
java.lang.String |
getLanguage()
Deprecated. |
java.lang.String |
getName()
Deprecated. |
java.lang.String |
getPassword()
Deprecated. |
java.lang.String |
getProperty(java.lang.String propertyName)
Deprecated. Gets an arbitrary property from this user. |
java.util.Collection<java.lang.String> |
getRoles()
Deprecated. Get roles that are directly assigned to the user. |
boolean |
hasRole(java.lang.String roleName)
Deprecated. Dummy user has full access, always returns true. |
boolean |
inGroup(java.lang.String groupName)
Deprecated. Always returns true. |
boolean |
isEnabled()
Deprecated. Returns false if the user was explicitly disabled. |
void |
removeGroup(java.lang.String groupName)
Deprecated. Remove a group. |
void |
removeRole(java.lang.String roleName)
Deprecated. Simply log that its a dummy user. |
void |
setEnabled(boolean enabled)
Deprecated. |
void |
setProperty(java.lang.String propertyName,
java.lang.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(java.lang.String roleName)
roleName
- the name of the role
public void removeRole(java.lang.String roleName) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
public void addRole(java.lang.String roleName) throws java.lang.UnsupportedOperationException
roleName
- the name of the role
java.lang.UnsupportedOperationException
public boolean inGroup(java.lang.String groupName)
public void removeGroup(java.lang.String groupName) throws java.lang.UnsupportedOperationException
User
java.lang.UnsupportedOperationException
public void addGroup(java.lang.String groupName) throws java.lang.UnsupportedOperationException
User
java.lang.UnsupportedOperationException
public boolean isEnabled()
User
public void setEnabled(boolean enabled)
public java.lang.String getLanguage()
public java.lang.String getName()
public java.lang.String getPassword()
public java.lang.String getProperty(java.lang.String propertyName)
User
public void setProperty(java.lang.String propertyName, java.lang.String value)
User
public java.util.Collection<java.lang.String> getGroups()
User
public java.util.Collection<java.lang.String> getAllGroups()
User
public java.util.Collection<java.lang.String> getRoles()
User
public java.util.Collection<java.lang.String> getAllRoles()
User
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |