Class UserImpl
- java.lang.Object
-
- de.digitalcollections.model.impl.security.UserImpl
-
-
Constructor Summary
Constructors Constructor Description UserImpl()
-
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
-
getFirstname
public String getFirstname()
- Specified by:
getFirstnamein interfaceUser
-
setFirstname
public void setFirstname(String firstname)
- Specified by:
setFirstnamein interfaceUser
-
getLastname
public String getLastname()
- Specified by:
getLastnamein interfaceUser
-
setLastname
public void setLastname(String lastname)
- Specified by:
setLastnamein interfaceUser
-
getPasswordHash
public String getPasswordHash()
- Specified by:
getPasswordHashin interfaceUser
-
setPasswordHash
public void setPasswordHash(String passwordHash)
Sets password hash if password hash is not empty, otherwise no operation. Deleting of password is not possible.- Specified by:
setPasswordHashin interfaceUser- Parameters:
passwordHash- new hashed password
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfaceUser
-
-