Package com.enonic.xp.content
Enum ContentVersionPublishInfo.CommitType
- java.lang.Object
-
- java.lang.Enum<ContentVersionPublishInfo.CommitType>
-
- com.enonic.xp.content.ContentVersionPublishInfo.CommitType
-
- All Implemented Interfaces:
Serializable
,Comparable<ContentVersionPublishInfo.CommitType>
- Enclosing class:
- ContentVersionPublishInfo
public static enum ContentVersionPublishInfo.CommitType extends Enum<ContentVersionPublishInfo.CommitType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARCHIVED
CUSTOM
PUBLISHED
RESTORED
UNPUBLISHED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContentVersionPublishInfo.CommitType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContentVersionPublishInfo.CommitType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLISHED
public static final ContentVersionPublishInfo.CommitType PUBLISHED
-
UNPUBLISHED
public static final ContentVersionPublishInfo.CommitType UNPUBLISHED
-
ARCHIVED
public static final ContentVersionPublishInfo.CommitType ARCHIVED
-
RESTORED
public static final ContentVersionPublishInfo.CommitType RESTORED
-
CUSTOM
public static final ContentVersionPublishInfo.CommitType CUSTOM
-
-
Method Detail
-
values
public static ContentVersionPublishInfo.CommitType[] 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 (ContentVersionPublishInfo.CommitType c : ContentVersionPublishInfo.CommitType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentVersionPublishInfo.CommitType 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
-
-