Enum ExecStatus
- java.lang.Object
-
- java.lang.Enum<ExecStatus>
-
- org.apache.syncope.common.lib.types.ExecStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<ExecStatus>
public enum ExecStatus extends Enum<ExecStatus>
Status of some execution.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATED
FAILURE
NOT_ATTEMPTED
SUCCESS
-
Field Summary
Fields Modifier and Type Field Description protected int
httpStatus
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExecStatus
fromHttpStatus(int httpStatus)
int
getHttpStatus()
static ExecStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExecStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATED
public static final ExecStatus CREATED
-
SUCCESS
public static final ExecStatus SUCCESS
-
FAILURE
public static final ExecStatus FAILURE
-
NOT_ATTEMPTED
public static final ExecStatus NOT_ATTEMPTED
-
-
Method Detail
-
values
public static ExecStatus[] 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 (ExecStatus c : ExecStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExecStatus 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
-
getHttpStatus
public int getHttpStatus()
-
fromHttpStatus
public static ExecStatus fromHttpStatus(int httpStatus)
-
-