public class Modification extends Object
Constructor and Description |
---|
Modification(ModificationType type,
String source,
String destination) |
Modifier and Type | Method and Description |
---|---|
String |
getDestination() |
String |
getSource() |
ModificationType |
getType() |
static Modification |
onCheckin(String path) |
static Modification |
onCheckout(String path) |
static Modification |
onCopied(String srcPath,
String dstPath)
Records a 'copied' change.
|
static Modification |
onCreated(String path)
Records a 'created' change
|
static Modification |
onDeleted(String path)
Records a 'deleted' change
|
static Modification |
onModified(String path)
Records a 'modified' change
|
static Modification |
onMoved(String srcPath,
String dstPath)
Records a 'moved' change.
|
static Modification |
onOrder(String orderedPath,
String beforeSibling)
Records a 'order' change.
|
static Modification |
onRestore(String path,
String version) |
String |
toString() |
public Modification(ModificationType type, String source, String destination)
public ModificationType getType()
public String getSource()
public String getDestination()
public static Modification onModified(String path)
path
- path of the item that was modifiedpublic static Modification onCreated(String path)
path
- path of the item that was createdpublic static Modification onDeleted(String path)
path
- path of the item that was deletedpublic static Modification onMoved(String srcPath, 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(String srcPath, 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(String orderedPath, 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(String path)
public static Modification onCheckout(String path)
public static Modification onRestore(String path, String version)
Copyright © 2010 - 2020 Adobe. All Rights Reserved