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(ContentReader reader)
           
 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(ContentReader reader)
                  throws ContentIOException
Specified by:
beforeDelete in interface ContentStoreCleanerListener
Throws:
ContentIOException


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