Package ch.colabproject.colab.client
Class ColabClient.StickyNoteLinkRestEndpointClientImpl
- java.lang.Object
-
- ch.colabproject.colab.client.ColabClient.StickyNoteLinkRestEndpointClientImpl
-
- Enclosing class:
- ColabClient
public class ColabClient.StickyNoteLinkRestEndpointClientImpl extends Object
StickyNoteLinkRestEndpoint
client implementation
-
-
Constructor Summary
Constructors Constructor Description StickyNoteLinkRestEndpointClientImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changeDestination(Long linkId, Long cardId)
PUT api/stickyNoteLinks/changeDest/{linkId: [0-9]+} callsStickyNoteLinkRestEndpoint.changeDestination(java.lang.Long, java.lang.Long)
Change the destinationvoid
changeSrcWithCard(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 cardvoid
changeSrcWithCardContent(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 contentvoid
changeSrcWithDocument(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 documentvoid
changeSrcWithResourceOrRef(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 referenceLong
createLink(StickyNoteLinkCreationData linkCreationData)
POST api/stickyNoteLinks callsStickyNoteLinkRestEndpoint.createLink(ch.colabproject.colab.api.rest.link.bean.StickyNoteLinkCreationData)
Persist the linkvoid
deleteLink(Long id)
DELETE api/stickyNoteLinks/{id: [0-9]+} callsStickyNoteLinkRestEndpoint.deleteLink(java.lang.Long)
Permanently delete a linkStickyNoteLink
getLink(Long id)
GET api/stickyNoteLinks/{id: [0-9]+} callsStickyNoteLinkRestEndpoint.getLink(java.lang.Long)
Get link identified by the given idvoid
updateLink(StickyNoteLink link)
PUT api/stickyNoteLinks callsStickyNoteLinkRestEndpoint.updateLink(ch.colabproject.colab.api.model.link.StickyNoteLink)
Save changes to database.
-
-
-
Method Detail
-
getLink
public StickyNoteLink getLink(Long id)
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
public void updateLink(StickyNoteLink link)
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
public void deleteLink(Long id)
DELETE api/stickyNoteLinks/{id: [0-9]+} callsStickyNoteLinkRestEndpoint.deleteLink(java.lang.Long)
Permanently delete a link- Parameters:
id
- id of the link to delete
-
changeSrcWithCard
public void changeSrcWithCard(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 card- Parameters:
linkId
- the id of the link to updatecardId
- the id of the new source object
-
changeSrcWithCardContent
public void changeSrcWithCardContent(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 content- Parameters:
linkId
- the id of the link to updatecardContentId
- the id of the new source object
-
changeSrcWithResourceOrRef
public void changeSrcWithResourceOrRef(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 reference- Parameters:
linkId
- the id of the link to updateresourceOrRefId
- the id of the new source object
-
changeSrcWithDocument
public void changeSrcWithDocument(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 document- Parameters:
linkId
- the id of the link to updatedocumentId
- the id of the new source object
-
changeDestination
public void changeDestination(Long linkId, Long cardId)
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
-
createLink
public Long createLink(StickyNoteLinkCreationData linkCreationData)
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
-
-