public class Modification
extends java.lang.Object
Constructor and Description |
---|
Modification(ModificationType type,
java.lang.String source,
java.lang.String destination) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDestination() |
java.lang.String |
getSource() |
ModificationType |
getType() |
static Modification |
onCheckin(java.lang.String path) |
static Modification |
onCheckout(java.lang.String path) |
static Modification |
onCopied(java.lang.String srcPath,
java.lang.String dstPath)
Records a 'copied' change.
|
static Modification |
onCreated(java.lang.String path)
Records a 'created' change
|
static Modification |
onDeleted(java.lang.String path)
Records a 'deleted' change
|
static Modification |
onModified(java.lang.String path)
Records a 'modified' change
|
static Modification |
onMoved(java.lang.String srcPath,
java.lang.String dstPath)
Records a 'moved' change.
|
static Modification |
onOrder(java.lang.String orderedPath,
java.lang.String beforeSibling)
Records a 'order' change.
|
static Modification |
onRestore(java.lang.String path,
java.lang.String version) |
java.lang.String |
toString() |
public Modification(ModificationType type, java.lang.String source, java.lang.String destination)
public ModificationType getType()
public java.lang.String getSource()
public java.lang.String getDestination()
public static Modification onModified(java.lang.String path)
path
- path of the item that was modifiedpublic static Modification onCreated(java.lang.String path)
path
- path of the item that was createdpublic static Modification onDeleted(java.lang.String path)
path
- path of the item that was deletedpublic static Modification onMoved(java.lang.String srcPath, java.lang.String dstPath)
Note: the moved change only records the basic move command. the implied changes on the moved properties and sub nodes are not recorded.
srcPath
- source path of the node that was moveddstPath
- destination path of the node that was moved.public static Modification onCopied(java.lang.String srcPath, java.lang.String dstPath)
Note: the copy change only records the basic copy command. the implied changes on the copied properties and sub nodes are not recorded.
srcPath
- source path of the node that was copieddstPath
- destination path of the node that was copied.public static Modification onOrder(java.lang.String orderedPath, java.lang.String beforeSibling)
orderedPath
- Path of the node that was reorderedbeforeSibling
- Name of the sibling node before which the source node has
been inserted.public static Modification onCheckin(java.lang.String path)
public static Modification onCheckout(java.lang.String path)
public static Modification onRestore(java.lang.String path, java.lang.String version)
public java.lang.String toString()
toString
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"