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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidprotected final FilegetConfigurationFile(String fileToImport) Get configuration fileprotected final IDirectoryModuleprotected final Loggerprotected final IPortalModuleprotected final IProjectModuleprotected final IWorkflowModulefinal voidrun()Method used to run extension for configuration screenfinal voidrun(Properties properties, Map<String, String> parameters, com.axemble.vdp.utils.ReportCollector report) protected voidCalled when server stops or server stops being a master nodefinal voidstop(Properties properties, Map<String, String> parameters, com.axemble.vdp.utils.ReportCollector report)
-
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:
runin interfacecom.axemble.vdoc.update.IUpdateServiceExtension
-
execute
- Throws:
Exception
-
stop
public final void stop(Properties properties, Map<String, String> parameters, com.axemble.vdp.utils.ReportCollector report) - Specified by:
stopin interfacecom.axemble.vdoc.update.IUpdateServiceExtension
-
stop
Called when server stops or server stops being a master node- Parameters:
parameters-- Throws:
Exception
-
getLogger
-
getWorkflowModule
- Returns:
- the workflowModule
-
getPortalModule
- Returns:
- the portalModule
-
getDirectoryModule
- Returns:
- the directoryModule
-
getProjectModule
- Returns:
- the projectModule
-
getConfigurationFile
Get configuration file- Parameters:
fileToImport-- Returns:
-