Package org.bsc.confluence
Interface ConfluenceService
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
RESTConfluenceServiceImpl,XMLRPCConfluenceServiceImpl
public interface ConfluenceService extends Closeable
- Author:
- bsorrentino
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classConfluenceService.Credentialsstatic interfaceConfluenceService.Modelstatic classConfluenceService.Protocolstatic classConfluenceService.Storage
-
Method Summary
-
-
-
Method Detail
-
getCredentials
ConfluenceService.Credentials getCredentials()
-
findPageByTitle
ConfluenceService.Model.PageSummary findPageByTitle(String parentPageId, String title) throws Exception
- Throws:
Exception
-
removePage
CompletableFuture<Boolean> removePage(ConfluenceService.Model.Page parentPage, String title)
-
createPage
CompletableFuture<ConfluenceService.Model.Page> createPage(ConfluenceService.Model.Page parentPage, String title)
-
getPage
CompletableFuture<Optional<ConfluenceService.Model.Page>> getPage(String pageId)
-
getPage
CompletableFuture<Optional<ConfluenceService.Model.Page>> getPage(String spaceKey, String pageTitle)
-
storePage
CompletableFuture<ConfluenceService.Model.Page> storePage(ConfluenceService.Model.Page page, ConfluenceService.Storage content)
-
storePage
CompletableFuture<ConfluenceService.Model.Page> storePage(ConfluenceService.Model.Page page)
-
getDescendents
List<ConfluenceService.Model.PageSummary> getDescendents(String pageId) throws Exception
- Throws:
Exception
-
exportPage
void exportPage(String url, String spaceKey, String pageTitle, ExportFormat exfmt, File outputFile) throws Exception
- Throws:
Exception
-
createAttachment
ConfluenceService.Model.Attachment createAttachment()
factory method- Returns:
-
getAttachment
CompletableFuture<Optional<ConfluenceService.Model.Attachment>> getAttachment(String pageId, String name, String version)
-
addAttachment
CompletableFuture<ConfluenceService.Model.Attachment> addAttachment(ConfluenceService.Model.Page page, ConfluenceService.Model.Attachment attachment, InputStream source)
-
getOrCreatePage
default CompletableFuture<ConfluenceService.Model.Page> getOrCreatePage(String spaceKey, String parentPageTitle, String title)
- Parameters:
spaceKey-parentPageTitle-title-- Returns:
-
-