Class User
- java.lang.Object
-
- de.digitalcollections.model.security.User
-
public class User extends Object
An user of the system.
-
-
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()UUIDgetUuid()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)voidsetUuid(UUID uuid)
-
-
-
Method Detail
-
getEmail
public String getEmail()
-
getFirstname
public String getFirstname()
-
getLastname
public String getLastname()
-
getPasswordHash
public String getPasswordHash()
-
getUuid
public UUID getUuid()
-
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
-
setUuid
public void setUuid(UUID uuid)
-
-