public interface ConfluenceService extends Closeable
| Modifier and Type | Interface and Description |
|---|---|
static class |
ConfluenceService.Credentials |
static interface |
ConfluenceService.Model |
static class |
ConfluenceService.Protocol |
static class |
ConfluenceService.Storage |
ConfluenceService.Credentials getCredentials()
ConfluenceService.Model.PageSummary findPageByTitle(String parentPageId, String title) throws Exception
ExceptionCompletableFuture<Boolean> removePage(ConfluenceService.Model.Page parentPage, String title)
CompletableFuture<Boolean> removePageAsync(String pageId)
@Deprecated default void removePage(String pageId) throws Exception
ExceptionCompletableFuture<ConfluenceService.Model.Page> createPage(ConfluenceService.Model.Page parentPage, String title)
CompletableFuture<Optional<ConfluenceService.Model.Page>> getPage(String pageId)
CompletableFuture<Optional<ConfluenceService.Model.Page>> getPage(String spaceKey, String pageTitle)
CompletableFuture<ConfluenceService.Model.Page> storePage(ConfluenceService.Model.Page page, ConfluenceService.Storage content)
CompletableFuture<ConfluenceService.Model.Page> storePage(ConfluenceService.Model.Page page)
List<ConfluenceService.Model.PageSummary> getDescendents(String pageId) throws Exception
Exceptionvoid exportPage(String url, String spaceKey, String pageTitle, ExportFormat exfmt, File outputFile) throws Exception
ExceptionConfluenceService.Model.Attachment createAttachment()
CompletableFuture<Optional<ConfluenceService.Model.Attachment>> getAttachment(String pageId, String name, String version)
CompletableFuture<ConfluenceService.Model.Attachment> addAttachment(ConfluenceService.Model.Page page, ConfluenceService.Model.Attachment attachment, InputStream source)
default CompletableFuture<ConfluenceService.Model.Page> getOrCreatePage(String spaceKey, String parentPageTitle, String title)
spaceKey - parentPageTitle - title - default <T> CompletableFuture<T> retry(int times, long delay, TimeUnit timeUnit, Optional<CompletableFuture<T>> resultHandler, java.util.function.Supplier<CompletableFuture<T>> action)
T - times - delay - timeUnit - resultHandler - action - https://gist.github.com/gitplaneta/5065bbba980b2858a55fCopyright © 2020. All rights reserved.