Klasse RestUser

java.lang.Object
de.dlr.proseo.usermgr.rest.model.RestUser
Alle implementierten Schnittstellen:
Serializable

public class RestUser extends Object implements Serializable
Siehe auch:
  • Felddetails

    • serialVersionUID

      static final long serialVersionUID
      Siehe auch:
    • username

      protected String username
      The (unique) user name, consisting of the mission code, a hyphen ("-") and the actual cross-mission user name
    • password

      protected String password
      The user password (BCrypt-encrypted string; not required for updates)
    • enabled

      protected Boolean enabled
      Flag indicating whether the user account is enabled.
    • authorities

      protected List<String> authorities
      The authorities granted to this user (filtered by mission)
    • expirationDate

      protected Date expirationDate
      The expiration date for the user account (default never)
    • passwordExpirationDate

      protected Date passwordExpirationDate
      The expiration date for the password (default never)
    • quota

      protected RestQuota quota
      Data download quota for this user (if not set, no quota applies)
  • Konstruktordetails

    • RestUser

      public RestUser()
      Creates a new RestUser.
    • RestUser

      public RestUser(String username, String password, Boolean enabled, List<String> authorities, Date expirationDate, Date passwordExpirationDate, RestQuota quota)
      Creates a new RestUser.
  • Methodendetails

    • getUsername

      @NotNull public @NotNull String getUsername()
      Returns the username.
      Gibt zurück:
      username
    • setUsername

      public void setUsername(String username)
      Set the username.
      Parameter:
      username - the new username
    • getPassword

      public String getPassword()
      Returns the password.
      Gibt zurück:
      password
    • setPassword

      public void setPassword(String password)
      Set the password.
      Parameter:
      password - the new password
    • getEnabled

      @NotNull public @NotNull Boolean getEnabled()
      Returns the enabled.
      Gibt zurück:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
      Set the enabled.
      Parameter:
      enabled - the new enabled
    • getAuthorities

      @NotNull public @NotNull List<String> getAuthorities()
      Returns the authorities.
      Gibt zurück:
      authorities
    • setAuthorities

      public void setAuthorities(List<String> authorities)
      Set the authorities.
      Parameter:
      authorities - the new authorities
    • getExpirationDate

      public Date getExpirationDate()
      Returns the expirationDate.
      Gibt zurück:
      expirationDate
    • setExpirationDate

      public void setExpirationDate(Date expirationDate)
      Set the expirationDate.
      Parameter:
      expirationDate - the new expirationDate
    • getPasswordExpirationDate

      public Date getPasswordExpirationDate()
      Returns the passwordExpirationDate.
      Gibt zurück:
      passwordExpirationDate
    • setPasswordExpirationDate

      public void setPasswordExpirationDate(Date passwordExpirationDate)
      Set the passwordExpirationDate.
      Parameter:
      passwordExpirationDate - the new passwordExpirationDate
    • getQuota

      @Valid public @Valid RestQuota getQuota()
      Returns the quota.
      Gibt zurück:
      quota
    • setQuota

      public void setQuota(RestQuota quota)
      Set the quota.
      Parameter:
      quota - the new quota
    • hashCode

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

      public boolean equals(Object other)
      Setzt außer Kraft:
      equals in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object