@Deprecated public class DummyUser extends AbstractUser
Constructor and Description |
---|
DummyUser()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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 this user belongs to, collected recursively including supergroups.
|
Collection<String> |
getAllRoles()
Deprecated.
Get all roles assigned to this user, collected recursively including groups and supergroups.
|
Collection<String> |
getGroups()
Deprecated.
Get groups that are directly assigned to the user.
|
String |
getIdentifier()
Deprecated.
Gets user identifier.
|
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.
|
public boolean hasRole(String roleName)
roleName
- the name of the rolepublic void removeRole(String roleName) throws UnsupportedOperationException
UnsupportedOperationException
public void addRole(String roleName) throws UnsupportedOperationException
roleName
- the name of the roleUnsupportedOperationException
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 String getIdentifier()
User
public Collection<String> getGroups()
User
public Collection<String> getAllGroups()
User
public Collection<String> getRoles()
User
public Collection<String> getAllRoles()
User
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.