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) Integer
getKey()
@NotNull String
int
hashCode()
void
void
setLastLogin
(Date lastLogin) void
setPasswordHash
(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:
equals
in classAbstractGbifUser
-
hashCode
- Overrides:
hashCode
in classAbstractGbifUser
-
toString
- Overrides:
toString
in classAbstractGbifUser
-