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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringLINK_SEQUENCE_NAMELink sequence name
-
Constructor Summary
Constructors Constructor Description ActivityFlowLink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ChannelsBuilders.ChannelsBuildergetChannelsBuilder()Get the channels this entity shall be sent through.DeletionStatusgetDeletionStatus()Get the deletion status :LonggetId()CardgetNextCard()LonggetNextCardId()get the id of the card to handle after.CardgetPreviousCard()LonggetPreviousCardId()get the id of the card to handle before.Conditions.ConditiongetReadCondition()Get the condition required to read this entityTrackinggetTrackingData()Get the tracking dataConditions.ConditiongetUpdateCondition()Get the condition required to update this entityinthashCode()voidmergeToUpdate(ColabEntity other)Update this object according to values provided by other.voidsetDeletionStatus(DeletionStatus status)Set the deletion status :voidsetId(Long id)voidsetNextCard(Card nextCard)voidsetNextCardId(Long nextCardId)set the id of the card to handle after.voidsetPreviousCard(Card previousCard)voidsetPreviousCardId(Long previousCardId)set the id of the card to handle before.voidsetTrackingData(Tracking trackingData)Set tracking dataStringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ch.colabproject.colab.api.model.ColabEntity
mergeToDuplicate
-
Methods inherited from interface ch.colabproject.colab.generator.model.interfaces.WithJsonDiscriminator
getJsonDiscriminator
-
Methods inherited from interface ch.colabproject.colab.api.model.WithPermission
getCreateCondition, getDeleteCondition
-
Methods inherited from interface ch.colabproject.colab.api.model.WithTrackingData
initErasureTrackingData, resetErasureTrackingData, touch
-
Methods inherited from interface ch.colabproject.colab.api.model.WithWebsocketChannels
getIndexEntryPayload
-
-
-
-
Field Detail
-
LINK_SEQUENCE_NAME
public static final String LINK_SEQUENCE_NAME
Link sequence name- See Also:
- Constant Field Values
-
-
Method Detail
-
setId
public void setId(Long id)
- Parameters:
id- the link id
-
getTrackingData
public Tracking getTrackingData()
Get the tracking data- Specified by:
getTrackingDatain interfaceWithTrackingData- Returns:
- tracking data
-
setTrackingData
public void setTrackingData(Tracking trackingData)
Set tracking data- Specified by:
setTrackingDatain interfaceWithTrackingData- Parameters:
trackingData- new tracking data
-
getDeletionStatus
public DeletionStatus getDeletionStatus()
Description copied from interface:WithDeletionStatusGet the deletion status :Is it in a bin or ready to be definitely deleted.
Null means active.
- Specified by:
getDeletionStatusin interfaceWithDeletionStatus- Returns:
- null or a deletion status
-
setDeletionStatus
public void setDeletionStatus(DeletionStatus status)
Description copied from interface:WithDeletionStatusSet the deletion status :Is it in a bin or ready to be definitely deleted.
Null means active.
- Specified by:
setDeletionStatusin interfaceWithDeletionStatus- 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:ColabEntityUpdate this object according to values provided by other.This is used when an object is prepared to be updated in database.
- Specified by:
mergeToUpdatein interfaceColabEntity- Parameters:
other- object to take new values from- Throws:
ColabMergeException- if merging is not possible
-
getChannelsBuilder
public ChannelsBuilders.ChannelsBuilder getChannelsBuilder()
Description copied from interface:WithWebsocketChannelsGet the channels this entity shall be sent through.- Specified by:
getChannelsBuilderin interfaceWithWebsocketChannels- Returns:
- list of channels
-
getReadCondition
public Conditions.Condition getReadCondition()
Description copied from interface:WithPermissionGet the condition required to read this entity- Specified by:
getReadConditionin interfaceWithPermission- Returns:
- the condition
-
getUpdateCondition
public Conditions.Condition getUpdateCondition()
Description copied from interface:WithPermissionGet the condition required to update this entity- Specified by:
getUpdateConditionin interfaceWithPermission- Returns:
- the condition
-
-