Class DeletedContentBackupCleanerListener
- java.lang.Object
-
- org.alfresco.repo.content.cleanup.DeletedContentBackupCleanerListener
-
- All Implemented Interfaces:
ContentStoreCleanerListener
public class DeletedContentBackupCleanerListener extends Object implements ContentStoreCleanerListener
Listens for content that is about to be deleted and moves it into the store configured as the backup store.- Author:
- Derek Hulley
-
-
Constructor Summary
Constructors Constructor Description DeletedContentBackupCleanerListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeDelete(ContentStore sourceStore, String contentUrl)Handle the notification that a store is about to be deletedvoidsetStore(ContentStore store)Set the store to copy soon-to-be-deleted content into
-
-
-
Method Detail
-
setStore
public void setStore(ContentStore store)
Set the store to copy soon-to-be-deleted content into- Parameters:
store- the deleted content backup store
-
beforeDelete
public void beforeDelete(ContentStore sourceStore, String contentUrl) throws ContentIOException
Description copied from interface:ContentStoreCleanerListenerHandle the notification that a store is about to be deleted- Specified by:
beforeDeletein interfaceContentStoreCleanerListener- Parameters:
sourceStore- the store from which the content will be deletedcontentUrl- the URL of the content to be deleted- Throws:
ContentIOException
-
-