Class ConfluenceRestClient
java.lang.Object
ch.ifocusit.livingdoc.plugin.publish.confluence.client.ConfluenceRestClient
- All Implemented Interfaces:
ConfluenceClient
- Author:
- Alain Sahli, Christian Stettler, Julien Boz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachment(String contentId, String attachmentFileName, InputStream attachmentContent) addPageUnderAncestor(String spaceKey, String ancestorId, String title, String content) voiddeleteAttachment(String attachmentId) voiddeletePage(String contentId) voiddeletePropertyByKey(String contentId, String key) getAttachmentByFileName(String contentId, String attachmentFileName) getAttachmentContent(String relativeDownloadLink) getAttachments(String contentId) getChildPages(String contentId) getPageByTitle(String spaceKey, String title) getPageWithContentAndVersionById(String contentId) getPropertyByKey(String contentId, String key) getSpaceContentId(String spaceKey) voidsetPropertyByKey(String contentId, String key, String value) voidupdateAttachmentContent(String contentId, String attachmentId, InputStream attachmentContent) voidupdatePage(String contentId, String ancestorId, String title, String content, int newVersion)
-
Constructor Details
-
ConfluenceRestClient
-
-
Method Details
-
addPageUnderAncestor
public String addPageUnderAncestor(String spaceKey, String ancestorId, String title, String content) - Specified by:
addPageUnderAncestorin interfaceConfluenceClient
-
updatePage
public void updatePage(String contentId, String ancestorId, String title, String content, int newVersion) - Specified by:
updatePagein interfaceConfluenceClient
-
deletePage
- Specified by:
deletePagein interfaceConfluenceClient
-
getPageByTitle
public String getPageByTitle(String spaceKey, String title) throws NotFoundException, MultipleResultsException - Specified by:
getPageByTitlein interfaceConfluenceClient- Throws:
NotFoundExceptionMultipleResultsException
-
addAttachment
public void addAttachment(String contentId, String attachmentFileName, InputStream attachmentContent) - Specified by:
addAttachmentin interfaceConfluenceClient
-
updateAttachmentContent
public void updateAttachmentContent(String contentId, String attachmentId, InputStream attachmentContent) - Specified by:
updateAttachmentContentin interfaceConfluenceClient
-
deleteAttachment
- Specified by:
deleteAttachmentin interfaceConfluenceClient
-
getAttachmentByFileName
public ConfluenceAttachment getAttachmentByFileName(String contentId, String attachmentFileName) throws NotFoundException, MultipleResultsException - Specified by:
getAttachmentByFileNamein interfaceConfluenceClient- Throws:
NotFoundExceptionMultipleResultsException
-
getPageWithContentAndVersionById
- Specified by:
getPageWithContentAndVersionByIdin interfaceConfluenceClient
-
getAttachmentContent
- Specified by:
getAttachmentContentin interfaceConfluenceClient
-
getChildPages
- Specified by:
getChildPagesin interfaceConfluenceClient
-
getAttachments
- Specified by:
getAttachmentsin interfaceConfluenceClient
-
getSpaceContentId
- Specified by:
getSpaceContentIdin interfaceConfluenceClient
-
setPropertyByKey
- Specified by:
setPropertyByKeyin interfaceConfluenceClient
-
getPropertyByKey
- Specified by:
getPropertyByKeyin interfaceConfluenceClient
-
deletePropertyByKey
- Specified by:
deletePropertyByKeyin interfaceConfluenceClient
-