Class StickyNoteLink
java.lang.Object
ch.colabproject.colab.api.model.link.StickyNoteLink
- All Implemented Interfaces:
ColabEntity,WithDeletionStatus,WithPermission,WithTrackingData,WithWebsocketChannels,WithId,WithJsonDiscriminator,Serializable
Link to make an information accessible within a card.
The source of information can be either
- a card
- a card content
- a resource
- a document
- Author:
- sandra
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the channels this entity shall be sent through.Get the deletion status :get the id of the destination card.get the id of the explanation.getId()Get the project it belongs toGet the condition required to read this entitygetSrc()get the id of the source card content.get the id of the source card.get the id of the source document.get the id of the source resource / resource reference.Get the tracking dataGet the condition required to update this entityinthashCode()booleanbooleanbooleanbooleanvoidmergeToUpdate(ColabEntity other) Update this object according to values provided by other.voidsetDeletionStatus(DeletionStatus status) Set the deletion status :voidsetDestinationCard(Card destinationCard) voidsetDestinationCardId(Long destinationCardId) set the id of the destination card.voidsetExplanation(TextDataBlock explanation) voidsetExplanationId(Long explanationId) set the id of the explanation.voidvoidvoidsetSrcCard(Card srcCard) voidsetSrcCardContent(CardContent srcCardContent) voidsetSrcCardContentId(Long srcCardContentId) set the id of the source card content.voidsetSrcCardId(Long srcCardId) set the id of the source card.voidsetSrcDocument(Document srcDocument) voidsetSrcDocumentId(Long srcDocumentId) set the id of the source document.voidsetSrcResourceOrRef(AbstractResource srcResourceOrRef) voidsetSrcResourceOrRefId(Long srcResourceOrRefId) set the id of the source resource / resource reference.voidvoidsetTrackingData(Tracking trackingData) Set tracking datatoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.colabproject.colab.api.model.ColabEntity
mergeToDuplicateMethods inherited from interface ch.colabproject.colab.generator.model.interfaces.WithJsonDiscriminator
getJsonDiscriminatorMethods inherited from interface ch.colabproject.colab.api.model.WithPermission
getCreateCondition, getDeleteConditionMethods inherited from interface ch.colabproject.colab.api.model.WithTrackingData
clearErasureTrackingData, setErasureTrackingData, touchMethods inherited from interface ch.colabproject.colab.api.model.WithWebsocketChannels
getIndexEntryPayload
-
Constructor Details
-
StickyNoteLink
public StickyNoteLink()
-
-
Method Details
-
getId
-
setId
- Parameters:
id- the link id
-
getTrackingData
Get the tracking data- Specified by:
getTrackingDatain interfaceWithTrackingData- Returns:
- tracking data
-
setTrackingData
Set tracking data- Specified by:
setTrackingDatain interfaceWithTrackingData- Parameters:
trackingData- new tracking data
-
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
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
-
getExplanation
- Returns:
- the long description
-
setExplanation
- Parameters:
explanation- the long description
-
getExplanationId
get the id of the explanation. To be sent to client.- Returns:
- the id of the explanation
-
setExplanationId
set the id of the explanation. For serialization only.- Parameters:
explanationId- the id of the teaser
-
getSrcCard
- Returns:
- the card, source of the sticky note
-
setSrcCard
- Parameters:
srcCard- the card, source of the sticky note
-
getSrcCardId
get the id of the source card. To be sent to client- Returns:
- the id of source card
-
setSrcCardId
set the id of the source card. For serialization only- Parameters:
srcCardId- the id of the source card
-
isSrcCard
public boolean isSrcCard()- Returns:
- True if the source is a card
-
getSrcCardContent
- Returns:
- the card content, source of the sticky note
-
setSrcCardContent
- Parameters:
srcCardContent- the card content, source of the sticky note
-
getSrcCardContentId
get the id of the source card content. To be sent to client- Returns:
- the id of source card content
-
setSrcCardContentId
set the id of the source card content. For serialization only- Parameters:
srcCardContentId- the id of the source card content
-
isSrcCardContent
public boolean isSrcCardContent()- Returns:
- True if the source is a card content
-
getSrcResourceOrRef
- Returns:
- the resource / resource reference, source of the sticky note
-
setSrcResourceOrRef
- Parameters:
srcResourceOrRef- the resource / resource reference, source of the sticky note
-
getSrcResourceOrRefId
get the id of the source resource / resource reference. To be sent to client- Returns:
- the id of source resource / resource reference
-
setSrcResourceOrRefId
set the id of the source resource / resource reference. For serialization only- Parameters:
srcResourceOrRefId- the id of the source resource / resource reference
-
isSrcResourceOrRef
public boolean isSrcResourceOrRef()- Returns:
- True if the source is a resource / resource reference
-
getSrcDocument
- Returns:
- the document, source of the sticky note
-
setSrcDocument
- Parameters:
srcDocument- the Document, source of the sticky note
-
getSrcDocumentId
get the id of the source document. To be sent to client- Returns:
- the id of source document
-
setSrcDocumentId
set the id of the source document. For serialization only- Parameters:
srcDocumentId- the id of the source document
-
isSrcDocument
public boolean isSrcDocument()- Returns:
- True if the source is a document
-
getDestinationCard
- Returns:
- the card where the information is useful
-
setDestinationCard
- Parameters:
destinationCard- the card where the information is useful
-
getDestinationCardId
get the id of the destination card. To be sent to client- Returns:
- the id of destination card
-
setDestinationCardId
set the id of the destination card. For serialization only- Parameters:
destinationCardId- the id of the destination card
-
getSrc
- Returns:
- the source of the link
-
setSrc
- Parameters:
src- the source of the link
-
mergeToUpdate
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
-
getProject
Get the project it belongs to- Returns:
- project owner
-
getChannelsBuilder
Description copied from interface:WithWebsocketChannelsGet the channels this entity shall be sent through.- Specified by:
getChannelsBuilderin interfaceWithWebsocketChannels- Returns:
- list of channels
-
getReadCondition
Description copied from interface:WithPermissionGet the condition required to read this entity- Specified by:
getReadConditionin interfaceWithPermission- Returns:
- the condition
-
getUpdateCondition
Description copied from interface:WithPermissionGet the condition required to update this entity- Specified by:
getUpdateConditionin interfaceWithPermission- Returns:
- the condition
-
hashCode
public int hashCode() -
equals
-
toString
-