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.RemoteSingleContentFetcher
provider
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, putFuture
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
find
public 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 ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
create
in interface RemoteContentService
newContent
- the content to create@Deprecated public com.atlassian.util.concurrent.Promise<Content> create(Content newContent, Expansion... expansions)
createCompletionStage(Content, Expansion...)
instead.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 CompletionStage<Content> createCompletionStage(Content newContent)
RemoteContentService
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
createCompletionStage
in interface RemoteContentService
newContent
- the content to createpublic CompletionStage<Content> createCompletionStage(Content newContent, Expansion... expansions) throws ServiceException
RemoteContentService
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
createCompletionStage
in interface RemoteContentService
newContent
- 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 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 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 RemoteContentService
content
- the content to be trashed@Deprecated public com.atlassian.util.concurrent.Promise<Content> restore(Content content)
restoreCompletionStage(Content)
instead.RemoteContentService
restore
in interface RemoteContentService
content
- the content to be restored@Deprecated public com.atlassian.util.concurrent.Promise<Void> purge(Content content)
purgeCompletionStage(Content)
instead.RemoteContentService
purge
in interface RemoteContentService
content
- the content to be purged@Deprecated public com.atlassian.util.concurrent.Promise<Void> delete(Content content)
deleteCompletionStage(Content)
instead.RemoteContentService
delete
in interface RemoteContentService
content
- if of the content to removepublic CompletionStage<Content> updateCompletionStage(Content content)
RemoteContentService
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
updateCompletionStage
in interface RemoteContentService
content
- 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 RemoteContentService
content
- the content to be trashedpublic CompletionStage<Content> restoreCompletionStage(Content content)
RemoteContentService
restoreCompletionStage
in interface RemoteContentService
content
- the content to be restoredpublic CompletionStage<Void> purgeCompletionStage(Content content)
RemoteContentService
purgeCompletionStage
in interface RemoteContentService
content
- the content to be purgedpublic CompletionStage<Void> deleteCompletionStage(Content content)
RemoteContentService
deleteCompletionStage
in interface RemoteContentService
content
- 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 RemoteContentService
parent
- - 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 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()
protected boolean containsExperimentalExpansion(Expansion[] expansions)
Copyright © 2003–2021 Atlassian. All rights reserved.