java.lang.Object
de.digitalcollections.model.impl.security.UserImpl
All Implemented Interfaces:
User

public class UserImpl
extends java.lang.Object
implements User
  • Constructor Summary

    Constructors
    Constructor Description
    UserImpl()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getEmail()  
    java.lang.String getFirstname()  
    java.lang.String getLastname()  
    java.lang.String getPasswordHash()  
    java.util.List<Role> getRoles()  
    java.util.UUID getUuid()  
    boolean isEnabled()  
    void setEmail​(java.lang.String email)  
    void setEnabled​(boolean enabled)  
    void setFirstname​(java.lang.String firstname)  
    void setLastname​(java.lang.String lastname)  
    void setPasswordHash​(java.lang.String passwordHash)
    Sets password hash if password hash is not empty, otherwise no operation.
    void setRoles​(java.util.List<Role> userRoles)  
    void setUuid​(java.util.UUID uuid)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UserImpl

      public UserImpl()
  • Method Details

    • getEmail

      public java.lang.String getEmail()
      Specified by:
      getEmail in interface User
    • setEmail

      public void setEmail​(java.lang.String email)
      Specified by:
      setEmail in interface User
    • getFirstname

      public java.lang.String getFirstname()
      Specified by:
      getFirstname in interface User
    • setFirstname

      public void setFirstname​(java.lang.String firstname)
      Specified by:
      setFirstname in interface User
    • getLastname

      public java.lang.String getLastname()
      Specified by:
      getLastname in interface User
    • setLastname

      public void setLastname​(java.lang.String lastname)
      Specified by:
      setLastname in interface User
    • getPasswordHash

      public java.lang.String getPasswordHash()
      Specified by:
      getPasswordHash in interface User
    • setPasswordHash

      public void setPasswordHash​(java.lang.String passwordHash)
      Sets password hash if password hash is not empty, otherwise no operation. Deleting of password is not possible.
      Specified by:
      setPasswordHash in interface User
      Parameters:
      passwordHash - new hashed password
    • getRoles

      public java.util.List<Role> getRoles()
      Specified by:
      getRoles in interface User
    • setRoles

      public void setRoles​(java.util.List<Role> userRoles)
      Specified by:
      setRoles in interface User
    • getUuid

      public java.util.UUID getUuid()
      Specified by:
      getUuid in interface User
    • setUuid

      public void setUuid​(java.util.UUID uuid)
      Specified by:
      setUuid in interface User
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface User
    • setEnabled

      public void setEnabled​(boolean enabled)
      Specified by:
      setEnabled in interface User