Interface ContentStoreCleanerListener

  • All Known Implementing Classes:
    DeletedContentBackupCleanerListener, FileWipingContentCleanerListener

    public interface ContentStoreCleanerListener
    A listener that can be plugged into a cleaner to move pre-process any content that is about to be deleted from a store.

    Implementations may backup the content or even perform scrubbing or obfuscation tasks on the content. In either case, this interface is called when the content really will disappear i.e. there is no potential rollback of this operation.

    Author:
    Derek Hulley
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void beforeDelete​(org.alfresco.repo.content.ContentStore sourceStore, java.lang.String contentUrl)
      Handle the notification that a store is about to be deleted
    • Method Detail

      • beforeDelete

        void beforeDelete​(org.alfresco.repo.content.ContentStore sourceStore,
                          java.lang.String contentUrl)
                   throws org.alfresco.service.cmr.repository.ContentIOException
        Handle the notification that a store is about to be deleted
        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
        Since:
        3.2