Package org.bsc.confluence.xmlrpc
Class XMLRPCConfluenceServiceImpl
- java.lang.Object
-
- org.bsc.confluence.xmlrpc.XMLRPCConfluenceServiceImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ConfluenceService
public class XMLRPCConfluenceServiceImpl extends Object implements ConfluenceService
- Author:
- bsorrentino
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bsc.confluence.ConfluenceService
ConfluenceService.Credentials, ConfluenceService.Model, ConfluenceService.Protocol, ConfluenceService.Storage
-
-
Field Summary
Fields Modifier and Type Field Description org.bsc.confluence.xmlrpc.ConfluenceconnectionConfluenceService.Credentialscredentials
-
Constructor Summary
Constructors Modifier Constructor Description protectedXMLRPCConfluenceServiceImpl(org.bsc.confluence.xmlrpc.Confluence confluence, ConfluenceService.Credentials credentials)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.bsc.confluence.ConfluenceService
getOrCreatePage
-
-
-
-
Field Detail
-
connection
public final org.bsc.confluence.xmlrpc.Confluence connection
-
credentials
public final ConfluenceService.Credentials credentials
-
-
Constructor Detail
-
XMLRPCConfluenceServiceImpl
protected XMLRPCConfluenceServiceImpl(org.bsc.confluence.xmlrpc.Confluence confluence, ConfluenceService.Credentials credentials)- Parameters:
confluence-
-
-
Method Detail
-
createInstanceDetectingVersion
public static XMLRPCConfluenceServiceImpl createInstanceDetectingVersion(String url, ConfluenceService.Credentials credentials, ConfluenceProxy proxyInfo, SSLCertificateInfo sslInfo) throws Exception
- Parameters:
url-proxyInfo-- Returns:
- Throws:
MalformedURLExceptionSwizzleExceptionURISyntaxExceptionException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getCredentials
public ConfluenceService.Credentials getCredentials()
- Specified by:
getCredentialsin interfaceConfluenceService
-
findPageByTitle
public ConfluenceService.Model.PageSummary findPageByTitle(String parentPageId, String title) throws Exception
- Specified by:
findPageByTitlein interfaceConfluenceService- Parameters:
parentPageId-title-- Returns:
- Throws:
Exception
-
removePage
public CompletableFuture<Boolean> removePage(ConfluenceService.Model.Page parentPage, String title)
- Specified by:
removePagein interfaceConfluenceService
-
createPage
public CompletableFuture<ConfluenceService.Model.Page> createPage(ConfluenceService.Model.Page parentPage, String title)
- Specified by:
createPagein interfaceConfluenceService
-
addAttachment
public CompletableFuture<ConfluenceService.Model.Attachment> addAttachment(ConfluenceService.Model.Page page, ConfluenceService.Model.Attachment attachment, InputStream source)
- Specified by:
addAttachmentin interfaceConfluenceService
-
storePage
public CompletableFuture<ConfluenceService.Model.Page> storePage(ConfluenceService.Model.Page page)
- Specified by:
storePagein interfaceConfluenceService
-
storePage
public CompletableFuture<ConfluenceService.Model.Page> storePage(ConfluenceService.Model.Page page, ConfluenceService.Storage content)
- Specified by:
storePagein interfaceConfluenceService
-
logout
public boolean logout()
- Parameters:
confluence-
-
addLabelByName
public boolean addLabelByName(String label, long id) throws Exception
- Specified by:
addLabelByNamein interfaceConfluenceService- Parameters:
label-id-- Returns:
- Throws:
Exception
-
createAttachment
public ConfluenceService.Model.Attachment createAttachment()
Description copied from interface:ConfluenceServicefactory method- Specified by:
createAttachmentin interfaceConfluenceService- Returns:
-
getAttachment
public CompletableFuture<Optional<ConfluenceService.Model.Attachment>> getAttachment(String pageId, String name, String version)
- Specified by:
getAttachmentin interfaceConfluenceService
-
getPage
public CompletableFuture<Optional<ConfluenceService.Model.Page>> getPage(String spaceKey, String pageTitle)
- Specified by:
getPagein interfaceConfluenceService
-
getPage
public CompletableFuture<Optional<ConfluenceService.Model.Page>> getPage(String pageId)
- Specified by:
getPagein interfaceConfluenceService
-
getDescendents
public List<ConfluenceService.Model.PageSummary> getDescendents(String pageId) throws Exception
- Specified by:
getDescendentsin interfaceConfluenceService- Throws:
Exception
-
removePage
public void removePage(String pageId) throws Exception
- Specified by:
removePagein interfaceConfluenceService- Throws:
Exception
-
exportPage
public void exportPage(String url, String spaceKey, String pageTitle, ExportFormat exfmt, File outputFile) throws Exception
- Specified by:
exportPagein interfaceConfluenceService- Throws:
Exception
-
-