org.alfresco.repo.content.cleanup
Class DeletedContentBackupCleanerListener

java.lang.Object
  extended by org.alfresco.repo.content.cleanup.DeletedContentBackupCleanerListener
All Implemented Interfaces:
ContentStoreCleanerListener

public class DeletedContentBackupCleanerListener
extends java.lang.Object
implements ContentStoreCleanerListener

Listens for content that is about to be deleted and moves it into the store configured as the backup store.


Constructor Summary
DeletedContentBackupCleanerListener()
           
 
Method Summary
 void beforeDelete(ContentStore sourceStore, java.lang.String contentUrl)
          Handle the notification that a store is about to be deleted
 void setStore(ContentStore store)
          Set the store to copy soon-to-be-deleted content into
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeletedContentBackupCleanerListener

public DeletedContentBackupCleanerListener()
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,
                         java.lang.String contentUrl)
                  throws org.alfresco.service.cmr.repository.ContentIOException
Description copied from interface: ContentStoreCleanerListener
Handle the notification that a store is about to be deleted

Specified by:
beforeDelete in interface ContentStoreCleanerListener
Parameters:
sourceStore - the store from which the content will be deleted
contentUrl - the URL of the content to be deleted
Throws:
org.alfresco.service.cmr.repository.ContentIOException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.