Enum-Klasse UserRole

java.lang.Object
java.lang.Enum<UserRole>
de.dlr.proseo.model.enums.UserRole
Alle implementierten Schnittstellen:
Serializable, Comparable<UserRole>, java.lang.constant.Constable

public enum UserRole extends Enum<UserRole>
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
  • Enum-Konstanten - Details

    • ROOT

      public static final UserRole ROOT
      Root user, intended for mission creation/deletion and for creating the first user of a mission
    • CLI_USER

      public static final UserRole CLI_USER
      User with command line access
    • GUI_USER

      public static final UserRole GUI_USER
      User with GUI access
    • PRIP_USER

      public static final UserRole PRIP_USER
      User with PRIP API access
    • USERMGR

      public static final UserRole USERMGR
      A user role intended for managing users and groups and assigning authorities to them
    • MISSION_READER

      public static final UserRole MISSION_READER
      Read access to missions, spacecrafts and orbits
    • MISSION_MGR

      public static final UserRole MISSION_MGR
      Update access to missions, spacecrafts and orbits
    • PRODUCTCLASS_READER

      public static final UserRole PRODUCTCLASS_READER
      Read access to product classes and selection rules
    • PRODUCTCLASS_MGR

      public static final UserRole PRODUCTCLASS_MGR
      Create, update and delete access to product classes and selection rules
    • PRODUCT_READER

      public static final UserRole PRODUCT_READER
      Query and download public products
    • PRODUCT_READER_RESTRICTED

      public static final UserRole PRODUCT_READER_RESTRICTED
      Query and download public and restricted products
    • PRODUCT_READER_ALL

      public static final UserRole PRODUCT_READER_ALL
      Query and download all products
    • PRODUCT_INGESTOR

      public static final UserRole PRODUCT_INGESTOR
      Upload products from external source
    • PRODUCT_GENERATOR

      public static final UserRole PRODUCT_GENERATOR
      Upload products from internal source
    • PRODUCT_MGR

      public static final UserRole PRODUCT_MGR
      Update and delete products and product files
    • PROCESSOR_READER

      public static final UserRole PROCESSOR_READER
      Read access to processor classes, processors, configurations, configured processors and any sub-objects of them
    • PROCESSORCLASS_MGR

      public static final UserRole PROCESSORCLASS_MGR
      Create, update and delete access to processor classes, processors and tasks
    • CONFIGURATION_MGR

      public static final UserRole CONFIGURATION_MGR
      Create, update and delete access to configurations and configured processors
    • WORKFLOW_MGR

      public static final UserRole WORKFLOW_MGR
      Create, update and delete access to workflows
    • FACILITY_READER

      public static final UserRole FACILITY_READER
      Read access to processing facilities
    • FACILITY_MGR

      public static final UserRole FACILITY_MGR
      Create, update and delete access to processing facilities
    • FACILITY_MONITOR

      public static final UserRole FACILITY_MONITOR
      Read access to facility monitoring data
    • ARCHIVE_READER

      public static final UserRole ARCHIVE_READER
      Read access to product archive endpoints
    • ARCHIVE_MGR

      public static final UserRole ARCHIVE_MGR
      Create, update and delete access to product archive endpoints
    • ORDER_READER

      public static final UserRole ORDER_READER
      Read access to processing order, jobs and job steps
    • ORDER_MGR

      public static final UserRole ORDER_MGR
      Create, update, close and delete orders
    • ORDER_APPROVER

      public static final UserRole ORDER_APPROVER
      Approve orders
    • ORDER_PLANNER

      public static final UserRole ORDER_PLANNER
      Plan, release, suspend, cancel and retry orders, jobs and job steps
    • ORDER_MONITOR

      public static final UserRole ORDER_MONITOR
      Read access to order monitoring data
    • JOBSTEP_PROCESSOR

      public static final UserRole JOBSTEP_PROCESSOR
      Notify of job step completion
  • Methodendetails

    • values

      public static UserRole[] 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

      public static UserRole valueOf(String name)
      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ält
      NullPointerException - wenn das Argument nicht angegeben wird
    • asRoleString

      public String asRoleString()
      Get the role name with "ROLE_" prefix as stored in the database
      Gibt zurück:
      "ROLE_" + the role name
    • asRole

      public static UserRole asRole(String roleString) throws IllegalArgumentException
      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