Package tv.phantombot.panel.PanelUser
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
Panel user web panel and websocket permission-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic PanelUserHandler.PermissionGet a permission enum by it'sdisplay namestatic PanelUserHandler.PermissiongetByValue(int value) Get a permission enum by it'svalueThe permissions display nameintgetValue()The permissions valuestatic PanelUserHandler.PermissionReturns the enum constant of this class with the specified name.static PanelUserHandler.Permission[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READ_WRITE
Read and write access -
READ_ONLY
Read only access
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
public int getValue()The permissions value- Returns:
- The permissions value
-
getDisplayName
The permissions display name- Returns:
- The permissions display name
-
getByValue
Get a permission enum by it'svalue- Parameters:
value- The permission's value to search for- Returns:
- The permission if it has been found; The
default permissionotherwise
-
getByName
Get a permission enum by it'sdisplay name- Parameters:
name- The permission's name to search for- Returns:
- The permission if it has been found; The
default permissionotherwise
-