public class RemoteContentServiceImpl extends AbstractRemoteService<ContentService> implements RemoteContentService
| Constructor and Description |
|---|
RemoteContentServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor) |
| 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<com.atlassian.fugue.Option<Macro>> |
findMacro(java.lang.String 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<Content> |
update(Content content)
Updates a piece of content.
|
addExpansions, deleteFuture, getFutureOption, getFuturePageResponseList, newRestWebResource, postFuture, putFuturepublic RemoteContentServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
public java.util.concurrent.Future<com.atlassian.fugue.Option<Content>> findById(java.lang.String contentId, Expansion... expansions)
RemoteContentServicefindById in interface RemoteContentServicecontentId - the id of the content you are looking forpublic java.util.concurrent.Future<com.atlassian.fugue.Option<Macro>> findMacro(java.lang.String contentId, java.lang.String versionId, java.lang.String hash, Expansion... expansions) throws ServiceException
RemoteContentServicefindMacro in interface RemoteContentServicecontentId - The content to scan for the macroversionId - The version of the page to scan for the macrohash - The hash identifying the body of the macroServiceExceptionpublic java.util.concurrent.Future<com.atlassian.fugue.Option<Content>> find(ContentLocator locator, Expansion... expansions)
RemoteContentServicefind in interface RemoteContentServicelocator - the locator containing the criteria for the content you are looking forpublic java.util.concurrent.Future<Content> create(Content newContent) throws ServiceException
RemoteContentService
Valid ContentRepresentations for the ContentBody can be found in the documentation on the
ContentBodyConversionService.
create in interface RemoteContentServicenewContent - the content to createServiceException - if the content cannot be createdpublic java.util.concurrent.Future<Content> update(Content content) throws ServiceException
RemoteContentService
Valid ContentRepresentations for the ContentBody can be found in the documentation on the
ContentBodyConversionService.
update in interface RemoteContentServicecontent - the updated Content with metadata about the changeServiceExceptionpublic java.util.concurrent.Future<java.lang.Void> delete(Content content) throws ServiceException
RemoteContentServicedelete in interface RemoteContentServicecontent - if of the content to removeServiceException - if the content cannot be found, or cannot be deletedCopyright © 2003-2014 Atlassian. All Rights Reserved.