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 TypeMethodDescriptionvoidDeprecated.booleanDeprecated.@NotNull @ValidEmail StringgetEmail()Deprecated.@NotNull StringDeprecated.@NotNull IntegergetKey()Deprecated.Deprecated.@NotNull StringDeprecated.@NotNull StringgetName()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) StringDeprecated.The unique, immutable drupal user account name.inthashCode()Deprecated.booleanDeprecated.Checks if the user has the given user role.booleanisAdmin()Deprecated.voidDeprecated.voidsetFirstName(String firstName) Deprecated.voidDeprecated.voidsetLastLogin(Date lastLogin) Deprecated.voidsetLastName(String lastName) Deprecated.voidsetPasswordHash(String passwordHash) Deprecated.voidDeprecated.voidsetSettings(Map<String, String> settings) Deprecated.Sets the settings object, setting an empty map if null is provided.voidsetUserName(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