Class User
java.lang.Object
de.digitalcollections.model.UniqueObject
de.digitalcollections.model.security.User
An user of the system.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.digitalcollections.model.UniqueObject
UniqueObject.UniqueObjectBuilder<C extends UniqueObject,
B extends UniqueObject.UniqueObjectBuilder<C, B>> -
Field Summary
Fields inherited from class de.digitalcollections.model.UniqueObject
created, lastModified, uuid
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEmail()
getRoles()
protected void
init()
Use to initialize member variables, used by default constructor and builderboolean
void
void
setEnabled
(boolean enabled) void
setFirstname
(String firstname) void
setLastname
(String lastname) void
setPasswordHash
(String passwordHash) Sets password hash if password hash is not empty, otherwise no operation.void
Methods inherited from class de.digitalcollections.model.UniqueObject
equals, getCreated, getLastModified, getUuid, hashCode, isPersisted, setCreated, setLastModified, setUuid
-
Constructor Details
-
User
public User()
-
-
Method Details
-
getEmail
-
getFirstname
-
getLastname
-
getPasswordHash
-
getRoles
-
init
protected void init()Description copied from class:UniqueObject
Use to initialize member variables, used by default constructor and builder- Overrides:
init
in classUniqueObject
-
isEnabled
public boolean isEnabled() -
setEmail
-
setEnabled
public void setEnabled(boolean enabled) -
setFirstname
-
setLastname
-
setPasswordHash
Sets password hash if password hash is not empty, otherwise no operation. Deleting of password is not possible.- Parameters:
passwordHash
- new hashed password
-
setRoles
-