public abstract class AbstractGbifUser extends Object
Constructor and Description |
---|
AbstractGbifUser() |
Modifier and Type | Method and Description |
---|---|
void |
addRole(UserRole role) |
boolean |
equals(Object o) |
Date |
getDeleted() |
@NotNull @ValidEmail String |
getEmail() |
String |
getFirstName() |
String |
getLastName() |
Locale |
getLocale() |
String |
getName() |
@NotNull Set<UserRole> |
getRoles() |
@NotNull Map<String,String> |
getSettings()
Gets the settings which may be empty but never null.
|
@NotNull Map<String,String> |
getSystemSettings()
Gets the settings which may be empty but never null.
|
@NotNull @Pattern(regexp="^[a-z0-9_.-]+$") @Size(min=3,max=64) String |
getUserName()
The unique, immutable drupal user account name.
|
int |
hashCode() |
boolean |
hasRole(UserRole role)
Checks if the user has the given user role.
|
void |
setDeleted(Date deleted) |
void |
setEmail(String email) |
void |
setFirstName(String firstName) |
void |
setLastName(String lastName) |
void |
setRoles(Set<UserRole> roles) |
void |
setSettings(Map<String,String> settings)
Sets the settings object, setting an empty map if null is provided.
|
void |
setSystemSettings(Map<String,String> systemSettings)
Sets the settings object, setting an empty map if null is provided.
|
void |
setUserName(String userName) |
String |
toString() |
public AbstractGbifUser()
@NotNull @ValidEmail public @NotNull @ValidEmail String getEmail()
@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)
public String getFirstName()
public void setFirstName(String firstName)
public String getLastName()
public void setLastName(String lastName)
public String getName()
public boolean hasRole(UserRole role)
role
- user rolepublic void setSettings(Map<String,String> settings)
@NotNull public @NotNull Map<String,String> getSettings()
public void setSystemSettings(Map<String,String> systemSettings)
@NotNull public @NotNull Map<String,String> getSystemSettings()
public Date getDeleted()
public void setDeleted(Date deleted)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.