Serializable, Principal, org.minijax.db.BaseEntity, org.minijax.db.NamedEntity@MappedSuperclass
public abstract class SecurityUser
extends org.minijax.db.DefaultNamedEntity
| Constructor | Description |
|---|---|
SecurityUser() |
| Modifier and Type | Method | 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.
|
getCreatedDateTime, getDeletedDateTime, getId, getUpdatedDateTime, isDeleted, setDeleted, setIdcopyNonNullProperties, equals, fromJson, getCreatedDateTime, getDeletedDateTime, getId, getUpdatedDateTime, hashCode, isDeleted, onPrePersist, onPreUpdate, setCreatedDateTime, setDeleted, setId, setUpdatedDateTime, toJsongenerateHandle, getAvatar, getHandle, getName, setAvatar, setHandle, setNamepublic 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 © 2019 Ajibot. All rights reserved.