Package de.dlr.proseo.model.enums
Enum-Klasse UserRole
- Alle implementierten Schnittstellen:
Serializable
,Comparable<UserRole>
,java.lang.constant.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.
- Autor:
- Dr. Thomas Bassler
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum-Konstanten - Übersicht
Enum-KonstantenEnum-KonstanteBeschreibungCreate, 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 -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic UserRole
Get the role enum from a role string starting with the "ROLE_" prefixGet the role name with "ROLE_" prefix as stored in the databasestatic UserRole
Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück.static UserRole[]
values()
Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
-
Enum-Konstanten - 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
-
-
Methodendetails
-
values
Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.- Gibt zurück:
- ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration
-
valueOf
Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enum-Konstante in dieser Klasse deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)- Parameter:
name
- Name der zurückzugebenden Enumerationskonstante.- Gibt zurück:
- Enumerationskonstante mit dem angegebenen Namen
- Löst aus:
IllegalArgumentException
- wenn diese Enum-Klasse keine Konstante mit dem angegebenen Namen enthältNullPointerException
- wenn das Argument nicht angegeben wird
-
asRoleString
Get the role name with "ROLE_" prefix as stored in the database- Gibt zurück:
- "ROLE_" + the role name
-
asRole
Get the role enum from a role string starting with the "ROLE_" prefix- Parameter:
roleString
- the role string to convert- Gibt zurück:
- the enum corresponding to the role string
- Löst aus:
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
-