Enum Class UserRole

java.lang.Object
java.lang.Enum<UserRole>
de.dlr.proseo.model.enums.UserRole
All Implemented Interfaces:
Serializable, Comparable<UserRole>, 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.
Author:
Dr. Thomas Bassler
  • Enum Constant 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
  • Method Details

    • values

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

      public static UserRole valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • asRoleString

      public String asRoleString()
      Get the role name with "ROLE_" prefix as stored in the database
      Returns:
      "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
      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