Enum Class PanelUserHandler.Permission

java.lang.Object
java.lang.Enum<PanelUserHandler.Permission>
tv.phantombot.panel.PanelUser.PanelUserHandler.Permission
All Implemented Interfaces:
Serializable, Comparable<PanelUserHandler.Permission>, Constable
Enclosing class:
PanelUserHandler

public static enum PanelUserHandler.Permission extends Enum<PanelUserHandler.Permission>
Panel user web panel and websocket permission
  • Enum Constant Details

  • Method Details

    • values

      public static PanelUserHandler.Permission[] 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 PanelUserHandler.Permission 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
    • getValue

      public int getValue()
      The permissions value
      Returns:
      The permissions value
    • getDisplayName

      public String getDisplayName()
      The permissions display name
      Returns:
      The permissions display name
    • getByValue

      public static PanelUserHandler.Permission getByValue(int value)
      Get a permission enum by it's value
      Parameters:
      value - The permission's value to search for
      Returns:
      The permission if it has been found; The default permission otherwise
    • getByName

      public static PanelUserHandler.Permission getByName(String name)
      Get a permission enum by it's display name
      Parameters:
      name - The permission's name to search for
      Returns:
      The permission if it has been found; The default permission otherwise