Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.slide.macro
Interface DeleteListener

public interface DeleteListener

A DeleteListener may be handed to the Macro helper in order to have more control on the delete operation. The DeleteListener will be notified before and after deleting any single resource that is target of the recursive delete operation.

Version:
  $Revision: 1.6 $

Method Summary
`void` | `afterDelete(java.lang.String targetUri)` This method is called after deleting the resource associated by the given `targetUri`.
`void` | `beforeDelete(java.lang.String targetUri)` This method is called prior to deleting the resource associated by the given `targetUri`.

Method Detail

### beforeDelete

    public void beforeDelete(java.lang.String targetUri)
                      throws SlideException

  This method is called prior to deleting the resource associated by the given `targetUri`. The deletion can be prohibited by throwing a SlideException.

  Parameters:
    `targetUri` - the Uri of the resource that will be deleted.
  Throws:
    `SlideException` - this Exception will be passed to the caller of the Macro helper (contained in the MacroDeleteException.

### afterDelete

    public void afterDelete(java.lang.String targetUri)
                     throws SlideException

  This method is called after deleting the resource associated by the given `targetUri`.

  Parameters:
    `targetUri` - the Uri of the resource that has been deleted.
  Throws:
    `SlideException` - this Exception will be passed to the caller of the Macro helper (contained in the MacroDeleteException.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD