Package com.atlassian.confluence.core
Enum VersionChildOwnerPolicy
- java.lang.Object
-
- java.lang.Enum<VersionChildOwnerPolicy>
-
- com.atlassian.confluence.core.VersionChildOwnerPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<VersionChildOwnerPolicy>
public enum VersionChildOwnerPolicy extends Enum<VersionChildOwnerPolicy>
This enum dictates the policies used when saving children for CEOs and CCEOs in regard to the version of the parent they belong to- See Also:
currentVersion
,originalVersion
-
-
Enum Constant Summary
Enum Constants Enum Constant Description currentVersion
When this policy is used, the children will always belong to the last version of the parent that created it (this is the default Confluence behaviour)originalVersion
When this policy is used, the children will always belong to the version of the parent that created it
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VersionChildOwnerPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static VersionChildOwnerPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
currentVersion
public static final VersionChildOwnerPolicy currentVersion
When this policy is used, the children will always belong to the last version of the parent that created it (this is the default Confluence behaviour)
-
originalVersion
public static final VersionChildOwnerPolicy originalVersion
When this policy is used, the children will always belong to the version of the parent that created it
-
-
Method Detail
-
values
public static VersionChildOwnerPolicy[] 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 (VersionChildOwnerPolicy c : VersionChildOwnerPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VersionChildOwnerPolicy 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
-
-