Class BaseTaskExtension

java.lang.Object
com.axemble.vdoc.sdk.packaging.extensions.BaseTaskExtension
All Implemented Interfaces:
com.axemble.vdoc.update.IUpdateServiceExtension
Direct Known Subclasses:
BaseImportMigrationExtension

public abstract class BaseTaskExtension extends Object implements com.axemble.vdoc.update.IUpdateServiceExtension
This class can be extended to create packaging classes that will be run on fresh install or migration
Author:
omenuel
  • Field Details

    • reportCollector

      protected com.axemble.vdp.utils.ReportCollector reportCollector
  • Constructor Details

    • BaseTaskExtension

      public BaseTaskExtension()
  • Method Details

    • run

      public final void run()
      Method used to run extension for configuration screen
    • run

      public final void run(Properties properties, Map<String,String> parameters, com.axemble.vdp.utils.ReportCollector report)
      Specified by:
      run in interface com.axemble.vdoc.update.IUpdateServiceExtension
    • execute

      protected abstract void execute(Map<String,String> parameters) throws Exception
      Throws:
      Exception
    • stop

      public final void stop(Properties properties, Map<String,String> parameters, com.axemble.vdp.utils.ReportCollector report)
      Specified by:
      stop in interface com.axemble.vdoc.update.IUpdateServiceExtension
    • stop

      protected void stop(Map<String,String> parameters) throws Exception
      Called when server stops or server stops being a master node
      Parameters:
      parameters -
      Throws:
      Exception
    • getLogger

      protected final Logger getLogger()
    • getWorkflowModule

      protected final IWorkflowModule getWorkflowModule()
      Returns:
      the workflowModule
    • getPortalModule

      protected final IPortalModule getPortalModule()
      Returns:
      the portalModule
    • getDirectoryModule

      protected final IDirectoryModule getDirectoryModule()
      Returns:
      the directoryModule
    • getProjectModule

      protected final IProjectModule getProjectModule()
      Returns:
      the projectModule
    • getConfigurationFile

      protected final File getConfigurationFile(String fileToImport)
      Get configuration file
      Parameters:
      fileToImport -
      Returns: