Class DefaultWorkflowDesignerPersistenceService
- java.lang.Object
-
- com.hybris.backoffice.workflow.designer.persistence.DefaultWorkflowDesignerPersistenceService
-
- All Implemented Interfaces:
WorkflowDesignerPersistenceService
public class DefaultWorkflowDesignerPersistenceService extends java.lang.Object implements WorkflowDesignerPersistenceService
Default implementation of persisting Workflow Template that is being edited in Workflow Designer.
-
-
Constructor Summary
Constructors Constructor Description DefaultWorkflowDesignerPersistenceService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelServicegetModelService()java.util.List<NetworkChartContextPostprocessor>getPostprocessors()java.util.List<NetworkChartContextPreprocessor>getPreprocessors()SessionServicegetSessionService()WorkflowModelFindergetWorkflowModelFinder()voidpersist(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)Persists the Workflow Template data given in the context.voidsetModelService(ModelService modelService)voidsetPostprocessors(java.util.List<NetworkChartContextPostprocessor> postprocessors)voidsetPreprocessors(java.util.List<NetworkChartContextPreprocessor> preprocessors)voidsetSessionService(SessionService sessionService)voidsetWorkflowModelFinder(WorkflowModelFinder workflowModelFinder)protected voidwithinLocalView(java.util.Map<java.lang.String,java.lang.Object> parameters, java.lang.Runnable sessionExecutionBody)Executes given statement within local session that is populated with parameters provided in the map.protected voidwithinTransaction(java.lang.Runnable transactionBody)Executes given statement within single transaction
-
-
-
Method Detail
-
persist
public void persist(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
Persists the Workflow Template data given in the context.- Specified by:
persistin interfaceWorkflowDesignerPersistenceService- Parameters:
context- contains the data about the Workflow Template to persist
-
withinLocalView
protected void withinLocalView(java.util.Map<java.lang.String,java.lang.Object> parameters, java.lang.Runnable sessionExecutionBody)Executes given statement within local session that is populated with parameters provided in the map.- Parameters:
parameters- parameters that will be set in local viewsessionExecutionBody- callback to be invoked
-
withinTransaction
protected void withinTransaction(java.lang.Runnable transactionBody)
Executes given statement within single transaction- Parameters:
transactionBody- the statement that should be executed within transaction
-
getPreprocessors
public java.util.List<NetworkChartContextPreprocessor> getPreprocessors()
-
setPreprocessors
public void setPreprocessors(java.util.List<NetworkChartContextPreprocessor> preprocessors)
-
getModelService
public ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getPostprocessors
public java.util.List<NetworkChartContextPostprocessor> getPostprocessors()
-
setPostprocessors
public void setPostprocessors(java.util.List<NetworkChartContextPostprocessor> postprocessors)
-
getSessionService
public SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getWorkflowModelFinder
public WorkflowModelFinder getWorkflowModelFinder()
-
setWorkflowModelFinder
public void setWorkflowModelFinder(WorkflowModelFinder workflowModelFinder)
-
-