|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.servlets.post.Modification
public class Modification
| Constructor Summary | |
|---|---|
Modification(ModificationType type,
java.lang.String source,
java.lang.String destination)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDestination()
|
java.lang.String |
getSource()
|
ModificationType |
getType()
|
protected static Modification |
onChange(ModificationType type,
java.lang.String source)
|
protected static Modification |
onChange(ModificationType type,
java.lang.String source,
java.lang.String dest)
|
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 beforeSibbling)
Records a 'order' change. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Modification(ModificationType type,
java.lang.String source,
java.lang.String destination)
| Method Detail |
|---|
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 deleted
public static Modification onMoved(java.lang.String srcPath,
java.lang.String dstPath)
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)
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 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,
java.lang.String source)
protected static Modification onChange(ModificationType type,
java.lang.String source,
java.lang.String dest)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||