Class ActivityFlowLink

java.lang.Object
ch.colabproject.colab.api.model.link.ActivityFlowLink
All Implemented Interfaces:
ColabEntity, WithDeletionStatus, WithPermission, WithTrackingData, WithWebsocketChannels, WithId, WithJsonDiscriminator, Serializable

@Entity public class ActivityFlowLink extends Object implements ColabEntity, WithWebsocketChannels
Link to show that a card must be handled before another one.
Author:
sandra
See Also:
  • Field Details

  • Constructor Details

    • ActivityFlowLink

      public ActivityFlowLink()
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface WithId
      Returns:
      the link id
    • setId

      public void setId(Long id)
      Parameters:
      id - the link id
    • getTrackingData

      public Tracking getTrackingData()
      Get the tracking data
      Specified by:
      getTrackingData in interface WithTrackingData
      Returns:
      tracking data
    • setTrackingData

      public void setTrackingData(Tracking trackingData)
      Set tracking data
      Specified by:
      setTrackingData in interface WithTrackingData
      Parameters:
      trackingData - new tracking data
    • getDeletionStatus

      public DeletionStatus getDeletionStatus()
      Description copied from interface: WithDeletionStatus
      Get the deletion status :

      Is it in a bin or ready to be definitely deleted.

      Null means active.

      Specified by:
      getDeletionStatus in interface WithDeletionStatus
      Returns:
      null or a deletion status
    • setDeletionStatus

      public void setDeletionStatus(DeletionStatus status)
      Description copied from interface: WithDeletionStatus
      Set the deletion status :

      Is it in a bin or ready to be definitely deleted.

      Null means active.

      Specified by:
      setDeletionStatus in interface WithDeletionStatus
      Parameters:
      status - null or a deletion status
    • getPreviousCard

      public Card getPreviousCard()
      Returns:
      the card to handle before
    • setPreviousCard

      public void setPreviousCard(Card previousCard)
      Parameters:
      previousCard - the card to handle before
    • getPreviousCardId

      public Long getPreviousCardId()
      get the id of the card to handle before. To be sent to client
      Returns:
      the id of the card to handle before
    • setPreviousCardId

      public void setPreviousCardId(Long previousCardId)
      set the id of the card to handle before. For serialization only
      Parameters:
      previousCardId - the id of the card to handle before
    • getNextCard

      public Card getNextCard()
      Returns:
      the card to handle after
    • setNextCard

      public void setNextCard(Card nextCard)
      Parameters:
      nextCard - the card to handle after
    • getNextCardId

      public Long getNextCardId()
      get the id of the card to handle after. To be sent to client
      Returns:
      the id of the card to handle after
    • setNextCardId

      public void setNextCardId(Long nextCardId)
      set the id of the card to handle after. For serialization only
      Parameters:
      nextCardId - the id of the card to handle after
    • mergeToUpdate

      public void mergeToUpdate(ColabEntity other) throws ColabMergeException
      Description copied from interface: ColabEntity
      Update this object according to values provided by other.

      This is used when an object is prepared to be updated in database.

      Specified by:
      mergeToUpdate in interface ColabEntity
      Parameters:
      other - object to take new values from
      Throws:
      ColabMergeException - if merging is not possible
    • getChannelsBuilder

      public ChannelsBuilders.ChannelsBuilder getChannelsBuilder()
      Description copied from interface: WithWebsocketChannels
      Get the channels this entity shall be sent through.
      Specified by:
      getChannelsBuilder in interface WithWebsocketChannels
      Returns:
      list of channels
    • getReadCondition

      public Conditions.Condition getReadCondition()
      Description copied from interface: WithPermission
      Get the condition required to read this entity
      Specified by:
      getReadCondition in interface WithPermission
      Returns:
      the condition
    • getUpdateCondition

      public Conditions.Condition getUpdateCondition()
      Description copied from interface: WithPermission
      Get the condition required to update this entity
      Specified by:
      getUpdateCondition in interface WithPermission
      Returns:
      the condition
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object