- All Implemented Interfaces:
Serializable
,Comparable<BanLevel>
,Constable
Levels of bans that can be imposed on a user.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe user is not permitted to use thecontact form
.The user is not permitted to have notifications sent to them via e-mail.The user is not permitted to do anything with the application.All bans on the user have been lifted, meaning the user is no longer banned and may use the application as normal.The user is not permitted to useNtfy
for push notifications.The user is not permitted to useUnifiedPush
for push notifications. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
EVERYTHING
The user is not permitted to do anything with the application. -
CONTACT
The user is not permitted to use thecontact form
. -
EMAIL_NOTIFICATIONS
The user is not permitted to have notifications sent to them via e-mail. -
NTFY_NOTIFICATIONS
-
UNIFIEDPUSH_NOTIFICATIONS
The user is not permitted to useUnifiedPush
for push notifications. -
LIFTED
All bans on the user have been lifted, meaning the user is no longer banned and may use the application as normal. This ban level acts as a revocation certificate for all previous bans.
-
-
Field Details
-
label
-
-
Constructor Details
-
BanLevel
-
-
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
-