Enum CertifierService.ValidationResult
- java.lang.Object
-
- java.lang.Enum<CertifierService.ValidationResult>
-
- fr.paris.lutece.plugins.fccertifier.service.CertifierService.ValidationResult
-
- All Implemented Interfaces:
Serializable,Comparable<CertifierService.ValidationResult>
- Enclosing class:
- CertifierService
public static enum CertifierService.ValidationResult extends Enum<CertifierService.ValidationResult>
Enumeration of all validation results
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CODE_EXPIREDINVALID_CODEOKSESSION_EXPIREDTOO_MANY_ATTEMPS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessageKey()Return the i18n message keystatic CertifierService.ValidationResultvalueOf(String name)Returns the enum constant of this type with the specified name.static CertifierService.ValidationResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final CertifierService.ValidationResult OK
-
INVALID_CODE
public static final CertifierService.ValidationResult INVALID_CODE
-
SESSION_EXPIRED
public static final CertifierService.ValidationResult SESSION_EXPIRED
-
CODE_EXPIRED
public static final CertifierService.ValidationResult CODE_EXPIRED
-
TOO_MANY_ATTEMPS
public static final CertifierService.ValidationResult TOO_MANY_ATTEMPS
-
-
Method Detail
-
values
public static CertifierService.ValidationResult[] 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 (CertifierService.ValidationResult c : CertifierService.ValidationResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CertifierService.ValidationResult valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getMessageKey
public String getMessageKey()
Return the i18n message key- Returns:
- the i18n message key
-
-