Class User

java.lang.Object
org.gbif.api.model.common.User

@Deprecated public class User extends Object
Deprecated.
replaced by GbifUser
A GBIF user account registered in the Drupal user database.
  • Constructor Details

    • User

      public User()
      Deprecated.
  • Method Details

    • getKey

      @NotNull public @NotNull Integer getKey()
      Deprecated.
    • setKey

      public void setKey(Integer key)
      Deprecated.
    • getEmail

      @NotNull @ValidEmail public @NotNull @ValidEmail String getEmail()
      Deprecated.
    • setEmail

      public void setEmail(String email)
      Deprecated.
    • getLastLogin

      @Nullable public Date getLastLogin()
      Deprecated.
    • setLastLogin

      public void setLastLogin(Date lastLogin)
      Deprecated.
    • getUserName

      @NotNull @Pattern(regexp="^[a-z0-9_.-]+$") @Size(min=3, max=64) public @NotNull @Pattern(regexp="^[a-z0-9_.-]+$") @Size(min=3,max=64) String getUserName()
      Deprecated.
      The unique, immutable drupal user account name. This name should be used for referring to a user. The account name is made of ASCII lower case alphanumerics, underscore, dash or dots and is in particular void of whitespace.
    • setUserName

      public void setUserName(String userName)
      Deprecated.
    • getFirstName

      @NotNull public @NotNull String getFirstName()
      Deprecated.
      Returns:
      the first name of a person
    • setFirstName

      public void setFirstName(String firstName)
      Deprecated.
    • getLastName

      @NotNull public @NotNull String getLastName()
      Deprecated.
      Returns:
      the last name of the user
    • setLastName

      public void setLastName(String lastName)
      Deprecated.
    • getName

      @NotNull public @NotNull String getName()
      Deprecated.
      Returns:
      the first and last name of the user concatenated with a space
    • getPasswordHash

      Deprecated.
      Returns:
      the drupal hashed version of the user password.
    • setPasswordHash

      public void setPasswordHash(String passwordHash)
      Deprecated.
    • getRoles

      @NotNull public @NotNull Set<UserRole> getRoles()
      Deprecated.
    • setRoles

      public void setRoles(Set<UserRole> roles)
      Deprecated.
    • addRole

      public void addRole(UserRole role)
      Deprecated.
    • hasRole

      public boolean hasRole(UserRole role)
      Deprecated.
      Checks if the user has the given user role.
      Parameters:
      role -
      Returns:
      true if the user has the requested role
    • isAdmin

      public boolean isAdmin()
      Deprecated.
    • getSettings

      @NotNull public @NotNull Map<String,String> getSettings()
      Deprecated.
      Gets the settings which may be empty but never null.
      Returns:
    • setSettings

      public void setSettings(Map<String,String> settings)
      Deprecated.
      Sets the settings object, setting an empty map if null is provided.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object