Class User
java.lang.Object
net.datenwerke.treedb.service.treedb.AbstractNode<AbstractUserManagerNode>
net.datenwerke.security.service.treedb.entities.SecuredAbstractNode<AbstractUserManagerNode>
net.datenwerke.security.service.usermanager.entities.AbstractUserManagerNode
net.datenwerke.security.service.usermanager.entities.User
- All Implemented Interfaces:
Serializable,HierarchicalSecurityTarget,Owneable,SecurityTarget
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@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
- See Also:
-
Field Summary
Fields inherited from class net.datenwerke.treedb.service.treedb.AbstractNode
FLAG_CONFIGURATION_PROTECTION, FLAG_WRITE_PROTECTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToGroup(Group group) getEmail()Returns the groups where this user is a member directly.getName()Usually you would not want to call this directly.getProperty(String key) getReferencedGroups(UserManagerService uService) Deprecated.getSex()getTitle()booleanbooleanisActive()voidsetActive(boolean active) voidvoidsetFirstname(String firstname) voidvoidsetLastname(String lastname) voidsetPassword(String password, PasswordHasher passwordHasher) Usually you would not want to call this directly.voidsetProperties(Set<UserProperty> properties) Usually you would not want to call this directly.voidvoidsetSuperUser(Boolean superUser) voidvoidsetUsername(String username) toString()Methods inherited from class net.datenwerke.security.service.usermanager.entities.AbstractUserManagerNode
getGuid, getNodeName, getOrigin, getRootNodeName, setGuid, setOriginMethods inherited from class net.datenwerke.security.service.treedb.entities.SecuredAbstractNode
getAcl, getOwner, getParentTarget, setAcl, setOwnerMethods inherited from class net.datenwerke.treedb.service.treedb.AbstractNode
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
-
Constructor Details
-
User
public User()
-
-
Method Details
-
getFirstname
-
setFirstname
-
getLastname
-
setLastname
-
getUsername
-
setUsername
-
getPassword
-
setPassword
Usually you would not want to call this directly. UseUserManagerService.setPassword(User, String)instead- Parameters:
password-passwordHasher-
-
getGroups
Returns the groups where this user is a member directly. -
setGroups
-
addToGroup
-
getEmail
-
setEmail
-
getSex
-
setSex
-
getTitle
-
setTitle
-
setSuperUser
-
isSuperUser
-
isActive
public boolean isActive() -
setActive
public void setActive(boolean active) -
setProperties
Usually you would not want to call this directly. UseUserPropertiesServiceinstead- Parameters:
properties-
-
getProperties
Usually you would not want to call this directly. UseUserPropertiesServiceinstead -
toString
- Overrides:
toStringin classAbstractNode<AbstractUserManagerNode>
-
getReferencedGroups
Deprecated.- Parameters:
uService-- See Also:
-
getName
- Specified by:
getNamein classAbstractUserManagerNode
-
getProperty
-
hasChildren
public boolean hasChildren()- Overrides:
hasChildrenin classAbstractNode<AbstractUserManagerNode>
-