Package org.apereo.cas.consent
Enum ConsentReminderOptions
- java.lang.Object
-
- java.lang.Enum<ConsentReminderOptions>
-
- org.apereo.cas.consent.ConsentReminderOptions
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConsentReminderOptions>
public enum ConsentReminderOptions extends java.lang.Enum<ConsentReminderOptions>
This isConsentReminderOptions.- Since:
- 5.2.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYSAlways ask for consent.ATTRIBUTE_NAMEAsk for consent when there is modification in one of the attribute names or if consent is expired.ATTRIBUTE_VALUEAsk for consent when there is modification in one of the attribute names, the values contain inside the attributes or if consent is expired.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static ConsentReminderOptionsvalueOf(int value)Value of consent options.static ConsentReminderOptionsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ConsentReminderOptions[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALWAYS
public static final ConsentReminderOptions ALWAYS
Always ask for consent.
-
ATTRIBUTE_NAME
public static final ConsentReminderOptions ATTRIBUTE_NAME
Ask for consent when there is modification in one of the attribute names or if consent is expired.
-
ATTRIBUTE_VALUE
public static final ConsentReminderOptions ATTRIBUTE_VALUE
Ask for consent when there is modification in one of the attribute names, the values contain inside the attributes or if consent is expired.
-
-
Method Detail
-
values
public static ConsentReminderOptions[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConsentReminderOptions c : ConsentReminderOptions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConsentReminderOptions valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
valueOf
public static ConsentReminderOptions valueOf(int value)
Value of consent options.- Parameters:
value- the value- Returns:
- the consent options
-
getValue
public int getValue()
-
-