@Indexed @GenerateDto(dtoPackage="net.datenwerke.security.client.usermanager.dto", createDecorator=true, poso2DtoPostProcessors=User2DtoPostProcessor.class, displayTitle="getLastname() + \", \" + getFirstname()", typeDescriptionMsg=UserManagerMessages.class, typeDescriptionKey="user", icon="user", additionalFields=) public class User extends AbstractUserManagerNode
FLAG_CONFIGURATION_PROTECTION, FLAG_WRITE_PROTECTION
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
void |
addToGroup(Group group) |
java.lang.String |
getEmail() |
java.lang.String |
getFirstname() |
java.util.Set<Group> |
getGroups()
Returns the groups where this user is a member directly.
|
java.lang.String |
getLastname() |
java.lang.String |
getName() |
java.lang.String |
getPassword() |
java.util.Set<UserProperty> |
getProperties()
Usually you would not want to call this directly.
|
UserProperty |
getProperty(java.lang.String key) |
java.util.Collection<Group> |
getReferencedGroups(UserManagerService uService)
Deprecated.
|
Sex |
getSex() |
java.lang.String |
getTitle() |
java.lang.String |
getUsername() |
boolean |
hasChildren() |
boolean |
isActive() |
java.lang.Boolean |
isSuperUser() |
void |
setActive(boolean active) |
void |
setEmail(java.lang.String email) |
void |
setFirstname(java.lang.String firstname) |
void |
setGroups(java.util.Set<Group> groups) |
void |
setLastname(java.lang.String lastname) |
void |
setPassword(java.lang.String password,
PasswordHasher passwordHasher)
Usually you would not want to call this directly.
|
void |
setProperties(java.util.Set<UserProperty> properties)
Usually you would not want to call this directly.
|
void |
setSex(Sex sex) |
void |
setSuperUser(java.lang.Boolean superUser) |
void |
setTitle(java.lang.String title) |
void |
setUsername(java.lang.String username) |
java.lang.String |
toString() |
getGuid, getNodeName, getOrigin, getRootNodeName, setGuid, setOrigin
getAcl, getOwner, getParentTarget, setAcl, setOwner
addChild, addChild, addFlag, clearFlags, equals, getBaseType, getChildren, getChildrenOfType, getChildrenSorted, getCreatedOn, getDeniedChildren, getDescendants, getDescendants, getFlags, getId, getIdOrOldTransient, getLastUpdated, getManagerClass, getOldTransientId, getOldTransientKey, getParent, getPosition, getRootLine, getSupportedChildren, getVersion, hasChildrenOfType, hasDescendantsOfType, hasFlag, hashCode, idsMatch, isAncestorOf, isConfigurationProtected, isFolder, isRoot, isUpdateLastUpdated, isWriteProtected, removeChild, removeFlag, setChildren, setConfigurationProtection, setCreatedOn, setFlags, setId, setLastUpdated, setOldTransientId, setOldTransientKey, setParent, setPosition, setUpdateLastUpdated, setVersion, setWriteProtection, wouldContainFlag
public java.lang.String getFirstname()
public void setFirstname(java.lang.String firstname)
public java.lang.String getLastname()
public void setLastname(java.lang.String lastname)
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public java.lang.String getPassword()
public void setPassword(java.lang.String password, PasswordHasher passwordHasher)
UserManagerService.setPassword(User, String)
insteadpassword
- passwordHasher
- public java.util.Set<Group> getGroups()
public void setGroups(java.util.Set<Group> groups)
public void addToGroup(Group group)
public java.lang.String getEmail()
public void setEmail(java.lang.String email)
public Sex getSex()
public void setSex(Sex sex)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public void setSuperUser(java.lang.Boolean superUser)
public java.lang.Boolean isSuperUser()
public boolean isActive()
public void setActive(boolean active)
public void setProperties(java.util.Set<UserProperty> properties)
UserPropertiesService
insteadproperties
- public java.util.Set<UserProperty> getProperties()
UserPropertiesService
insteadpublic java.lang.String toString()
toString
in class AbstractNode<AbstractUserManagerNode>
@Deprecated public java.util.Collection<Group> getReferencedGroups(UserManagerService uService)
uService
- UserManagerService.getReferencedGroups(User)
public java.lang.String getName()
getName
in class AbstractUserManagerNode
public UserProperty getProperty(java.lang.String key)
public boolean hasChildren()
hasChildren
in class AbstractNode<AbstractUserManagerNode>