Class StickyNoteLink
- java.lang.Object
- 
- ch.colabproject.colab.api.model.link.StickyNoteLink
 
- 
- All Implemented Interfaces:
- ColabEntity,- WithDeletionStatus,- WithPermission,- WithTrackingData,- WithWebsocketChannels,- WithId,- WithJsonDiscriminator,- Serializable
 
 @Entity public class StickyNoteLink extends Object implements ColabEntity, WithWebsocketChannels 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:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description StickyNoteLink()
 - 
Method SummaryAll 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 :CardgetDestinationCard()LonggetDestinationCardId()get the id of the destination card.TextDataBlockgetExplanation()LonggetExplanationId()get the id of the explanation.LonggetId()ProjectgetProject()Get the project it belongs toConditions.ConditiongetReadCondition()Get the condition required to read this entityStickyNoteSourceablegetSrc()CardgetSrcCard()CardContentgetSrcCardContent()LonggetSrcCardContentId()get the id of the source card content.LonggetSrcCardId()get the id of the source card.DocumentgetSrcDocument()LonggetSrcDocumentId()get the id of the source document.AbstractResourcegetSrcResourceOrRef()LonggetSrcResourceOrRefId()get the id of the source resource / resource reference.StringgetTeaser()TrackinggetTrackingData()Get the tracking dataConditions.ConditiongetUpdateCondition()Get the condition required to update this entityinthashCode()booleanisSrcCard()booleanisSrcCardContent()booleanisSrcDocument()booleanisSrcResourceOrRef()voidmergeToUpdate(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.voidsetId(Long id)voidsetSrc(StickyNoteSourceable src)voidsetSrcCard(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.voidsetTeaser(String teaser)voidsetTrackingData(Tracking trackingData)Set tracking dataStringtoString()- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface ch.colabproject.colab.api.model.ColabEntitymergeToDuplicate
 - 
Methods inherited from interface ch.colabproject.colab.generator.model.interfaces.WithJsonDiscriminatorgetJsonDiscriminator
 - 
Methods inherited from interface ch.colabproject.colab.api.model.WithPermissiongetCreateCondition, getDeleteCondition
 - 
Methods inherited from interface ch.colabproject.colab.api.model.WithTrackingDatainitErasureTrackingData, resetErasureTrackingData, touch
 - 
Methods inherited from interface ch.colabproject.colab.api.model.WithWebsocketChannelsgetIndexEntryPayload
 
- 
 
- 
- 
- 
Method Detail- 
setIdpublic void setId(Long id) - Parameters:
- id- the link id
 
 - 
getTrackingDatapublic Tracking getTrackingData() Get the tracking data- Specified by:
- getTrackingDatain interface- WithTrackingData
- Returns:
- tracking data
 
 - 
setTrackingDatapublic void setTrackingData(Tracking trackingData) Set tracking data- Specified by:
- setTrackingDatain interface- WithTrackingData
- Parameters:
- trackingData- new tracking data
 
 - 
getDeletionStatuspublic 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 interface- WithDeletionStatus
- Returns:
- null or a deletion status
 
 - 
setDeletionStatuspublic 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 interface- WithDeletionStatus
- Parameters:
- status- null or a deletion status
 
 - 
getTeaserpublic String getTeaser() - Returns:
- the short description
 
 - 
setTeaserpublic void setTeaser(String teaser) - Parameters:
- teaser- the short description
 
 - 
getExplanationpublic TextDataBlock getExplanation() - Returns:
- the long description
 
 - 
setExplanationpublic void setExplanation(TextDataBlock explanation) - Parameters:
- explanation- the long description
 
 - 
getExplanationIdpublic Long getExplanationId() get the id of the explanation. To be sent to client.- Returns:
- the id of the explanation
 
 - 
setExplanationIdpublic void setExplanationId(Long explanationId) set the id of the explanation. For serialization only.- Parameters:
- explanationId- the id of the teaser
 
 - 
getSrcCardpublic Card getSrcCard() - Returns:
- the card, source of the sticky note
 
 - 
setSrcCardpublic void setSrcCard(Card srcCard) - Parameters:
- srcCard- the card, source of the sticky note
 
 - 
getSrcCardIdpublic Long getSrcCardId() get the id of the source card. To be sent to client- Returns:
- the id of source card
 
 - 
setSrcCardIdpublic void setSrcCardId(Long srcCardId) set the id of the source card. For serialization only- Parameters:
- srcCardId- the id of the source card
 
 - 
isSrcCardpublic boolean isSrcCard() - Returns:
- True if the source is a card
 
 - 
getSrcCardContentpublic CardContent getSrcCardContent() - Returns:
- the card content, source of the sticky note
 
 - 
setSrcCardContentpublic void setSrcCardContent(CardContent srcCardContent) - Parameters:
- srcCardContent- the card content, source of the sticky note
 
 - 
getSrcCardContentIdpublic Long getSrcCardContentId() get the id of the source card content. To be sent to client- Returns:
- the id of source card content
 
 - 
setSrcCardContentIdpublic void setSrcCardContentId(Long srcCardContentId) set the id of the source card content. For serialization only- Parameters:
- srcCardContentId- the id of the source card content
 
 - 
isSrcCardContentpublic boolean isSrcCardContent() - Returns:
- True if the source is a card content
 
 - 
getSrcResourceOrRefpublic AbstractResource getSrcResourceOrRef() - Returns:
- the resource / resource reference, source of the sticky note
 
 - 
setSrcResourceOrRefpublic void setSrcResourceOrRef(AbstractResource srcResourceOrRef) - Parameters:
- srcResourceOrRef- the resource / resource reference, source of the sticky note
 
 - 
getSrcResourceOrRefIdpublic Long getSrcResourceOrRefId() get the id of the source resource / resource reference. To be sent to client- Returns:
- the id of source resource / resource reference
 
 - 
setSrcResourceOrRefIdpublic void setSrcResourceOrRefId(Long srcResourceOrRefId) set the id of the source resource / resource reference. For serialization only- Parameters:
- srcResourceOrRefId- the id of the source resource / resource reference
 
 - 
isSrcResourceOrRefpublic boolean isSrcResourceOrRef() - Returns:
- True if the source is a resource / resource reference
 
 - 
getSrcDocumentpublic Document getSrcDocument() - Returns:
- the document, source of the sticky note
 
 - 
setSrcDocumentpublic void setSrcDocument(Document srcDocument) - Parameters:
- srcDocument- the Document, source of the sticky note
 
 - 
getSrcDocumentIdpublic Long getSrcDocumentId() get the id of the source document. To be sent to client- Returns:
- the id of source document
 
 - 
setSrcDocumentIdpublic void setSrcDocumentId(Long srcDocumentId) set the id of the source document. For serialization only- Parameters:
- srcDocumentId- the id of the source document
 
 - 
isSrcDocumentpublic boolean isSrcDocument() - Returns:
- True if the source is a document
 
 - 
getDestinationCardpublic Card getDestinationCard() - Returns:
- the card where the information is useful
 
 - 
setDestinationCardpublic void setDestinationCard(Card destinationCard) - Parameters:
- destinationCard- the card where the information is useful
 
 - 
getDestinationCardIdpublic Long getDestinationCardId() get the id of the destination card. To be sent to client- Returns:
- the id of destination card
 
 - 
setDestinationCardIdpublic void setDestinationCardId(Long destinationCardId) set the id of the destination card. For serialization only- Parameters:
- destinationCardId- the id of the destination card
 
 - 
getSrcpublic StickyNoteSourceable getSrc() - Returns:
- the source of the link
 
 - 
setSrcpublic void setSrc(StickyNoteSourceable src) - Parameters:
- src- the source of the link
 
 - 
mergeToUpdatepublic 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 interface- ColabEntity
- Parameters:
- other- object to take new values from
- Throws:
- ColabMergeException- if merging is not possible
 
 - 
getProjectpublic Project getProject() Get the project it belongs to- Returns:
- project owner
 
 - 
getChannelsBuilderpublic ChannelsBuilders.ChannelsBuilder getChannelsBuilder() Description copied from interface:WithWebsocketChannelsGet the channels this entity shall be sent through.- Specified by:
- getChannelsBuilderin interface- WithWebsocketChannels
- Returns:
- list of channels
 
 - 
getReadConditionpublic Conditions.Condition getReadCondition() Description copied from interface:WithPermissionGet the condition required to read this entity- Specified by:
- getReadConditionin interface- WithPermission
- Returns:
- the condition
 
 - 
getUpdateConditionpublic Conditions.Condition getUpdateCondition() Description copied from interface:WithPermissionGet the condition required to update this entity- Specified by:
- getUpdateConditionin interface- WithPermission
- Returns:
- the condition
 
 
- 
 
-