Class Default3PhaseManager
- java.lang.Object
-
- org.gcube.application.cms.plugins.implementations.AbstractPlugin
-
- org.gcube.application.cms.plugins.implementations.AbstractLifeCycleManager
-
- org.gcube.application.cms.plugins.implementations.SimpleLifeCycleManager
-
- org.gcube.application.cms.plugins.implementations.Default3PhaseManager
-
- All Implemented Interfaces:
InitializablePlugin,LifecycleManager,Plugin
public class Default3PhaseManager extends SimpleLifeCycleManager implements LifecycleManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDefault3PhaseManager.Phasesprotected static classDefault3PhaseManager.STEPS-
Nested classes/interfaces inherited from class org.gcube.application.cms.plugins.implementations.AbstractLifeCycleManager
AbstractLifeCycleManager.Events
-
-
Field Summary
-
Fields inherited from class org.gcube.application.cms.plugins.implementations.SimpleLifeCycleManager
PLUGIN_ID
-
Fields inherited from class org.gcube.application.cms.plugins.implementations.AbstractLifeCycleManager
DESCRIPTOR, pluginManager, projectAccess
-
-
Constructor Summary
Constructors Constructor Description Default3PhaseManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StepExecutionReportexecuteApprove(StepExecutionReport theReport)protected StepExecutionReportexecuteReject(StepExecutionReport theReport)protected StepExecutionReportexecuteSubmit(StepExecutionReport theReport)org.gcube.application.geoportal.common.model.configuration.ConfigurationgetCurrentConfiguration(BaseRequest req)protected org.bson.DocumentgetInternalIndexParams(BaseRequest req)protected EventExecutionReportonDeleteDocument(EventExecutionReport report)protected EventExecutionReportonDeleteFileSet(EventExecutionReport theReport)protected voidregisterSteps()-
Methods inherited from class org.gcube.application.cms.plugins.implementations.SimpleLifeCycleManager
blockNonDraft, deIndex, deMaterialize, evaluateAdditionalIndexParameters, getIndexers, getMaterializationParameters, getMaterializers, getPublicIndexParams, index, materializeDocument, onInitDocument, onUpdateDocument, registerEvents
-
Methods inherited from class org.gcube.application.cms.plugins.implementations.AbstractLifeCycleManager
canInvokeStep, getDescriptor, init, initInContext, onEvent, performStep, setDefault, setEvent, setStep, shutdown, validate
-
Methods inherited from class org.gcube.application.cms.plugins.implementations.AbstractPlugin
getConfigurationFromProfile, getMultipleDeclarationsFromProfile
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.gcube.application.cms.plugins.InitializablePlugin
init, initInContext, shutdown
-
Methods inherited from interface org.gcube.application.cms.plugins.LifecycleManager
onEvent, performStep, setPluginManager
-
Methods inherited from interface org.gcube.application.cms.plugins.Plugin
getDescriptor
-
-
-
-
Method Detail
-
onDeleteDocument
protected EventExecutionReport onDeleteDocument(EventExecutionReport report) throws org.gcube.application.geoportal.common.model.rest.ConfigurationException, InvalidPluginRequestException, MaterializationException, EventException
- Overrides:
onDeleteDocumentin classSimpleLifeCycleManager- Throws:
org.gcube.application.geoportal.common.model.rest.ConfigurationExceptionInvalidPluginRequestExceptionMaterializationExceptionEventException
-
onDeleteFileSet
protected EventExecutionReport onDeleteFileSet(EventExecutionReport theReport) throws org.gcube.application.geoportal.common.model.rest.ConfigurationException, InvalidPluginRequestException, MaterializationException, EventException
- Overrides:
onDeleteFileSetin classSimpleLifeCycleManager- Throws:
org.gcube.application.geoportal.common.model.rest.ConfigurationExceptionInvalidPluginRequestExceptionMaterializationExceptionEventException
-
registerSteps
protected void registerSteps()
- Overrides:
registerStepsin classSimpleLifeCycleManager
-
getCurrentConfiguration
public org.gcube.application.geoportal.common.model.configuration.Configuration getCurrentConfiguration(BaseRequest req) throws org.gcube.application.geoportal.common.model.rest.ConfigurationException
- Specified by:
getCurrentConfigurationin interfaceLifecycleManager- Overrides:
getCurrentConfigurationin classSimpleLifeCycleManager- Throws:
org.gcube.application.geoportal.common.model.rest.ConfigurationException
-
getInternalIndexParams
protected org.bson.Document getInternalIndexParams(BaseRequest req)
-
executeSubmit
protected StepExecutionReport executeSubmit(StepExecutionReport theReport) throws Exception
- Throws:
Exception
-
executeApprove
protected StepExecutionReport executeApprove(StepExecutionReport theReport) throws Exception
- Throws:
Exception
-
executeReject
protected StepExecutionReport executeReject(StepExecutionReport theReport) throws Exception
- Throws:
Exception
-
-