GbifUser
@Deprecated public class User extends Object
Constructor and Description |
---|
User()
Deprecated.
|
Modifier and Type | Method and 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.
|
public User()
@NotNull @ValidEmail public @NotNull @ValidEmail String getEmail()
@Nullable public Date getLastLogin()
public void setLastLogin(Date lastLogin)
@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()
public void setUserName(String userName)
@NotNull public @NotNull String getFirstName()
public void setFirstName(String firstName)
@NotNull public @NotNull String getLastName()
public void setLastName(String lastName)
@NotNull public @NotNull String getName()
public String getPasswordHash()
public void setPasswordHash(String passwordHash)
public boolean hasRole(UserRole role)
role
- public boolean isAdmin()
@NotNull public @NotNull Map<String,String> getSettings()
public void setSettings(Map<String,String> settings)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.