Enum Class AllowSessionsEnum

java.lang.Object
java.lang.Enum<AllowSessionsEnum>
org.dspace.alerts.AllowSessionsEnum
All Implemented Interfaces:
Serializable, Comparable<AllowSessionsEnum>, Constable

public enum AllowSessionsEnum extends Enum<AllowSessionsEnum>
Enum representing the options for allowing sessions: ALLOW_ALL_SESSIONS - Will allow all users to log in and continue their sessions ALLOW_CURRENT_SESSIONS_ONLY - Will prevent non admin users from logging in, however logged-in users will remain logged in ALLOW_ADMIN_SESSIONS_ONLY - Only admin users can log in, non admin sessions will be interrupted NOTE: This functionality can be stored in the database, but no support is present right now to interrupt and prevent sessions.
  • Enum Constant Details

    • ALLOW_ALL_SESSIONS

      public static final AllowSessionsEnum ALLOW_ALL_SESSIONS
    • ALLOW_CURRENT_SESSIONS_ONLY

      public static final AllowSessionsEnum ALLOW_CURRENT_SESSIONS_ONLY
    • ALLOW_ADMIN_SESSIONS_ONLY

      public static final AllowSessionsEnum ALLOW_ADMIN_SESSIONS_ONLY
  • Method Details

    • values

      public static AllowSessionsEnum[] 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 AllowSessionsEnum 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 String getValue()
    • fromString

      public static AllowSessionsEnum fromString(String alertAllowSessionType)