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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
protected final File
getConfigurationFile
(String fileToImport) Get configuration fileprotected final IDirectoryModule
protected final Logger
protected final IPortalModule
protected final IProjectModule
protected final IWorkflowModule
final void
run()
Method used to run extension for configuration screenfinal void
run
(Properties properties, Map<String, String> parameters, com.axemble.vdp.utils.ReportCollector report) protected void
Called when server stops or server stops being a master nodefinal void
stop
(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:
run
in 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:
stop
in 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:
-