Package org.gbif.api.model.common
Class GbifUser
- java.lang.Object
-
- org.gbif.api.model.common.AbstractGbifUser
-
- org.gbif.api.model.common.GbifUser
-
public class GbifUser extends AbstractGbifUser
A GBIF user account registered in the user Identity database (previously Drupal). This class is the replacement ofUser
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Integer
getKey()
Date
getLastLogin()
@NotNull String
getPasswordHash()
int
hashCode()
void
setKey(Integer key)
void
setLastLogin(Date lastLogin)
void
setPasswordHash(String passwordHash)
String
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
-
-
-
-
Method Detail
-
getKey
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Integer getKey()
-
getLastLogin
@Nullable public Date getLastLogin()
-
setLastLogin
public void setLastLogin(Date lastLogin)
-
getPasswordHash
@NotNull public @NotNull String getPasswordHash()
- Returns:
- the hashed version of the user password.
-
setPasswordHash
public void setPasswordHash(String passwordHash)
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractGbifUser
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractGbifUser
-
toString
public String toString()
- Overrides:
toString
in classAbstractGbifUser
-
-