public enum Permission extends Enum<Permission> implements net.avcompris.commons3.api.EnumPermission
Enum Constant and Description |
---|
ANY |
CREATE_ANY_USER |
DELETE_ANY_USER |
GET_ANY_USER |
GET_ANY_USER_SESSION |
GET_MY_SESSION |
GET_USER_ME |
PURGE_CORRELATION_IDS |
QUERY_ALL_USERS |
ROUTE |
SET_LAST_ACTIVE_AT |
SUPERADMIN |
TERMINATE_ANY_USER_SESSION |
TERMINATE_MY_SESSION |
UPDATE_ANY_USER |
UPDATE_USER_ME |
WORKERS |
Modifier and Type | Method and Description |
---|---|
String |
getExpression() |
boolean |
isAnyUserPermission() |
boolean |
isSuperadminPermission() |
static Permission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Permission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Permission ANY
public static final Permission SUPERADMIN
public static final Permission GET_ANY_USER_SESSION
public static final Permission TERMINATE_ANY_USER_SESSION
public static final Permission QUERY_ALL_USERS
public static final Permission CREATE_ANY_USER
public static final Permission GET_ANY_USER
public static final Permission UPDATE_ANY_USER
public static final Permission DELETE_ANY_USER
public static final Permission WORKERS
public static final Permission PURGE_CORRELATION_IDS
public static final Permission SET_LAST_ACTIVE_AT
public static final Permission GET_MY_SESSION
public static final Permission TERMINATE_MY_SESSION
public static final Permission GET_USER_ME
public static final Permission UPDATE_USER_ME
public static final Permission ROUTE
public static Permission[] values()
for (Permission c : Permission.values()) System.out.println(c);
public static Permission valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isSuperadminPermission()
isSuperadminPermission
in interface net.avcompris.commons3.api.EnumPermission
public boolean isAnyUserPermission()
isAnyUserPermission
in interface net.avcompris.commons3.api.EnumPermission
Copyright © 2021 Avantage Compris. All rights reserved.