java.lang.Object
de.digitalcollections.model.UniqueObject
de.digitalcollections.model.security.User

public class User extends UniqueObject
An user of the system.
  • Constructor Details

    • User

      public User()
  • Method Details

    • getEmail

      public String getEmail()
    • getFirstname

      public String getFirstname()
    • getLastname

      public String getLastname()
    • getPasswordHash

      public String getPasswordHash()
    • getRoles

      public List<Role> getRoles()
    • init

      protected void init()
      Description copied from class: UniqueObject
      Use to initialize member variables, used by default constructor and builder
      Overrides:
      init in class UniqueObject
    • 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
    • setRoles

      public void setRoles(List<Role> userRoles)