@ExperimentalApi
public interface RemoteContentService
ContentService implementation that communicates with Confluence remotely using the Confluence REST API.
Provides future returning equivalents for the methods in ContentService.| Modifier and Type | Interface and Description |
|---|---|
static interface |
RemoteContentService.RemoteContentFetcher |
static interface |
RemoteContentService.RemoteContentFinder |
static interface |
RemoteContentService.RemoteParameterContentFinder |
static interface |
RemoteContentService.RemoteSingleContentFetcher |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<Content> |
create(Content newContent)
Create a piece of content.
|
java.util.concurrent.Future<java.lang.Void> |
delete(Content content)
Removes an item of Content from the system.
|
RemoteContentService.RemoteContentFinder |
find(Expansion... expansions)
Create a content finder to retrieve content from the remote server
|
java.util.concurrent.Future<com.atlassian.fugue.Option<Macro>> |
findMacroByHash(ContentId contentId,
java.lang.String versionId,
java.lang.String hash,
Expansion... expansions)
Retrieve details about a macro matching the page, version and macro hash.
|
java.util.concurrent.Future<PageResponse<Content>> |
getChildren(Content parent,
PageRequest pageRequest,
Expansion... expansion)
Retrieve the children of an item of Content.
|
java.util.concurrent.Future<Content> |
update(Content content)
Updates a piece of content.
|
RemoteContentService.RemoteContentFinder find(Expansion... expansions)
java.util.concurrent.Future<com.atlassian.fugue.Option<Macro>> findMacroByHash(ContentId contentId, java.lang.String versionId, java.lang.String hash, Expansion... expansions) throws ServiceException
contentId - The content to scan for the macroversionId - The version of the page to scan for the macrohash - The hash identifying the body of the macroServiceExceptionjava.util.concurrent.Future<Content> create(Content newContent) throws ServiceException
Valid ContentRepresentations for the ContentBody can be found in the documentation on the
ContentBodyConversionService.
newContent - the content to createServiceException - if the content cannot be createdjava.util.concurrent.Future<Content> update(Content content) throws ServiceException
Valid ContentRepresentations for the ContentBody can be found in the documentation on the
ContentBodyConversionService.
content - the updated Content with metadata about the changeServiceExceptionjava.util.concurrent.Future<java.lang.Void> delete(Content content) throws ServiceException
content - if of the content to removeServiceException - if the content cannot be found, or cannot be deletedjava.util.concurrent.Future<PageResponse<Content>> getChildren(Content parent, PageRequest pageRequest, Expansion... expansion)
Children will be Content items of the same type as the parent.
The pageRequest limit is restricted to a maximum page size.
parent - - the content to retrieve the children forpageRequest - - a pageRequest indicating how much content to retrieve.Copyright © 2003-2014 Atlassian. All Rights Reserved.