Package de.dlr.proseo.model.enums
Enum Class UserRole
- All Implemented Interfaces:
Serializable,Comparable<UserRole>,Constable
prosEO User Roles (low-level roles, which can be bundled for user groups).
In Spring Security, the user role values are prefixed with "ROLE_" to creaty authority strings for the
Authority and GroupAuthority classes.
- Author:
- Dr. Thomas Bassler
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCreate, update and delete access to product archive endpointsRead access to product archive endpointsUser with command line accessCreate, update and delete access to configurations and configured processorsCreate, update and delete access to processing facilitiesRead access to facility monitoring dataRead access to processing facilitiesUser with GUI accessNotify of job step completionUpdate access to missions, spacecrafts and orbitsRead access to missions, spacecrafts and orbitsApprove ordersCreate, update, close and delete ordersRead access to order monitoring dataPlan, release, suspend, cancel and retry orders, jobs and job stepsRead access to processing order, jobs and job stepsUser with PRIP API accessRead access to processor classes, processors, configurations, configured processors and any sub-objects of themCreate, update and delete access to processor classes, processors and tasksUpload products from internal sourceUpload products from external sourceUpdate and delete products and product filesQuery and download public productsQuery and download all productsQuery and download public and restricted productsCreate, update and delete access to product classes and selection rulesRead access to product classes and selection rulesRoot user, intended for mission creation/deletion and for creating the first user of a missionA user role intended for managing users and groups and assigning authorities to themCreate, update and delete access to workflows -
Method Summary
Modifier and TypeMethodDescriptionstatic UserRoleGet the role enum from a role string starting with the "ROLE_" prefixGet the role name with "ROLE_" prefix as stored in the databasestatic UserRoleReturns the enum constant of this class with the specified name.static UserRole[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ROOT
Root user, intended for mission creation/deletion and for creating the first user of a mission -
CLI_USER
User with command line access -
GUI_USER
User with GUI access -
PRIP_USER
User with PRIP API access -
USERMGR
A user role intended for managing users and groups and assigning authorities to them -
MISSION_READER
Read access to missions, spacecrafts and orbits -
MISSION_MGR
Update access to missions, spacecrafts and orbits -
PRODUCTCLASS_READER
Read access to product classes and selection rules -
PRODUCTCLASS_MGR
Create, update and delete access to product classes and selection rules -
PRODUCT_READER
Query and download public products -
PRODUCT_READER_RESTRICTED
Query and download public and restricted products -
PRODUCT_READER_ALL
Query and download all products -
PRODUCT_INGESTOR
Upload products from external source -
PRODUCT_GENERATOR
Upload products from internal source -
PRODUCT_MGR
Update and delete products and product files -
PROCESSOR_READER
Read access to processor classes, processors, configurations, configured processors and any sub-objects of them -
PROCESSORCLASS_MGR
Create, update and delete access to processor classes, processors and tasks -
CONFIGURATION_MGR
Create, update and delete access to configurations and configured processors -
WORKFLOW_MGR
Create, update and delete access to workflows -
FACILITY_READER
Read access to processing facilities -
FACILITY_MGR
Create, update and delete access to processing facilities -
FACILITY_MONITOR
Read access to facility monitoring data -
ARCHIVE_READER
Read access to product archive endpoints -
ARCHIVE_MGR
Create, update and delete access to product archive endpoints -
ORDER_READER
Read access to processing order, jobs and job steps -
ORDER_MGR
Create, update, close and delete orders -
ORDER_APPROVER
Approve orders -
ORDER_PLANNER
Plan, release, suspend, cancel and retry orders, jobs and job steps -
ORDER_MONITOR
Read access to order monitoring data -
JOBSTEP_PROCESSOR
Notify of job step completion
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
asRoleString
Get the role name with "ROLE_" prefix as stored in the database- Returns:
- "ROLE_" + the role name
-
asRole
Get the role enum from a role string starting with the "ROLE_" prefix- Parameters:
roleString- the role string to convert- Returns:
- the enum corresponding to the role string
- Throws:
IllegalArgumentException- if the role string does not start with "ROLE_" or if the remainder of the role string does not represent a legal UserRole enum value
-