Class User

All Implemented Interfaces:
Securable, SecuredNotChild, User, Describable, Identifiable

@Entity public class User extends Person implements User
A user of the software system, who is authenticated.
  • Constructor Details

    • User

      public User()
  • Method Details

    • isEnabled

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

      public void setEnabled(boolean enabled)
    • getJobs

      public Set<JobInfo> getJobs()
    • setJobs

      public void setJobs(Set<JobInfo> jobs)
    • getGroups

      public Collection<UserGroup> getGroups()
      Specified by:
      getGroups in interface User
    • setGroups

      public void setGroups(Set<UserGroup> groups)
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface User
    • setPassword

      public void setPassword(String password)
    • getPasswordHint

      public String getPasswordHint()
      Specified by:
      getPasswordHint in interface User
    • setPasswordHint

      public void setPasswordHint(String passwordHint)
    • getSignupToken

      public String getSignupToken()
      Specified by:
      getSignupToken in interface User
    • setSignupToken

      public void setSignupToken(String signupToken)
    • getSignupTokenDatestamp

      public Date getSignupTokenDatestamp()
      Specified by:
      getSignupTokenDatestamp in interface User
    • setSignupTokenDatestamp

      public void setSignupTokenDatestamp(Date signupTokenDatestamp)
    • getDeletedAt

      public Date getDeletedAt()
      Timestamp of the admin soft-delete; null when the account is active. Hard-deleting users is forbidden — ACL sids, audit-event authors, and other references would dangle. See V16__user_soft_delete.sql.
    • setDeletedAt

      public void setDeletedAt(Date deletedAt)
    • getDeletedBy

      public String getDeletedBy()
      Username of the admin who soft-deleted this account; null when active. Free-form string (not an FK) so admin churn doesn't cascade.
    • setDeletedBy

      public void setDeletedBy(String deletedBy)
    • getUserName

      public String getUserName()
      Specified by:
      getUserName in interface User
    • setUserName

      public void setUserName(String userName)
      The username is immutable. See the update="false" field in the Hibernate mapping.
    • equals

      public boolean equals(Object object)
      Description copied from class: AbstractDescribable
      Important note: The name should be compared in a case-insensitive manner. You can use DescribableUtils.equalsByName(Describable, Describable) to get the correct behavior.

      Important note: Two objects with the same class and non-null ID must be considered equal. If one or both IDs are nulls, the rest of the state can be used to determine equality.

      Overrides:
      equals in class Contact
    • hashCode

      public int hashCode()
      Description copied from class: AbstractDescribable
      The default hash code for a describable is based on its name, ignoring case.

      Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.

      Overrides:
      hashCode in class AbstractDescribable