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, putFuture
public RemoteContentServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
public RemoteContentService.RemoteContentFinder find(Expansion... expansions)
RemoteContentService
find
in interface RemoteContentService
public com.atlassian.util.concurrent.Promise<Content> create(Content newContent)
RemoteContentService
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
create
in interface RemoteContentService
newContent
- the content to createpublic com.atlassian.util.concurrent.Promise<Content> create(Content newContent, Expansion... expansions)
RemoteContentService
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
create
in interface RemoteContentService
newContent
- 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 ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
update
in interface RemoteContentService
content
- 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 RemoteContentService
content
- the content to be trashedpublic com.atlassian.util.concurrent.Promise<Content> restore(Content content)
RemoteContentService
restore
in interface RemoteContentService
content
- the content to be restoredpublic com.atlassian.util.concurrent.Promise<Void> purge(Content content)
RemoteContentService
purge
in interface RemoteContentService
content
- the content to be purgedpublic com.atlassian.util.concurrent.Promise<Void> delete(Content content)
RemoteContentService
delete
in interface RemoteContentService
content
- 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 RemoteContentService
parent
- - 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–2016 Atlassian. All rights reserved.