|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Role>
com.flexive.shared.security.Role
public enum Role
User roles
| Enum Constant Summary | |
|---|---|
AccountManagement
may CRUD users, groups and roles (may only add roles he is assigned himself, may not alter assigned roles that he has not assigned himself) for "his" mandator |
|
ACLManagement
may CRUD ACLs for "his" mandator |
|
BackendAccess
may login to the backend (does not imply any rights) |
|
GlobalSupervisor
Global Supervisor - no restrictions at all |
|
MandatorSupervisor
Mandator Supervisor - may do everything for "his" mandator |
|
ScriptExecution
may execute scripts of type FxScriptEvent.Manual |
|
ScriptManagement
may CRUD scripts |
|
SelectListEditor
may see the user interface to edit selectlist items (role entitles to no CRUD rights!), actual permissions are taken from the select lists createItemACL |
|
StructureManagement
may CRUD types/relations/groups/properties/assignments/selectlists and assign scripts to structures for "his" mandator |
|
WorkflowManagement
may CRUD steps and workflows for "his" mandator |
|
| Method Summary | |
|---|---|
static java.util.List<Role> |
fromIdList(java.util.List<java.lang.Long> list)
|
static Role |
getById(long roleId)
Returns a role identified by its unique id. |
java.lang.String |
getColor()
Returns the color of the role. |
long |
getId()
Returns the unique id of the role. |
FxString |
getLabel()
Return the localized label of the object. |
static java.util.List<Role> |
getList()
Get all roles as a List |
java.lang.String |
getName()
Return the description of the role. |
static boolean |
isUndefined(long roleId)
Check if the given role id is undefined |
static java.lang.Long[] |
toIdArray(java.util.List<Role> roles)
Convert a Role List to a Long id array |
static java.lang.Long[] |
toIdArray(Role[] roles)
Convert a Role array to a Long id array |
static java.util.List<java.lang.Long> |
toIdList(java.util.List<Role> roles)
|
static long[] |
toPrimitiveIdArray(Role[] roles)
Convert a Role array to a long id array |
java.lang.String |
toString()
Returns a string representation of the role. |
static Role |
valueOf(java.lang.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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Role GlobalSupervisor
public static final Role MandatorSupervisor
public static final Role ACLManagement
public static final Role AccountManagement
public static final Role SelectListEditor
public static final Role WorkflowManagement
public static final Role StructureManagement
public static final Role ScriptManagement
public static final Role ScriptExecution
FxScriptEvent.Manual
public static final Role BackendAccess
| Method Detail |
|---|
public static Role[] values()
for (Role c : Role.values()) System.out.println(c);
public static Role valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static boolean isUndefined(long roleId)
roleId - role id to check
public static java.util.List<Role> getList()
public static java.util.List<java.lang.Long> toIdList(java.util.List<Role> roles)
public static java.util.List<Role> fromIdList(java.util.List<java.lang.Long> list)
public static Role getById(long roleId)
roleId - the id of the role to fetch
public java.lang.String getName()
getName in interface SelectableObjectWithNamepublic long getId()
getId in interface SelectableObjectpublic java.lang.String getColor()
getColor in interface ObjectWithColorpublic java.lang.String toString()
toString in class java.lang.Enum<Role>public FxString getLabel()
getLabel in interface ObjectWithLabelpublic static long[] toPrimitiveIdArray(Role[] roles)
roles - roles
public static java.lang.Long[] toIdArray(Role[] roles)
roles - roles
public static java.lang.Long[] toIdArray(java.util.List<Role> roles)
roles - roles
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||