Enum DmContentLifeCycleService.ContentLifeCycleOperation
- java.lang.Object
-
- java.lang.Enum<DmContentLifeCycleService.ContentLifeCycleOperation>
-
- org.craftercms.studio.api.v1.service.content.DmContentLifeCycleService.ContentLifeCycleOperation
-
- All Implemented Interfaces:
Serializable
,Comparable<DmContentLifeCycleService.ContentLifeCycleOperation>
- Enclosing interface:
- DmContentLifeCycleService
public static enum DmContentLifeCycleService.ContentLifeCycleOperation extends Enum<DmContentLifeCycleService.ContentLifeCycleOperation>
content operations- Author:
- hyanghee
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DmContentLifeCycleService.ContentLifeCycleOperation
getOperation(String operation)
get the enum type of the operation givenstatic DmContentLifeCycleService.ContentLifeCycleOperation
valueOf(String name)
Returns the enum constant of this type with the specified name.static DmContentLifeCycleService.ContentLifeCycleOperation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COPY
public static final DmContentLifeCycleService.ContentLifeCycleOperation COPY
-
DELETE
public static final DmContentLifeCycleService.ContentLifeCycleOperation DELETE
-
DUPLICATE
public static final DmContentLifeCycleService.ContentLifeCycleOperation DUPLICATE
-
NEW
public static final DmContentLifeCycleService.ContentLifeCycleOperation NEW
-
RENAME
public static final DmContentLifeCycleService.ContentLifeCycleOperation RENAME
-
REVERT
public static final DmContentLifeCycleService.ContentLifeCycleOperation REVERT
-
UPDATE
public static final DmContentLifeCycleService.ContentLifeCycleOperation UPDATE
-
-
Method Detail
-
values
public static DmContentLifeCycleService.ContentLifeCycleOperation[] 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 (DmContentLifeCycleService.ContentLifeCycleOperation c : DmContentLifeCycleService.ContentLifeCycleOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DmContentLifeCycleService.ContentLifeCycleOperation 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
-
getOperation
public static DmContentLifeCycleService.ContentLifeCycleOperation getOperation(String operation)
get the enum type of the operation given- Parameters:
operation
-- Returns:
- enum type of the operation
-
-