Klasse User

java.lang.Object
de.dlr.proseo.usermgr.model.User
Alle implementierten Schnittstellen:
org.springframework.data.domain.Persistable<String>

@Entity(name="users") public class User extends Object implements org.springframework.data.domain.Persistable<String>
A prosEO user (actually the user's credentials).
Autor:
Dr. Thomas Bassler
  • Konstruktordetails

    • User

      public User()
  • Methodendetails

    • getUsername

      public String getUsername()
      Gets the user name
      Gibt zurück:
      the user name
    • setUsername

      public void setUsername(String username)
      Sets the user name
      Parameter:
      username - the user name to set
    • getPassword

      public String getPassword()
      Gets the encrypted password
      Gibt zurück:
      the password
    • setPassword

      public void setPassword(String password)
      Sets the encrypted password
      Parameter:
      password - the password to set
    • getEnabled

      public Boolean getEnabled()
      Indicates whether the user account is enabled; an account is always disabled, if its expiration date is in the past
      Gibt zurück:
      true, if the user account is enabled, false otherwise
    • setEnabled

      public void setEnabled(Boolean enabled)
      Sets the enabling status of the user account
      Parameter:
      enabled - the status to set
    • getExpirationDate

      public Date getExpirationDate()
      Gets the expiration date of the account
      Gibt zurück:
      the expirationDate
    • setExpirationDate

      public void setExpirationDate(Date expirationDate)
      Sets the account expiration date
      Parameter:
      expirationDate - the expiration date to set
    • getPasswordExpirationDate

      public Date getPasswordExpirationDate()
      Gets the expiration date of the password
      Gibt zurück:
      the password expiration date
    • setPasswordExpirationDate

      public void setPasswordExpirationDate(Date passwordExpirationDate)
      Sets the password expiration date
      Parameter:
      passwordExpirationDate - the password expiration date to set
    • getQuota

      public Quota getQuota()
      Gets the data download quota
      Gibt zurück:
      a Quota object
    • setQuota

      public void setQuota(Quota quota)
      Gets the data download quota
      Parameter:
      quota - the Quota object to set
    • getAuthorities

      public Set<Authority> getAuthorities()
      Gets the user's set of authorities
      Gibt zurück:
      a set of authorities
    • setAuthorities

      public void setAuthorities(Set<Authority> authorities)
      Sets the user's set of authorities
      Parameter:
      authorities - the authorities to set
    • getGroupMemberships

      public Set<GroupMember> getGroupMemberships()
      Gets the group memberships for this user
      Gibt zurück:
      the groupMemberships
    • setGroupMemberships

      public void setGroupMemberships(Set<GroupMember> groupMemberships)
      Sets the group memberships for this user
      Parameter:
      groupMemberships - the groupMemberships to set
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • equals

      public boolean equals(Object obj)
      Setzt außer Kraft:
      equals in Klasse Object
    • getId

      public String getId()
      Angegeben von:
      getId in Schnittstelle org.springframework.data.domain.Persistable<String>
    • isNew

      public boolean isNew()
      Angegeben von:
      isNew in Schnittstelle org.springframework.data.domain.Persistable<String>
    • markNotNew

      void markNotNew()
      Switch "isNew" flag to indicate an existing entity after a repository call to save(…) or an instance creation by the persistence provider. (cf. https://docs.spring.io/spring-data/jpa/docs/2.2.5.RELEASE/reference/html/#reference)