public enum Role extends Enum<Role> implements net.avcompris.commons3.api.EnumRole
Enum Constant and Description |
---|
ADMIN |
ANONYMOUS |
REGULAR |
SILENT_WORKER |
SUPERADMIN |
USERMGR |
Modifier and Type | Method and Description |
---|---|
boolean |
canManage(Role role) |
Permission[] |
getPermissions() |
String |
getRolename() |
Role[] |
getSuperRoles() |
static Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Role ANONYMOUS
public static final Role REGULAR
public static final Role USERMGR
public static final Role SILENT_WORKER
public static final Role ADMIN
public static final Role SUPERADMIN
public static Role[] values()
for (Role c : Role.values()) System.out.println(c);
public static Role 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 String getRolename()
getRolename
in interface net.avcompris.commons3.api.EnumRole
public Role[] getSuperRoles()
getSuperRoles
in interface net.avcompris.commons3.api.EnumRole
public Permission[] getPermissions()
getPermissions
in interface net.avcompris.commons3.api.EnumRole
public boolean canManage(Role role)
Copyright © 2021 Avantage Compris. All rights reserved.