|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@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.
Nested Class Summary | |
---|---|
static interface |
RemoteContentService.RemoteContentFetcher
|
static interface |
RemoteContentService.RemoteContentFinder
|
static interface |
RemoteContentService.RemoteParameterContentFinder
|
static interface |
RemoteContentService.RemoteSingleContentFetcher
|
Method Summary | |
---|---|
com.atlassian.util.concurrent.Promise<Content> |
create(Content newContent)
Create a piece of content. |
com.atlassian.util.concurrent.Promise<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 |
com.atlassian.util.concurrent.Promise<PageResponse<Content>> |
getChildren(Content parent,
PageRequest pageRequest,
Expansion... expansion)
Retrieve the children of an item of Content. |
com.atlassian.util.concurrent.Promise<Content> |
update(Content content)
Updates a piece of content. |
Method Detail |
---|
RemoteContentService.RemoteContentFinder find(Expansion... expansions)
com.atlassian.util.concurrent.Promise<Content> create(Content newContent) throws ServiceException
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
newContent
- the content to create
ServiceException
- if the content cannot be createdcom.atlassian.util.concurrent.Promise<Content> update(Content content) throws ServiceException
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
content
- the updated Content
with metadata about the change
ServiceException
com.atlassian.util.concurrent.Promise<java.lang.Void> delete(Content content) throws ServiceException
content
- if of the content to remove
ServiceException
- if the content cannot be found, or cannot be deletedcom.atlassian.util.concurrent.Promise<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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |