@java.lang.SuppressWarnings("unchecked")
public final class User
extends java.lang.Object
Created by Kevin Sheppard July 19, 2024
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.lang.String |
getDisplayName() |
<T> |
public T |
getId() |
|
public boolean |
hasAuthority(java.lang.String authority)Checks if the user has a given permission |
|
public boolean |
isInRole(java.lang.String[] roles)Checks if the user belongs to any of the given roles |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Checks if the user has a given permission
authority - The permission that is requiredtrue if the user's list of permissions includes authorityChecks if the user belongs to any of the given roles
roles - The accepted rolestrue If the user belongs to any of the given roles