Enum Class Perms

java.lang.Object
java.lang.Enum<Perms>
net.minheur.potoflux.login.perms.Perms
All Implemented Interfaces:
Serializable, Comparable<Perms>, Constable

public enum Perms extends Enum<Perms>
Registers all perms of the app
  • Enum Constant Details

    • VIEW_USERS

      public static final Perms VIEW_USERS
    • CREATE_USERS

      public static final Perms CREATE_USERS
    • DELETE_USERS

      public static final Perms DELETE_USERS
    • CHANGE_INFORMATIONS

      public static final Perms CHANGE_INFORMATIONS
    • CHANGE_PASSWORD

      public static final Perms CHANGE_PASSWORD
    • LOCK

      public static final Perms LOCK
    • LOCK_ACCOUNT_CREATION

      public static final Perms LOCK_ACCOUNT_CREATION
  • Method Details

    • values

      public static Perms[] 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 Perms 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
    • getCode

      @NotNull public @NotNull String getCode()
    • getName

      @NotNull public @NotNull String getName()
    • getPermAction

      @Nullable public @Nullable Runnable getPermAction()
    • getNoRunFallback

      @Nullable public @Nullable String getNoRunFallback()
    • getFromCode

      @Nullable public static @Nullable Perms getFromCode(String sqlCode)
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Enum<Perms>