public abstract class AbstractRemoteContentService extends AbstractRemoteService<ContentService> implements RemoteContentService
ContentService implementation that communicates with Confluence remotely.| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractRemoteContentService.AbstractRemoteContentFinder |
RemoteContentService.RemoteContentFetcher, RemoteContentService.RemoteContentFinder, RemoteContentService.RemoteParameterContentFinder, RemoteContentService.RemoteSingleContentFetcherprovider| Constructor and Description |
|---|
AbstractRemoteContentService(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
containsExperimentalExpansion(Expansion[] expansions) |
com.atlassian.util.concurrent.Promise<Content> |
create(Content newContent)
Deprecated.
since 7.0.1. Use
createCompletionStage(Content) instead. |
com.atlassian.util.concurrent.Promise<Content> |
create(Content newContent,
Expansion... expansions)
Deprecated.
since 7.0.1. Use
createCompletionStage(Content, Expansion...) instead. |
CompletionStage<Content> |
createCompletionStage(Content newContent)
Create a piece of content.
|
CompletionStage<Content> |
createCompletionStage(Content newContent,
Expansion... expansions)
Create a piece of content.
|
com.atlassian.util.concurrent.Promise<Void> |
delete(Content content)
Deprecated.
since 7.0.1. Use
deleteCompletionStage(Content) instead. |
CompletionStage<Void> |
deleteCompletionStage(Content content)
Removes an item of Content from the system.
|
com.atlassian.util.concurrent.Promise<PageResponse<Content>> |
getChildren(Content parent,
PageRequest pageRequest,
Expansion... expansions)
Deprecated.
since 7.0.1. Use
getChildrenCompletionStage(Content, PageRequest, Expansion...) instead. |
CompletionStage<PageResponse<Content>> |
getChildrenCompletionStage(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)
Deprecated.
since 7.0.1. Use
purgeCompletionStage(Content) instead. |
CompletionStage<Void> |
purgeCompletionStage(Content content)
Permanently delete a trashed piece of content.
|
com.atlassian.util.concurrent.Promise<Content> |
restore(Content content)
Deprecated.
since 7.0.1. Use
restoreCompletionStage(Content) instead. |
CompletionStage<Content> |
restoreCompletionStage(Content content)
Restore a trashed piece of content.
|
com.atlassian.util.concurrent.Promise<Content> |
trash(Content content)
Deprecated.
since 7.0.1. Use
trashCompletionStage(Content) instead. |
CompletionStage<Content> |
trashCompletionStage(Content content)
Trash a piece of content.
|
com.atlassian.util.concurrent.Promise<Content> |
update(Content content)
Deprecated.
since 7.0.1. Use
updateCompletionStage(Content) instead. |
CompletionStage<Content> |
updateCompletionStage(Content content)
Updates a piece of content.
|
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, putCompletionStage, putFutureclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindpublic AbstractRemoteContentService(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
@Deprecated public com.atlassian.util.concurrent.Promise<Content> create(Content newContent)
createCompletionStage(Content) instead.RemoteContentService
Valid ContentRepresentations for the ContentBody can be found in the documentation on the
ContentBodyConversionService.
create in interface RemoteContentServicenewContent - the content to create@Deprecated public com.atlassian.util.concurrent.Promise<Content> create(Content newContent, Expansion... expansions)
createCompletionStage(Content, Expansion...) instead.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 CompletionStage<Content> createCompletionStage(Content newContent)
RemoteContentService
Valid ContentRepresentations for the ContentBody can be found in the documentation on the
ContentBodyConversionService.
createCompletionStage in interface RemoteContentServicenewContent - the content to createpublic CompletionStage<Content> createCompletionStage(Content newContent, Expansion... expansions) throws ServiceException
RemoteContentService
Valid ContentRepresentations for the ContentBody can be found in the documentation on the
ContentBodyConversionService.
createCompletionStage in interface RemoteContentServicenewContent - the content to createexpansions - the particular expansions will be applied to the new created contentServiceException - if the content cannot be created@Deprecated public com.atlassian.util.concurrent.Promise<Content> update(Content content)
updateCompletionStage(Content) instead.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 change@Deprecated public com.atlassian.util.concurrent.Promise<Content> trash(Content content)
trashCompletionStage(Content) instead.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 trashed@Deprecated public com.atlassian.util.concurrent.Promise<Content> restore(Content content)
restoreCompletionStage(Content) instead.RemoteContentServicerestore in interface RemoteContentServicecontent - the content to be restored@Deprecated public com.atlassian.util.concurrent.Promise<Void> purge(Content content)
purgeCompletionStage(Content) instead.RemoteContentServicepurge in interface RemoteContentServicecontent - the content to be purged@Deprecated public com.atlassian.util.concurrent.Promise<Void> delete(Content content)
deleteCompletionStage(Content) instead.RemoteContentServicedelete in interface RemoteContentServicecontent - if of the content to removepublic CompletionStage<Content> updateCompletionStage(Content content)
RemoteContentService
Valid ContentRepresentations for the ContentBody can be found in the documentation on the
ContentBodyConversionService.
updateCompletionStage in interface RemoteContentServicecontent - the updated Content with metadata about the changepublic CompletionStage<Content> trashCompletionStage(Content content)
RemoteContentService
The RemoteContentService.delete(Content) method should be used for content that doesn't support trashing.
Currently Pages and Blogposts support trashing.
trashCompletionStage in interface RemoteContentServicecontent - the content to be trashedpublic CompletionStage<Content> restoreCompletionStage(Content content)
RemoteContentServicerestoreCompletionStage in interface RemoteContentServicecontent - the content to be restoredpublic CompletionStage<Void> purgeCompletionStage(Content content)
RemoteContentServicepurgeCompletionStage in interface RemoteContentServicecontent - the content to be purgedpublic CompletionStage<Void> deleteCompletionStage(Content content)
RemoteContentServicedeleteCompletionStage in interface RemoteContentServicecontent - if of the content to remove@Deprecated public com.atlassian.util.concurrent.Promise<PageResponse<Content>> getChildren(Content parent, PageRequest pageRequest, Expansion... expansions)
getChildrenCompletionStage(Content, PageRequest, Expansion...) instead.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 CompletionStage<PageResponse<Content>> getChildrenCompletionStage(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.
getChildrenCompletionStage 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()
protected boolean containsExperimentalExpansion(Expansion[] expansions)
Copyright © 2003–2022 Atlassian. All rights reserved.