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()
CompletableFuture<Optional<? extends ConfluenceService.Model.PageSummary>> getPageByTitle(ConfluenceService.Model.ID parentPageId, String title)
CompletableFuture<Boolean> removePage(ConfluenceService.Model.Page parentPage, String title)
CompletableFuture<Boolean> removePage(ConfluenceService.Model.ID pageId)
CompletableFuture<ConfluenceService.Model.Page> createPage(ConfluenceService.Model.Page parentPage, String title, ConfluenceService.Storage content)
CompletableFuture<ConfluenceService.Model.Page> storePage(ConfluenceService.Model.Page page, ConfluenceService.Storage content)
CompletableFuture<ConfluenceService.Model.Page> storePage(ConfluenceService.Model.Page page)
CompletableFuture<Optional<ConfluenceService.Model.Page>> getPage(ConfluenceService.Model.ID pageId)
CompletableFuture<Optional<ConfluenceService.Model.Page>> getPage(String spaceKey, String pageTitle)
CompletableFuture<Void> addLabelsByName(ConfluenceService.Model.ID id, String[] labels)
default CompletableFuture<Void> addLabelsByName(ConfluenceService.Model.ID id, List<String> labels)
CompletableFuture<List<ConfluenceService.Model.PageSummary>> getDescendents(ConfluenceService.Model.ID pageId)
void exportPage(String url, String spaceKey, String pageTitle, ExportFormat exfmt, File outputFile) throws Exception
ExceptionConfluenceService.Model.Attachment createAttachment()
CompletableFuture<Optional<ConfluenceService.Model.Attachment>> getAttachment(ConfluenceService.Model.ID pageId, String name, String version)
pageId - name - version - CompletableFuture<ConfluenceService.Model.Attachment> addAttachment(ConfluenceService.Model.Page page, ConfluenceService.Model.Attachment attachment, InputStream source)
page - attachment - source - ConfluenceService.Model.Blogpost createBlogpost(String space, String title, ConfluenceService.Storage content, int version)
space - space idtitle - post's titlecontent - post's contentCompletableFuture<ConfluenceService.Model.Blogpost> addBlogpost(ConfluenceService.Model.Blogpost blogpost)
blogpost - 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 - Copyright © 2020. All rights reserved.