org.apache.sling.jcr.contentloader
Interface ContentImportListener


public interface ContentImportListener

Listener interface to provide callbacks for all imported updates for interested parties. This is primarily used to record the modifications during the "import" post operation.


Method Summary
 void onCopy(String srcPath, String destPath)
          An Item has been copied to a new location.
 void onCreate(String srcPath)
          A Node has been created.
 void onDelete(String srcPath)
          An Item has been deleted.
 void onModify(String srcPath)
          Content has been updated.
 void onMove(String srcPath, String destPath)
          An Item has been moved to a new location.
 void onReorder(String orderedPath, String beforeSibbling)
          A child Node has been reordered.
 

Method Detail

onModify

void onModify(String srcPath)
Content has been updated. The source path provides the path of the modified Item.


onDelete

void onDelete(String srcPath)
An Item has been deleted. The source path provides the path of the deleted Item.


onMove

void onMove(String srcPath,
            String destPath)
An Item has been moved to a new location. The source provides the original path of the Item, the destination provides the new path of the Item.


onCopy

void onCopy(String srcPath,
            String destPath)
An Item has been copied to a new location. The source path provides the path of the copied Item, the destination path provides the path of the new Item.


onCreate

void onCreate(String srcPath)
A Node has been created. The source path provides the path of the newly created Node.


onReorder

void onReorder(String orderedPath,
               String beforeSibbling)
A child Node has been reordered. The orderedPath provides the path of the node, which has been reordered. ThebeforeSibbling provides the name of the sibling node before which the source Node has been ordered.



Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.