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 String
getEmail()
String
getFirstname()
String
getLastname()
String
getPasswordHash()
List<Role>
getRoles()
boolean
isEnabled()
void
setEmail(String email)
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
setRoles(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
-
-