Package ch.colabproject.colab.client
Class ColabClient.StickyNoteLinkRestEndpointClientImpl
java.lang.Object
ch.colabproject.colab.client.ColabClient.StickyNoteLinkRestEndpointClientImpl
- Enclosing class:
- ColabClient
StickyNoteLinkRestEndpoint client implementation-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeDestination(Long linkId, Long cardId) PUT api/stickyNoteLinks/changeDest/{linkId: [0-9]+} callsStickyNoteLinkRestEndpoint.changeDestination(java.lang.Long, java.lang.Long)Change the destinationvoidchangeSrcWithCard(Long linkId, Long cardId) PUT api/stickyNoteLinks/changeSrc/{linkId: [0-9]+}/Card callsStickyNoteLinkRestEndpoint.changeSrcWithCard(java.lang.Long, java.lang.Long)Change the source for a cardvoidchangeSrcWithCardContent(Long linkId, Long cardContentId) PUT api/stickyNoteLinks/changeSrc/{linkId: [0-9]+}/CardContent callsStickyNoteLinkRestEndpoint.changeSrcWithCardContent(java.lang.Long, java.lang.Long)Change the source for a card contentvoidchangeSrcWithDocument(Long linkId, Long documentId) PUT api/stickyNoteLinks/changeSrc/{linkId: [0-9]+}/Document callsStickyNoteLinkRestEndpoint.changeSrcWithDocument(java.lang.Long, java.lang.Long)Change the source for a documentvoidchangeSrcWithResourceOrRef(Long linkId, Long resourceOrRefId) PUT api/stickyNoteLinks/changeSrc/{linkId: [0-9]+}/ResourceOrRef callsStickyNoteLinkRestEndpoint.changeSrcWithResourceOrRef(java.lang.Long, java.lang.Long)Change the source for a resource / resource referencecreateLink(StickyNoteLinkCreationData linkCreationData) POST api/stickyNoteLinks callsStickyNoteLinkRestEndpoint.createLink(ch.colabproject.colab.api.rest.link.bean.StickyNoteLinkCreationData)Persist the linkvoiddeleteLink(Long id) DELETE api/stickyNoteLinks/{id: [0-9]+} callsStickyNoteLinkRestEndpoint.deleteLink(java.lang.Long)Permanently delete a linkGET api/stickyNoteLinks/{id: [0-9]+} callsStickyNoteLinkRestEndpoint.getLink(java.lang.Long)Get link identified by the given idvoidupdateLink(StickyNoteLink link) PUT api/stickyNoteLinks callsStickyNoteLinkRestEndpoint.updateLink(ch.colabproject.colab.api.model.link.StickyNoteLink)Save changes to database.
-
Constructor Details
-
StickyNoteLinkRestEndpointClientImpl
public StickyNoteLinkRestEndpointClientImpl()
-
-
Method Details
-
createLink
POST api/stickyNoteLinks callsStickyNoteLinkRestEndpoint.createLink(ch.colabproject.colab.api.rest.link.bean.StickyNoteLinkCreationData)Persist the link- Parameters:
linkCreationData- Everything needed to create a link- Returns:
- id of the persisted new link
-
getLink
GET api/stickyNoteLinks/{id: [0-9]+} callsStickyNoteLinkRestEndpoint.getLink(java.lang.Long)Get link identified by the given id- Parameters:
id- id of the link to fetch- Returns:
- the link or null
-
updateLink
PUT api/stickyNoteLinks callsStickyNoteLinkRestEndpoint.updateLink(ch.colabproject.colab.api.model.link.StickyNoteLink)Save changes to database. Only fields which are editable by users will be impacted.- Parameters:
link- link to update if the merge is not possible
-
deleteLink
DELETE api/stickyNoteLinks/{id: [0-9]+} callsStickyNoteLinkRestEndpoint.deleteLink(java.lang.Long)Permanently delete a link- Parameters:
id- id of the link to delete
-
changeSrcWithCard
PUT api/stickyNoteLinks/changeSrc/{linkId: [0-9]+}/Card callsStickyNoteLinkRestEndpoint.changeSrcWithCard(java.lang.Long, java.lang.Long)Change the source for a card- Parameters:
linkId- the id of the link to updatecardId- the id of the new source object
-
changeSrcWithCardContent
PUT api/stickyNoteLinks/changeSrc/{linkId: [0-9]+}/CardContent callsStickyNoteLinkRestEndpoint.changeSrcWithCardContent(java.lang.Long, java.lang.Long)Change the source for a card content- Parameters:
linkId- the id of the link to updatecardContentId- the id of the new source object
-
changeSrcWithResourceOrRef
PUT api/stickyNoteLinks/changeSrc/{linkId: [0-9]+}/ResourceOrRef callsStickyNoteLinkRestEndpoint.changeSrcWithResourceOrRef(java.lang.Long, java.lang.Long)Change the source for a resource / resource reference- Parameters:
linkId- the id of the link to updateresourceOrRefId- the id of the new source object
-
changeSrcWithDocument
PUT api/stickyNoteLinks/changeSrc/{linkId: [0-9]+}/Document callsStickyNoteLinkRestEndpoint.changeSrcWithDocument(java.lang.Long, java.lang.Long)Change the source for a document- Parameters:
linkId- the id of the link to updatedocumentId- the id of the new source object
-
changeDestination
PUT api/stickyNoteLinks/changeDest/{linkId: [0-9]+} callsStickyNoteLinkRestEndpoint.changeDestination(java.lang.Long, java.lang.Long)Change the destination- Parameters:
linkId- the id of the link to updatecardId- the id of the new destination card
-