public class RESTConfluenceServiceImpl extends AbstractRESTConfluenceService implements ConfluenceService
https://docs.atlassian.com/confluence/REST/latest/AbstractRESTConfluenceService.ServiceExceptionConfluenceService.Credentials, ConfluenceService.Model, ConfluenceService.Protocol, ConfluenceService.Storage| Constructor and Description |
|---|
RESTConfluenceServiceImpl(String url,
ConfluenceService.Credentials credentials,
SSLCertificateInfo sslInfo) |
addAttachment, childrenPages, createPage, debugBody, findPage, findPageById, fromRequest, fromUrlDELETE, fromUrlGET, fromUrlPOST, fromUrlPUT, getAttachment, getAttachments, mapToArray, mapToObject, rxAddLabels, rxDeletePageById, rxDescendantPages, rxfindPages, updatePageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOrCreatePagepublic RESTConfluenceServiceImpl(String url, ConfluenceService.Credentials credentials, SSLCertificateInfo sslInfo)
url - credentials - sslInfo - public final javax.json.JsonObjectBuilder jsonForCreatingPage(String spaceKey, String title)
public final javax.json.JsonObjectBuilder jsonForCreatingPage(String spaceKey, int parentPageId, String title)
public final javax.json.JsonObjectBuilder jsonAddBody(javax.json.JsonObjectBuilder builder,
ConfluenceService.Storage storage)
protected okhttp3.HttpUrl.Builder urlBuilder()
urlBuilder in class AbstractRESTConfluenceServicepublic ConfluenceService.Credentials getCredentials()
getCredentials in interface ConfluenceServicegetCredentials in class AbstractRESTConfluenceServicepublic ConfluenceService.Model.PageSummary findPageByTitle(String parentPageId, String title) throws Exception
findPageByTitle in interface ConfluenceServiceExceptionpublic CompletableFuture<ConfluenceService.Model.Page> createPage(ConfluenceService.Model.Page parentPage, String title)
createPage in interface ConfluenceServicepublic CompletableFuture<Optional<ConfluenceService.Model.Page>> getPage(String pageId)
getPage in interface ConfluenceServicepageId - Exceptionpublic CompletableFuture<Optional<ConfluenceService.Model.Page>> getPage(String spaceKey, String pageTitle)
getPage in interface ConfluenceServicepublic List<ConfluenceService.Model.PageSummary> getDescendents(String pageId) throws Exception
getDescendents in interface ConfluenceServiceExceptionpublic CompletableFuture<ConfluenceService.Model.Page> storePage(ConfluenceService.Model.Page page, ConfluenceService.Storage content)
storePage in interface ConfluenceServicepublic CompletableFuture<ConfluenceService.Model.Page> storePage(ConfluenceService.Model.Page page)
storePage in interface ConfluenceServicepublic boolean addLabelByName(String label, long id) throws Exception
addLabelByName in interface ConfluenceServiceExceptionpublic void exportPage(String url, String spaceKey, String pageTitle, ExportFormat exfmt, File outputFile) throws Exception
exportPage in interface ConfluenceServiceExceptionpublic void call(java.util.function.Consumer<ConfluenceService> task) throws Exception
call in interface ConfluenceServiceExceptionpublic ConfluenceService.Model.Attachment createAttachment()
ConfluenceServicecreateAttachment in interface ConfluenceServicepublic CompletableFuture<Optional<ConfluenceService.Model.Attachment>> getAttachment(String pageId, String name, String version)
getAttachment in interface ConfluenceServicepublic CompletableFuture<ConfluenceService.Model.Attachment> addAttachment(ConfluenceService.Model.Page page, ConfluenceService.Model.Attachment attachment, InputStream source)
addAttachment in interface ConfluenceServicepublic CompletableFuture<Boolean> removePage(ConfluenceService.Model.Page parentPage, String title)
removePage in interface ConfluenceServicepublic void removePage(String pageId) throws Exception
removePage in interface ConfluenceServiceExceptionCopyright © 2018. All rights reserved.