Class User
- java.lang.Object
-
- de.digitalcollections.model.UniqueObject
-
- de.digitalcollections.model.security.User
-
public class User extends UniqueObject
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
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEmail()StringgetFirstname()StringgetLastname()StringgetPasswordHash()List<Role>getRoles()booleanisEnabled()voidsetEmail(String email)voidsetEnabled(boolean enabled)voidsetFirstname(String firstname)voidsetLastname(String lastname)voidsetPasswordHash(String passwordHash)Sets password hash if password hash is not empty, otherwise no operation.voidsetRoles(List<Role> userRoles)-
Methods inherited from class de.digitalcollections.model.UniqueObject
equals, getCreated, getLastModified, getUuid, hashCode, init, setCreated, setLastModified, setUuid
-
-
-
-
Method Detail
-
getEmail
public String getEmail()
-
getFirstname
public String getFirstname()
-
getLastname
public String getLastname()
-
getPasswordHash
public String getPasswordHash()
-
isEnabled
public boolean isEnabled()
-
setEmail
public void setEmail(String email)
-
setEnabled
public void setEnabled(boolean enabled)
-
setFirstname
public void setFirstname(String firstname)
-
setLastname
public void setLastname(String lastname)
-
setPasswordHash
public void setPasswordHash(String passwordHash)
Sets password hash if password hash is not empty, otherwise no operation. Deleting of password is not possible.- Parameters:
passwordHash- new hashed password
-
-