public class XMLRPCConfluenceServiceImpl extends Object implements ConfluenceService
ConfluenceService.Credentials, ConfluenceService.Model, ConfluenceService.Protocol, ConfluenceService.Storage| Modifier and Type | Field and Description |
|---|---|
org.bsc.confluence.xmlrpc.Confluence |
connection |
ConfluenceService.Credentials |
credentials |
| Modifier | Constructor and Description |
|---|---|
protected |
XMLRPCConfluenceServiceImpl(org.bsc.confluence.xmlrpc.Confluence confluence,
ConfluenceService.Credentials credentials) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOrCreatePage, removePage, retrypublic final org.bsc.confluence.xmlrpc.Confluence connection
public final ConfluenceService.Credentials credentials
protected XMLRPCConfluenceServiceImpl(org.bsc.confluence.xmlrpc.Confluence confluence,
ConfluenceService.Credentials credentials)
confluence - public static XMLRPCConfluenceServiceImpl createInstanceDetectingVersion(String url, ConfluenceService.Credentials credentials, ConfluenceProxy proxyInfo, SSLCertificateInfo sslInfo) throws Exception
url - proxyInfo - MalformedURLExceptionSwizzleExceptionURISyntaxExceptionExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic ConfluenceService.Credentials getCredentials()
getCredentials in interface ConfluenceServicepublic ConfluenceService.Model.PageSummary findPageByTitle(String parentPageId, String title) throws Exception
findPageByTitle in interface ConfluenceServiceparentPageId - title - Exceptionpublic CompletableFuture<Boolean> removePage(ConfluenceService.Model.Page parentPage, String title)
removePage in interface ConfluenceServicepublic CompletableFuture<ConfluenceService.Model.Page> createPage(ConfluenceService.Model.Page parentPage, String title)
createPage in interface ConfluenceServicepublic CompletableFuture<ConfluenceService.Model.Attachment> addAttachment(ConfluenceService.Model.Page page, ConfluenceService.Model.Attachment attachment, InputStream source)
addAttachment in interface ConfluenceServicepublic CompletableFuture<ConfluenceService.Model.Page> storePage(ConfluenceService.Model.Page page)
storePage in interface ConfluenceServicepublic CompletableFuture<ConfluenceService.Model.Page> storePage(ConfluenceService.Model.Page page, ConfluenceService.Storage content)
storePage in interface ConfluenceServicepublic boolean logout()
confluence - public boolean addLabelByName(String label, long id) throws Exception
addLabelByName in interface ConfluenceServicelabel - id - Exceptionpublic 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<Optional<ConfluenceService.Model.Page>> getPage(String spaceKey, String pageTitle)
getPage in interface ConfluenceServicepublic CompletableFuture<Optional<ConfluenceService.Model.Page>> getPage(String pageId)
getPage in interface ConfluenceServicepublic List<ConfluenceService.Model.PageSummary> getDescendents(String pageId) throws Exception
getDescendents in interface ConfluenceServiceExceptionpublic CompletableFuture<Boolean> removePageAsync(String pageId)
removePageAsync in interface ConfluenceServicepublic void exportPage(String url, String spaceKey, String pageTitle, ExportFormat exfmt, File outputFile) throws Exception
exportPage in interface ConfluenceServiceExceptionCopyright © 2020. All rights reserved.