public class ConfluenceRestClient extends Object implements ConfluenceClient
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfluenceRestClient.ProxyConfiguration |
| Constructor and Description |
|---|
ConfluenceRestClient(String rootConfluenceUrl,
boolean disableSslVerification,
boolean enableHttpClientSystemProperties,
Double maxRequestsPerSecond,
String username,
String passwordOrPersonalAccessToken) |
ConfluenceRestClient(String rootConfluenceUrl,
org.apache.http.impl.client.CloseableHttpClient httpClient,
Double maxRequestsPerSecond,
String username,
String passwordOrPersonalAccessToken) |
ConfluenceRestClient(String rootConfluenceUrl,
ConfluenceRestClient.ProxyConfiguration proxyConfiguration,
boolean disableSslVerification,
boolean enableHttpClientSystemProperties,
Double maxRequestsPerSecond,
String username,
String passwordOrPersonalAccessToken) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(String contentId,
String attachmentFileName,
InputStream attachmentContent) |
void |
addLabels(String contentId,
List<String> labels) |
String |
addPageUnderAncestor(String spaceKey,
String ancestorId,
String title,
String content,
String versionMessage) |
void |
deleteAttachment(String attachmentId) |
void |
deleteLabel(String contentId,
String label) |
void |
deletePage(String contentId) |
void |
deletePropertyByKey(String contentId,
String key) |
ConfluenceAttachment |
getAttachmentByFileName(String contentId,
String attachmentFileName) |
List<ConfluenceAttachment> |
getAttachments(String contentId) |
List<ConfluencePage> |
getChildPages(String contentId) |
List<String> |
getLabels(String contentId) |
String |
getPageByTitle(String spaceKey,
String title) |
ConfluencePage |
getPageWithContentAndVersionById(String contentId) |
String |
getPropertyByKey(String contentId,
String key) |
void |
setPropertyByKey(String contentId,
String key,
String value) |
void |
updateAttachmentContent(String contentId,
String attachmentId,
InputStream attachmentContent,
boolean notifyWatchers) |
void |
updatePage(String contentId,
String ancestorId,
String title,
String content,
int newVersion,
String versionMessage,
boolean notifyWatchers) |
public ConfluenceRestClient(String rootConfluenceUrl, boolean disableSslVerification, boolean enableHttpClientSystemProperties, Double maxRequestsPerSecond, String username, String passwordOrPersonalAccessToken)
public ConfluenceRestClient(String rootConfluenceUrl, ConfluenceRestClient.ProxyConfiguration proxyConfiguration, boolean disableSslVerification, boolean enableHttpClientSystemProperties, Double maxRequestsPerSecond, String username, String passwordOrPersonalAccessToken)
public String addPageUnderAncestor(String spaceKey, String ancestorId, String title, String content, String versionMessage)
addPageUnderAncestor in interface ConfluenceClientpublic void updatePage(String contentId, String ancestorId, String title, String content, int newVersion, String versionMessage, boolean notifyWatchers)
updatePage in interface ConfluenceClientpublic void deletePage(String contentId)
deletePage in interface ConfluenceClientpublic String getPageByTitle(String spaceKey, String title) throws NotFoundException, MultipleResultsException
getPageByTitle in interface ConfluenceClientNotFoundExceptionMultipleResultsExceptionpublic void addAttachment(String contentId, String attachmentFileName, InputStream attachmentContent)
addAttachment in interface ConfluenceClientpublic void updateAttachmentContent(String contentId, String attachmentId, InputStream attachmentContent, boolean notifyWatchers)
updateAttachmentContent in interface ConfluenceClientpublic void deleteAttachment(String attachmentId)
deleteAttachment in interface ConfluenceClientpublic ConfluenceAttachment getAttachmentByFileName(String contentId, String attachmentFileName) throws NotFoundException, MultipleResultsException
getAttachmentByFileName in interface ConfluenceClientNotFoundExceptionMultipleResultsExceptionpublic ConfluencePage getPageWithContentAndVersionById(String contentId)
getPageWithContentAndVersionById in interface ConfluenceClientpublic List<ConfluencePage> getChildPages(String contentId)
getChildPages in interface ConfluenceClientpublic List<ConfluenceAttachment> getAttachments(String contentId)
getAttachments in interface ConfluenceClientpublic void setPropertyByKey(String contentId, String key, String value)
setPropertyByKey in interface ConfluenceClientpublic String getPropertyByKey(String contentId, String key)
getPropertyByKey in interface ConfluenceClientpublic void deletePropertyByKey(String contentId, String key)
deletePropertyByKey in interface ConfluenceClientpublic List<String> getLabels(String contentId)
getLabels in interface ConfluenceClientpublic void addLabels(String contentId, List<String> labels)
addLabels in interface ConfluenceClientpublic void deleteLabel(String contentId, String label)
deleteLabel in interface ConfluenceClientCopyright © 2021. All rights reserved.