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, waitgetOrCreatePagepublic 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 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 void call(java.util.function.Consumer<ConfluenceService> task) throws Exception
call in interface ConfluenceServiceExceptionpublic List<ConfluenceService.Model.PageSummary> getDescendents(String pageId) throws Exception
getDescendents in interface ConfluenceServiceExceptionpublic void removePage(String pageId) throws Exception
removePage in interface ConfluenceServiceExceptionpublic void exportPage(String url, String spaceKey, String pageTitle, ExportFormat exfmt, File outputFile) throws Exception
exportPage in interface ConfluenceServiceExceptionCopyright © 2018. All rights reserved.