Enum Class RegistrationMode

java.lang.Object
java.lang.Enum<RegistrationMode>
de.gustavblass.fsu.fmi.roombooking.configuration.RegistrationMode
All Implemented Interfaces:
Serializable, Comparable<RegistrationMode>, Constable

public enum RegistrationMode extends Enum<RegistrationMode>

Whether and which sign-up options shall be available.

See Also:
  • Enum Constant Details

    • NONE

      public static final RegistrationMode NONE
      Users are not permitted to sign up.
    • BOTH

      public static final RegistrationMode BOTH
      Users are permitted sign up both via LDAP and locally.
    • LDAP

      public static final RegistrationMode LDAP
      Users are only permitted to sign up via LDAP, but not locally.
    • LOCAL

      public static final RegistrationMode LOCAL
      Users are only permitted to sign up locally, but not via LDAP.
  • Field Details

    • name

      @NonNull public final @NonNull String name
  • Constructor Details

    • RegistrationMode

      private RegistrationMode(@NonNull @NonNull String name)
  • Method Details

    • values

      public static RegistrationMode[] 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 RegistrationMode 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