Class WorkflowLink
- java.lang.Object
-
- com.hybris.backoffice.workflow.designer.pojo.WorkflowLink
-
- All Implemented Interfaces:
WorkflowEntity
public class WorkflowLink extends java.lang.Object implements WorkflowEntity
Represents Workflow Link
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)LinkModelgetModel()WorkflowEntitygetSource()WorkflowEntitygetTarget()inthashCode()booleanisAndConnection()static WorkflowLinkofSavedModel(LinkModel linkModel)Creates instance based on the savedLinkModel.static WorkflowLinkofUnsavedModel(LinkModel linkModel, boolean andConnection)Creates instance based on the un-savedLinkModel.
-
-
-
Method Detail
-
ofSavedModel
public static WorkflowLink ofSavedModel(LinkModel linkModel)
Creates instance based on the savedLinkModel. TheisAndConnection()property will be resolved automatically from the model- Parameters:
linkModel- model for which the object will be created- Returns:
- created object.
-
ofUnsavedModel
public static WorkflowLink ofUnsavedModel(LinkModel linkModel, boolean andConnection)
Creates instance based on the un-savedLinkModel. TheisAndConnection()property has to be passed as the model is not persisted and does not have access toItem.setAttribute(String, Object).- Parameters:
linkModel- model for which the object will be createdandConnection- if the model should be treated as 'andConnection' link- Returns:
- created object.
-
getModel
public LinkModel getModel()
- Specified by:
getModelin interfaceWorkflowEntity- Returns:
- model of
WorkflowEntity
-
isAndConnection
public boolean isAndConnection()
-
getSource
public WorkflowEntity getSource()
- Returns:
- source of the link
-
getTarget
public WorkflowEntity getTarget()
- Returns:
- target of the link
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-