Enum Class ServiceRole

java.lang.Object
java.lang.Enum<ServiceRole>
edu.internet2.middleware.grouper.service.ServiceRole
All Implemented Interfaces:
Serializable, Comparable<ServiceRole>, Constable

public enum ServiceRole extends Enum<ServiceRole>
role in a service, admin (update or admin in service) or user (member of group/role or assignee of permissions)
  • Enum Constant Details

    • admin

      public static final ServiceRole admin
      admin of a service
    • user

      public static final ServiceRole user
      user of a service (might include admins)
  • Method Details

    • values

      public static ServiceRole[] 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 ServiceRole 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
    • allFieldsForGroupQuery

      public static Collection<Field> allFieldsForGroupQuery()
      get all fields for any role
      Returns:
      the fields
    • fieldsForGroupQuery

      public abstract Collection<Field> fieldsForGroupQuery()
      e.g. return the fields for this service role
      Returns:
      the fields for the query
    • valueOfIgnoreCase

      public static ServiceRole valueOfIgnoreCase(String string, boolean exceptionOnNull)
      convert a string to the service role enum
      Parameters:
      string -
      exceptionOnNull -
      Returns:
      service role