Package com.hybris.backoffice.workflow
Class WorkflowItemModelFactory
- java.lang.Object
-
- com.hybris.backoffice.workflow.WorkflowItemModelFactory
-
public class WorkflowItemModelFactory extends java.lang.ObjectA factory forWorkflowItem
-
-
Constructor Summary
Constructors Constructor Description WorkflowItemModelFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowItemcreate(LinkModel link)Creates newWorkflowItemfrom theLinkModelWorkflowItemcreate(WorkflowActionModel action)Creates newWorkflowItemfrom theWorkflowActionModelWorkflowItemcreate(WorkflowActionTemplateModel action)Creates newWorkflowItemfrom theWorkflowActionTemplateModelWorkflowItemcreate(WorkflowDecisionModel decision)Creates newWorkflowItemfrom theWorkflowDecisionModelWorkflowItemcreate(WorkflowDecisionTemplateModel decision)Creates newWorkflowItemfrom theWorkflowDecisionTemplateModelcom.hybris.cockpitng.labels.LabelServicegetLabelService()com.hybris.cockpitng.i18n.CockpitLocaleServicegetLocaleService()static booleanisAndConnection(LinkModel link)Checks whether the givenLinkModelis an "and" connectionstatic booleanisAndConnectionTemplate(LinkModel link)Checks whether the givenLinkModelis an "and" connection templateWorkflowItemmergeNeighbors(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)
-
-
-
Method Detail
-
isAndConnection
public static boolean isAndConnection(@Nullable LinkModel link)Checks whether the givenLinkModelis an "and" connection- Parameters:
link- to be checked- Returns:
- true if the link is an "and" connection
-
isAndConnectionTemplate
public static boolean isAndConnectionTemplate(@Nullable LinkModel link)Checks whether the givenLinkModelis an "and" connection template- Parameters:
link- to be checked- Returns:
- true if the link is an "and" connection template
-
create
public WorkflowItem create(WorkflowActionTemplateModel action)
Creates newWorkflowItemfrom theWorkflowActionTemplateModel- Parameters:
action- that should be used to create newWorkflowItem- Returns:
- WorkflowItem built from the action
-
create
public WorkflowItem create(WorkflowActionModel action)
Creates newWorkflowItemfrom theWorkflowActionModel- Parameters:
action- that should be used to create newWorkflowItem- Returns:
- WorkflowItem built from the action
-
create
public WorkflowItem create(WorkflowDecisionTemplateModel decision)
Creates newWorkflowItemfrom theWorkflowDecisionTemplateModel- Parameters:
decision- that should be used to create newWorkflowItem- Returns:
- WorkflowItem built from the decision
-
create
public WorkflowItem create(WorkflowDecisionModel decision)
Creates newWorkflowItemfrom theWorkflowDecisionModel- Parameters:
decision- that should be used to create newWorkflowItem- Returns:
- WorkflowItem built from the decision
-
create
public WorkflowItem create(LinkModel link)
Creates newWorkflowItemfrom theLinkModel- Parameters:
link- that should be used to create newWorkflowItem- Returns:
- WorkflowItem built from the link
-
mergeNeighbors
public WorkflowItem mergeNeighbors(WorkflowItem target, WorkflowItem source)
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)
-
-