|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<StateValidationModel>
org.cruxframework.crux.core.shared.rest.annotation.StateValidationModel
public enum StateValidationModel
Indicates if Crux must validate previous state of resources being updated.
| Enum Constant Summary | |
|---|---|
ENSURE_STATE_MATCHES
PUT operation will be executed only if the client retains the current state for the resource. |
|
NO_VALIDATE
Disable the state validation for the PUT operation. |
|
VALIDATE_IF_PRESENT
If the target resource was previously loaded and the client retain some state for this resource, Crux will ensure that the PUT operation will be executed only if this state matches the current state of the resource |
|
| Method Summary | |
|---|---|
static StateValidationModel |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static StateValidationModel[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final StateValidationModel NO_VALIDATE
public static final StateValidationModel VALIDATE_IF_PRESENT
public static final StateValidationModel ENSURE_STATE_MATCHES
| Method Detail |
|---|
public static StateValidationModel[] values()
for (StateValidationModel c : StateValidationModel.values()) System.out.println(c);
public static StateValidationModel valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||