Package org.apache.sling.servlets.post
Enum Class ModificationType
- All Implemented Interfaces:
Serializable
,Comparable<ModificationType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA Node has been checked in.A Node has been checked out.An Item has been copied to a new location.A Node has been created.An Item has been deleted.Content has been created or updated.An Item has been moved to a new location.A child Node has been reordered.A Node has been restored to a given version. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModificationType
Returns the enum constant of this class with the specified name.static ModificationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MODIFY
Content has been created or updated. The source path provides the path of the modified Item. -
DELETE
An Item has been deleted. The source path provides the path of the deleted Item. -
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
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
A Node has been created. The source path provides the path of the newly created Node. -
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
A Node has been checked out. The source path provides the path of the node. -
CHECKIN
A Node has been checked in. The source path provides the path of the node. -
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-