Package org.apache.sling.servlets.post
Class Modification
java.lang.Object
org.apache.sling.servlets.post.Modification
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
protected static Modification
onChange
(ModificationType type, String source) protected static Modification
onChange
(ModificationType type, String source, String dest) static Modification
static Modification
onCheckout
(String path) static Modification
Records a 'copied' change.static Modification
Records a 'created' changestatic Modification
Records a 'deleted' changestatic Modification
onModified
(String path) Records a 'modified' changestatic Modification
Records a 'moved' change.static Modification
Records a 'order' change.static Modification
toString()
-
Constructor Details
-
Modification
-
-
Method Details
-
getType
-
getSource
-
getDestination
-
onModified
Records a 'modified' change- Parameters:
path
- path of the item that was modified- Returns:
- the modification
-
onCreated
Records a 'created' change- Parameters:
path
- path of the item that was created- Returns:
- the modification
-
onDeleted
Records a 'deleted' change- Parameters:
path
- path of the item that was deleted- Returns:
- the modification
-
onMoved
Records a 'moved' change.Note: the moved change only records the basic move command. the implied changes on the moved properties and sub nodes are not recorded.
- Parameters:
srcPath
- source path of the node that was moveddstPath
- destination path of the node that was moved.- Returns:
- the modification
-
onCopied
Records a 'copied' change.Note: the copy change only records the basic copy command. the implied changes on the copied properties and sub nodes are not recorded.
- Parameters:
srcPath
- source path of the node that was copieddstPath
- destination path of the node that was copied.- Returns:
- the modification
-
onOrder
Records a 'order' change.- Parameters:
orderedPath
- Path of the node that was reorderedbeforeSibling
- Name of the sibling node before which the source node has been inserted.- Returns:
- the modification
-
onChange
-
onChange
-
onCheckin
-
onCheckout
-
onRestore
-
toString
-