Package org.dspace.alerts
Enum Class AllowSessionsEnum
- All Implemented Interfaces:
Serializable,Comparable<AllowSessionsEnum>,Constable
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.
-
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 AllowSessionsEnumfromString(String alertAllowSessionType) getValue()static AllowSessionsEnumReturns the enum constant of this class with the specified name.static AllowSessionsEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALLOW_ALL_SESSIONS
-
ALLOW_CURRENT_SESSIONS_ONLY
-
ALLOW_ADMIN_SESSIONS_ONLY
-
-
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
-
fromString
-