Class FolderInitializer

  • All Implemented Interfaces:
    FolderListener

    public class FolderInitializer
    extends Initializer
    implements FolderListener
    This listener takes care of initializing the metadata of a folder.
    Since:
    8.8.2
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • FolderInitializer

        public FolderInitializer()
    • Method Detail

      • beforeStore

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

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