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 booleanequals(Object o)@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) IntegergetKey()DategetLastLogin()@NotNull StringgetPasswordHash()inthashCode()voidsetKey(Integer key)voidsetLastLogin(Date lastLogin)voidsetPasswordHash(String passwordHash)StringtoString()-
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:
equalsin classAbstractGbifUser
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractGbifUser
-
toString
public String toString()
- Overrides:
toStringin classAbstractGbifUser
-
-