Class WorkflowLink

java.lang.Object
com.hybris.backoffice.workflow.designer.pojo.WorkflowLink
All Implemented Interfaces:
WorkflowEntity

public class WorkflowLink extends Object implements WorkflowEntity
Represents Workflow Link
  • Method Details

    • ofSavedModel

      public static WorkflowLink ofSavedModel(LinkModel linkModel)
      Creates instance based on the saved LinkModel. The isAndConnection() 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-saved LinkModel. The isAndConnection() property has to be passed as the model is not persisted and does not have access to Item.setAttribute(String, Object).
      Parameters:
      linkModel - model for which the object will be created
      andConnection - if the model should be treated as 'andConnection' link
      Returns:
      created object.
    • getModel

      public LinkModel getModel()
      Specified by:
      getModel in interface WorkflowEntity
      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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object