Class AbstractWorkflowDesignerCreateHandler<FORM extends AbstractWorkflowTemplateCreateForm,MODEL extends ItemModel,DTO extends ElementDto<MODEL>>
java.lang.Object
com.hybris.backoffice.workflow.designer.handler.create.AbstractWorkflowDesignerCreateHandler<FORM,MODEL,DTO>
- Type Parameters:
FORM- a POJO which holds wizard specific dataMODEL- a subtype ofItemModel
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
- Direct Known Subclasses:
WorkflowDesignerCreateActionHandler,WorkflowDesignerCreateDecisionHandler
public abstract class AbstractWorkflowDesignerCreateHandler<FORM extends AbstractWorkflowTemplateCreateForm,MODEL extends ItemModel,DTO extends ElementDto<MODEL>>
extends Object
implements com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
A common handler for
WorkflowActionTemplateModel and
WorkflowDecisionTemplateModel create handlers-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Set<com.hybris.cockpitng.components.visjs.network.data.Node>extractNodes(com.hybris.cockpitng.core.model.WidgetModel widgetModel) protected abstract Stringcom.hybris.cockpitng.util.notifications.NotificationServiceprotected abstract Stringprotected abstract booleanisCodeUnique(FORM form, com.hybris.cockpitng.core.model.WidgetModel widgetModel) protected booleanisCurrentNodeBeingEdited(FORM form, com.hybris.cockpitng.components.visjs.network.data.Node node) voidperform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> map) protected abstract DTOprotected abstract FORMretrieveFormFromModel(com.hybris.cockpitng.engine.WidgetInstanceManager wim) protected abstract MODELretrieveOrCreateModelInstance(FORM form, com.hybris.cockpitng.components.visjs.network.data.Node node, com.hybris.cockpitng.core.model.WidgetModel widgetModel) voidsetNodeTypeService(NodeTypeService nodeTypeService) voidsetNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService)
-
Constructor Details
-
AbstractWorkflowDesignerCreateHandler
public AbstractWorkflowDesignerCreateHandler()
-
-
Method Details
-
perform
public void perform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> map) - Specified by:
performin interfacecom.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
-
getNonUniqueCodeMessageKey
-
retrieveFormFromModel
protected abstract FORM retrieveFormFromModel(com.hybris.cockpitng.engine.WidgetInstanceManager wim) -
retrieveOrCreateModelInstance
-
retrieveDtoObject
-
getSocketOutput
-
isCurrentNodeBeingEdited
protected boolean isCurrentNodeBeingEdited(FORM form, com.hybris.cockpitng.components.visjs.network.data.Node node) -
isCodeUnique
protected abstract boolean isCodeUnique(FORM form, com.hybris.cockpitng.core.model.WidgetModel widgetModel) -
extractNodes
protected static Set<com.hybris.cockpitng.components.visjs.network.data.Node> extractNodes(com.hybris.cockpitng.core.model.WidgetModel widgetModel) -
setNotificationService
public void setNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) -
getNotificationService
public com.hybris.cockpitng.util.notifications.NotificationService getNotificationService() -
setNodeTypeService
-
getNodeTypeService
-