Package org.gbif.api.model.common
Class GbifUser
java.lang.Object
org.gbif.api.model.common.AbstractGbifUser
org.gbif.api.model.common.GbifUser
A GBIF user account registered in the user Identity database (previously Drupal).
This class is the replacement of
User.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) IntegergetKey()@NotNull StringinthashCode()voidvoidsetLastLogin(Date lastLogin) voidsetPasswordHash(String passwordHash) toString()Methods inherited from class org.gbif.api.model.common.AbstractGbifUser
addRole, getDeleted, getEmail, getFirstName, getLastName, getLocale, getName, getRoles, getSettings, getSystemSettings, getUserName, hasRole, setDeleted, setEmail, setFirstName, setLastName, setRoles, setSettings, setSystemSettings, setUserName
-
Constructor Details
-
GbifUser
public GbifUser() -
GbifUser
-
-
Method Details
-
getKey
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Integer getKey() -
setKey
-
getLastLogin
-
setLastLogin
-
getPasswordHash
- Returns:
- the hashed version of the user password.
-
setPasswordHash
-
equals
- Overrides:
equalsin classAbstractGbifUser
-
hashCode
- Overrides:
hashCodein classAbstractGbifUser
-
toString
- Overrides:
toStringin classAbstractGbifUser
-