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 | 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.
|
java.util.concurrent.Future<com.atlassian.fugue.Option<Content>> |
find(ContentLocator locator,
Expansion... expansions)
Retrieve a piece of content by some more complex criteria (defined by the ContentLocator).
|
java.util.concurrent.Future<com.atlassian.fugue.Option<Content>> |
findById(java.lang.String contentId,
Expansion... expansions)
Retrieve a piece of content by its id.
|
java.util.concurrent.Future<Content> |
update(Content content)
Updates a piece of content.
|
java.util.concurrent.Future<com.atlassian.fugue.Option<Content>> findById(java.lang.String contentId, Expansion... expansions)
contentId - the id of the content you are looking forjava.util.concurrent.Future<com.atlassian.fugue.Option<Content>> find(ContentLocator locator, Expansion... expansions)
locator - the locator containing the criteria for the content you are looking forjava.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 deletedCopyright © 2003-2013 Atlassian. All Rights Reserved.