Package org.gbif.api.model.common
Class User
java.lang.Object
org.gbif.api.model.common.User
Deprecated.
A GBIF user account registered in the Drupal user database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.boolean
Deprecated.@NotNull @ValidEmail String
getEmail()
Deprecated.@NotNull String
Deprecated.@NotNull Integer
getKey()
Deprecated.Deprecated.@NotNull String
Deprecated.@NotNull String
getName()
Deprecated.Deprecated.getRoles()
Deprecated.Deprecated.Gets the settings which may be empty but never null.@NotNull @Pattern(regexp="^[a-z0-9_.-]+$") @Size(min=3,max=64) String
Deprecated.The unique, immutable drupal user account name.int
hashCode()
Deprecated.boolean
Deprecated.Checks if the user has the given user role.boolean
isAdmin()
Deprecated.void
Deprecated.void
setFirstName
(String firstName) Deprecated.void
Deprecated.void
setLastLogin
(Date lastLogin) Deprecated.void
setLastName
(String lastName) Deprecated.void
setPasswordHash
(String passwordHash) Deprecated.void
Deprecated.void
setSettings
(Map<String, String> settings) Deprecated.Sets the settings object, setting an empty map if null is provided.void
setUserName
(String userName) Deprecated.toString()
Deprecated.
-
Constructor Details
-
User
public User()Deprecated.
-
-
Method Details
-
getKey
Deprecated. -
setKey
Deprecated. -
getEmail
Deprecated. -
setEmail
Deprecated. -
getLastLogin
Deprecated. -
setLastLogin
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
Deprecated. -
getFirstName
Deprecated.- Returns:
- the first name of a person
-
setFirstName
Deprecated. -
getLastName
Deprecated.- Returns:
- the last name of the user
-
setLastName
Deprecated. -
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
Deprecated. -
getRoles
Deprecated. -
setRoles
Deprecated. -
addRole
Deprecated. -
hasRole
Deprecated.Checks if the user has the given user role.- Parameters:
role
-- Returns:
- true if the user has the requested role
-
isAdmin
Deprecated. -
getSettings
Deprecated.Gets the settings which may be empty but never null.- Returns:
-
setSettings
Deprecated.Sets the settings object, setting an empty map if null is provided. -
equals
Deprecated. -
hashCode
Deprecated. -
toString
Deprecated.
-
GbifUser