Package org.apache.sling.servlets.post
Enum ModificationType
- java.lang.Object
-
- java.lang.Enum<ModificationType>
-
- org.apache.sling.servlets.post.ModificationType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ModificationType>
public enum ModificationType extends java.lang.Enum<ModificationType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECKINA Node has been checked in.CHECKOUTA Node has been checked out.COPYAn Item has been copied to a new location.CREATEA Node has been created.DELETEAn Item has been deleted.MODIFYContent has been created or updated.MOVEAn Item has been moved to a new location.ORDERA child Node has been reordered.RESTOREA Node has been restored to a given version.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModificationTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ModificationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MODIFY
public static final ModificationType MODIFY
Content has been created or updated. The source path provides the path of the modified Item.
-
DELETE
public static final ModificationType DELETE
An Item has been deleted. The source path provides the path of the deleted Item.
-
MOVE
public static final ModificationType MOVE
An Item has been moved to a new location. The source provides the original path of the Item, the destination provides the new path of the Item.
-
COPY
public static final ModificationType COPY
An Item has been copied to a new location. The source path provides the path of the copied Item, the destination path provides the path of the new Item.
-
CREATE
public static final ModificationType CREATE
A Node has been created. The source path provides the path of the newly created Node.
-
ORDER
public static final ModificationType ORDER
A child Node has been reordered. The source path provides the path of the node, which has been reordered. The destination path provides the name of the sibbling node before which the source Node has been ordered. which the
-
CHECKOUT
public static final ModificationType CHECKOUT
A Node has been checked out. The source path provides the path of the node.
-
CHECKIN
public static final ModificationType CHECKIN
A Node has been checked in. The source path provides the path of the node.
-
RESTORE
public static final ModificationType RESTORE
A Node has been restored to a given version. The soruce path provides the path of the node and the destination describes the target version.
-
-
Method Detail
-
values
public static ModificationType[] 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 (ModificationType c : ModificationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModificationType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-