Package org.gbif.api.model.common
Class User
- java.lang.Object
-
- org.gbif.api.model.common.User
-
@Deprecated public class User extends Object
Deprecated.replaced byGbifUserA GBIF user account registered in the Drupal user database.
-
-
Constructor Summary
Constructors Constructor Description User()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddRole(UserRole role)Deprecated.booleanequals(Object o)Deprecated.@NotNull @ValidEmail StringgetEmail()Deprecated.@NotNull StringgetFirstName()Deprecated.@NotNull IntegergetKey()Deprecated.DategetLastLogin()Deprecated.@NotNull StringgetLastName()Deprecated.@NotNull StringgetName()Deprecated.StringgetPasswordHash()Deprecated.@NotNull Set<UserRole>getRoles()Deprecated.@NotNull Map<String,String>getSettings()Deprecated.Gets the settings which may be empty but never null.@NotNull @Pattern(regexp="^[a-z0-9_.-]+$") @Size(min=3,max=64) StringgetUserName()Deprecated.The unique, immutable drupal user account name.inthashCode()Deprecated.booleanhasRole(UserRole role)Deprecated.Checks if the user has the given user role.booleanisAdmin()Deprecated.voidsetEmail(String email)Deprecated.voidsetFirstName(String firstName)Deprecated.voidsetKey(Integer key)Deprecated.voidsetLastLogin(Date lastLogin)Deprecated.voidsetLastName(String lastName)Deprecated.voidsetPasswordHash(String passwordHash)Deprecated.voidsetRoles(Set<UserRole> roles)Deprecated.voidsetSettings(Map<String,String> settings)Deprecated.Sets the settings object, setting an empty map if null is provided.voidsetUserName(String userName)Deprecated.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
User
public User()
Deprecated.
-
-
Method Detail
-
getEmail
@NotNull @ValidEmail public @NotNull @ValidEmail String getEmail()
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
public String getPasswordHash()
Deprecated.- Returns:
- the drupal hashed version of the user password.
-
setPasswordHash
public void setPasswordHash(String passwordHash)
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.
-
-