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 byGbifUser
A 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 void
addRole(UserRole role)
Deprecated.boolean
equals(Object o)
Deprecated.@NotNull @ValidEmail String
getEmail()
Deprecated.@NotNull String
getFirstName()
Deprecated.@NotNull Integer
getKey()
Deprecated.Date
getLastLogin()
Deprecated.@NotNull String
getLastName()
Deprecated.@NotNull String
getName()
Deprecated.String
getPasswordHash()
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) String
getUserName()
Deprecated.The unique, immutable drupal user account name.int
hashCode()
Deprecated.boolean
hasRole(UserRole role)
Deprecated.Checks if the user has the given user role.boolean
isAdmin()
Deprecated.void
setEmail(String email)
Deprecated.void
setFirstName(String firstName)
Deprecated.void
setKey(Integer key)
Deprecated.void
setLastLogin(Date lastLogin)
Deprecated.void
setLastName(String lastName)
Deprecated.void
setPasswordHash(String passwordHash)
Deprecated.void
setRoles(Set<UserRole> roles)
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.String
toString()
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.
-
-