Enum PermissionActions

java.lang.Object
java.lang.Enum<PermissionActions>
net.adoptopenjdk.icedteaweb.client.policyeditor.PermissionActions
All Implemented Interfaces:
Serializable, Comparable<PermissionActions>, java.lang.constant.Constable

public enum PermissionActions extends Enum<PermissionActions>
Defines the set of actions required for the default permissions
  • Enum Constant Details

  • Field Details

    • rawActions

      private final String rawActions
    • actions

      private final Set<String> actions
  • Constructor Details

    • PermissionActions

      private PermissionActions(String actions)
  • Method Details

    • values

      public static PermissionActions[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PermissionActions valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static PermissionActions fromString(String string)
      If there is any default action set that matches the string, return it. If no matches, return NONE.
      Parameters:
      string - a comma-separated list of permission actions
      Returns:
      the closest matching default actions value
    • getActions

      public Collection<String> getActions()
    • setFromString

      private static Set<String> setFromString(String string)
    • rawString

      public String rawString()