Package com.hybris.backoffice.workflow
Class WorkflowItemModelFactory
java.lang.Object
com.hybris.backoffice.workflow.WorkflowItemModelFactory
A factory for
WorkflowItem-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates newWorkflowItemfrom theLinkModelcreate(WorkflowActionModel action) Creates newWorkflowItemfrom theWorkflowActionModelcreate(WorkflowActionTemplateModel action) Creates newWorkflowItemfrom theWorkflowActionTemplateModelcreate(WorkflowDecisionModel decision) Creates newWorkflowItemfrom theWorkflowDecisionModelcreate(WorkflowDecisionTemplateModel decision) Creates newWorkflowItemfrom theWorkflowDecisionTemplateModelcom.hybris.cockpitng.labels.LabelServicecom.hybris.cockpitng.i18n.CockpitLocaleServicestatic booleanisAndConnection(LinkModel link) Checks whether the givenLinkModelis an "and" connectionstatic booleanChecks whether the givenLinkModelis an "and" connection templatemergeNeighbors(WorkflowItem target, WorkflowItem source) Creates newWorkflowItemthat contains neighbors from source and targetvoidsetLabelService(com.hybris.cockpitng.labels.LabelService labelService) voidsetLocaleService(com.hybris.cockpitng.i18n.CockpitLocaleService localeService)
-
Constructor Details
-
WorkflowItemModelFactory
public WorkflowItemModelFactory()
-
-
Method Details
-
isAndConnection
Checks whether the givenLinkModelis an "and" connection- Parameters:
link- to be checked- Returns:
- true if the link is an "and" connection
-
isAndConnectionTemplate
Checks whether the givenLinkModelis an "and" connection template- Parameters:
link- to be checked- Returns:
- true if the link is an "and" connection template
-
create
Creates newWorkflowItemfrom theWorkflowActionTemplateModel- Parameters:
action- that should be used to create newWorkflowItem- Returns:
- WorkflowItem built from the action
-
create
Creates newWorkflowItemfrom theWorkflowActionModel- Parameters:
action- that should be used to create newWorkflowItem- Returns:
- WorkflowItem built from the action
-
create
Creates newWorkflowItemfrom theWorkflowDecisionTemplateModel- Parameters:
decision- that should be used to create newWorkflowItem- Returns:
- WorkflowItem built from the decision
-
create
Creates newWorkflowItemfrom theWorkflowDecisionModel- Parameters:
decision- that should be used to create newWorkflowItem- Returns:
- WorkflowItem built from the decision
-
create
Creates newWorkflowItemfrom theLinkModel- Parameters:
link- that should be used to create newWorkflowItem- Returns:
- WorkflowItem built from the link
-
mergeNeighbors
Creates newWorkflowItemthat contains neighbors from source and target- Parameters:
target-WorkflowItemthat should be used to create newWorkflowItemsource-WorkflowItemfrom which the neighbors should be added to the target- Returns:
- a copy of target that additionally contains source's neighbors
-
getLocaleService
public com.hybris.cockpitng.i18n.CockpitLocaleService getLocaleService() -
setLocaleService
public void setLocaleService(com.hybris.cockpitng.i18n.CockpitLocaleService localeService) -
getLabelService
public com.hybris.cockpitng.labels.LabelService getLabelService() -
setLabelService
public void setLabelService(com.hybris.cockpitng.labels.LabelService labelService)
-