public class RemoteContentServiceImpl extends AbstractRemoteService<ContentService> implements RemoteContentService
| Modifier and Type | Class and Description |
|---|---|
class |
RemoteContentServiceImpl.RemoteContentFinderImpl |
RemoteContentService.RemoteContentFetcher, RemoteContentService.RemoteContentFinder, RemoteContentService.RemoteParameterContentFinder, RemoteContentService.RemoteSingleContentFetcher| Constructor and Description |
|---|
RemoteContentServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.util.concurrent.Promise<Content> |
create(Content newContent)
Create a piece of content.
|
com.atlassian.util.concurrent.Promise<Content> |
create(Content newContent,
Expansion... expansions)
Create a piece of content.
|
com.atlassian.util.concurrent.Promise<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... expansions)
Retrieve the children of an item of Content.
|
com.sun.jersey.api.client.WebResource |
newContentWebResource() |
com.sun.jersey.api.client.WebResource |
newExperimentalContentWebResource() |
com.atlassian.util.concurrent.Promise<Void> |
purge(Content content)
Permanently delete a trashed piece of content.
|
com.atlassian.util.concurrent.Promise<Content> |
restore(Content content)
Restore a trashed piece of content.
|
com.atlassian.util.concurrent.Promise<Content> |
trash(Content content)
Trash a piece of content.
|
com.atlassian.util.concurrent.Promise<Content> |
update(Content content)
Updates a piece of content.
|
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuturepublic RemoteContentServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
public RemoteContentService.RemoteContentFinder find(Expansion... expansions)
RemoteContentServicefind in interface RemoteContentServicepublic com.atlassian.util.concurrent.Promise<Content> create(Content newContent)
RemoteContentService
Valid ContentRepresentations for the ContentBody can be found in the documentation on the
ContentBodyConversionService.
create in interface RemoteContentServicenewContent - the content to createpublic com.atlassian.util.concurrent.Promise<Content> create(Content newContent, Expansion... expansions)
RemoteContentService
Valid ContentRepresentations for the ContentBody can be found in the documentation on the
ContentBodyConversionService.
create in interface RemoteContentServicenewContent - the content to createexpansions - the particular expansions will be applied to the new created contentpublic com.atlassian.util.concurrent.Promise<Content> update(Content content)
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 changepublic com.atlassian.util.concurrent.Promise<Content> trash(Content content)
RemoteContentService
The RemoteContentService.delete(Content) method should be used for content that doesn't support trashing.
Currently Pages and Blogposts support trashing.
trash in interface RemoteContentServicecontent - the content to be trashedpublic com.atlassian.util.concurrent.Promise<Content> restore(Content content)
RemoteContentServicerestore in interface RemoteContentServicecontent - the content to be restoredpublic com.atlassian.util.concurrent.Promise<Void> purge(Content content)
RemoteContentServicepurge in interface RemoteContentServicecontent - the content to be purgedpublic com.atlassian.util.concurrent.Promise<Void> delete(Content content)
RemoteContentServicedelete in interface RemoteContentServicecontent - if of the content to removepublic com.atlassian.util.concurrent.Promise<PageResponse<Content>> getChildren(Content parent, PageRequest pageRequest, Expansion... expansions)
RemoteContentService
Children will be Content items of the same type as the parent.
The pageRequest limit is restricted to a maximum page size.
getChildren in interface RemoteContentServiceparent - - the content to retrieve the children forpageRequest - - a pageRequest indicating how much content to retrieve.public com.sun.jersey.api.client.WebResource newContentWebResource()
public com.sun.jersey.api.client.WebResource newExperimentalContentWebResource()
Copyright © 2003–2017 Atlassian. All rights reserved.