@MappedSuperclass public abstract class SecurityUser extends DefaultNamedEntity
HANDLE_REGEX, HANDLE_SPECIAL_CHARS, HANDLE_SPECIAL_CHARS_REGEX| Constructor and Description |
|---|
SecurityUser() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEmail() |
String |
getPasswordHash() |
String |
getRoles()
Returns all user roles as a string.
|
boolean |
hasRole(String role) |
void |
setEmail(String email) |
void |
setPassword(String password) |
void |
setRoles(String... roles)
Sets the user roles.
|
generateHandle, getAvatar, getHandle, getName, setAvatar, setHandle, setNamecopyNonNullProperties, equals, fromJson, getCreatedDateTime, getDeletedDateTime, getId, getSqlHint, getUpdatedDateTime, hashCode, isDeleted, onPrePersist, onPreUpdate, setCreatedDateTime, setDeleted, setId, setUpdatedDateTime, toJsonclone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetUri, sortByNamegetCreatedDateTime, getDeletedDateTime, getId, getUpdatedDateTime, isDeleted, setDeleted, setId, sortByCreatedDateTimepublic String getEmail()
public void setEmail(String email)
public String getPasswordHash()
public void setPassword(String password)
public String getRoles()
public void setRoles(String... roles)
roles - The user roles.public boolean hasRole(String role)
Copyright © 2018 Ajibot. All rights reserved.