Package org.apache.sling.servlets.post
Class Modification
java.lang.Object
org.apache.sling.servlets.post.Modification
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()protected static ModificationonChange(ModificationType type, String source) protected static ModificationonChange(ModificationType type, String source, String dest) static Modificationstatic ModificationonCheckout(String path) static ModificationRecords a 'copied' change.static ModificationRecords a 'created' changestatic ModificationRecords a 'deleted' changestatic ModificationonModified(String path) Records a 'modified' changestatic ModificationRecords a 'moved' change.static ModificationRecords a 'order' change.static ModificationtoString()
-
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
-