|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.sling.servlets.post.Modification
public class Modification
Constructor Summary | |
---|---|
Modification(ModificationType type,
String source,
String destination)
|
Method Summary | |
---|---|
String |
getDestination()
|
String |
getSource()
|
ModificationType |
getType()
|
protected static Modification |
onChange(ModificationType type,
String source)
|
protected static Modification |
onChange(ModificationType type,
String source,
String dest)
|
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 beforeSibbling)
Records a 'order' change. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Modification(ModificationType type, String source, String destination)
Method Detail |
---|
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)
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)
srcPath
- source path of the node that was copieddstPath
- destination path of the node that was copied.public static Modification onOrder(String orderedPath, String beforeSibbling)
orderedPath
- Path of the node that was reorderedbeforeSibbling
- Name of the sibbling node before which the source node has
been inserted.protected static Modification onChange(ModificationType type, String source)
protected static Modification onChange(ModificationType type, String source, String dest)
public static Modification onCheckin(String path)
public static Modification onCheckout(String path)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |