Interface FolderListener

  • All Known Implementing Classes:
    FolderInitializer, FolderValidator

    public interface FolderListener
    This interface defines hooks called before and after a particular event occurs on the specified folder.

    Each methods has access to a dictionary map that can be used through the execution pipeline in order to carry needed informations among all listeners.

    Since:
    8.7.4
    Author:
    Marco Meschieri - LogicalDOC
    • Method Detail

      • beforeStore

        void beforeStore​(Folder folder,
                         FolderHistory transaction,
                         Map<String,​Object> dictionary)
                  throws Exception
        Called before a folder is stored in the database
        Parameters:
        folder - The folder to be stored
        transaction - Transaction informations
        dictionary - Dictionary of the execution pipeline
        Throws:
        Exception - raised if something went wrong
      • afterStore

        void afterStore​(Folder folder,
                        FolderHistory transaction,
                        Map<String,​Object> dictionary)
                 throws Exception
        Called after a folder is stored in the database
        Parameters:
        folder - The folder to be stored
        transaction - Transaction informations
        dictionary - Dictionary of the execution pipeline
        Throws:
        Exception - raised if something went wrong