@ExperimentalApi
public interface RemoteContentService
ContentService
implementation that communicates with Confluence remotely using the Confluence REST API.
Provides future returning equivalents for the methods in ContentService.
Modifier and Type | Interface and Description |
---|---|
static interface |
RemoteContentService.RemoteContentFetcher |
static interface |
RemoteContentService.RemoteContentFinder |
static interface |
RemoteContentService.RemoteParameterContentFinder |
static interface |
RemoteContentService.RemoteSingleContentFetcher |
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<Content> |
create(Content newContent)
Deprecated.
since 7.0.1. Use
createCompletionStage(Content, Expansion...) 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.
|
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... expansion)
Deprecated.
since 7.0.1. Use
getChildrenCompletionStage(Content, PageRequest, Expansion...) instead. |
CompletionStage<PageResponse<Content>> |
getChildrenCompletionStage(Content parent,
PageRequest pageRequest,
Expansion... expansion)
Retrieve the children of an item of Content.
|
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.
|
RemoteContentService.RemoteContentFinder find(Expansion... expansions)
@Deprecated com.atlassian.util.concurrent.Promise<Content> create(Content newContent)
createCompletionStage(Content, Expansion...)
instead.
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
newContent
- the content to createServiceException
- if the content cannot be createdCompletionStage<Content> createCompletionStage(Content newContent)
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
newContent
- the content to createServiceException
- if the content cannot be created@Deprecated com.atlassian.util.concurrent.Promise<Content> create(Content newContent, Expansion... expansions) throws ServiceException
createCompletionStage(Content, Expansion...)
instead.
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
newContent
- the content to createexpansions
- the particular expansions will be applied to the new created contentServiceException
- if the content cannot be createdCompletionStage<Content> createCompletionStage(Content newContent, Expansion... expansions) throws ServiceException
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
newContent
- the content to createexpansions
- the particular expansions will be applied to the new created contentServiceException
- if the content cannot be created@Deprecated com.atlassian.util.concurrent.Promise<Content> update(Content content)
updateCompletionStage(Content)
instead.
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
content
- the updated Content
with metadata about the change@Deprecated com.atlassian.util.concurrent.Promise<Content> trash(Content content)
trashCompletionStage(Content)
instead.
The delete(Content)
method should be used for content that doesn't support trashing.
Currently Pages and Blogposts support trashing.
content
- the content to be trashed@Deprecated com.atlassian.util.concurrent.Promise<Content> restore(Content content)
restoreCompletionStage(Content)
instead.content
- the content to be restored@Deprecated com.atlassian.util.concurrent.Promise<Void> purge(Content content)
purgeCompletionStage(Content)
instead.content
- the content to be purged@Deprecated com.atlassian.util.concurrent.Promise<Void> delete(Content content)
deleteCompletionStage(Content)
instead.content
- if of the content to removeServiceException
- if the content cannot be found, or cannot be deletedCompletionStage<Content> updateCompletionStage(Content content)
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
content
- the updated Content
with metadata about the changeCompletionStage<Content> trashCompletionStage(Content content)
The delete(Content)
method should be used for content that doesn't support trashing.
Currently Pages and Blogposts support trashing.
content
- the content to be trashedCompletionStage<Content> restoreCompletionStage(Content content)
content
- the content to be restoredCompletionStage<Void> purgeCompletionStage(Content content)
content
- the content to be purgedCompletionStage<Void> deleteCompletionStage(Content content)
content
- if of the content to removeServiceException
- if the content cannot be found, or cannot be deleted@Deprecated com.atlassian.util.concurrent.Promise<PageResponse<Content>> getChildren(Content parent, PageRequest pageRequest, Expansion... expansion)
getChildrenCompletionStage(Content, PageRequest, Expansion...)
instead.
Children will be Content
items of the same type as the parent.
The pageRequest limit is restricted to a maximum page size.
parent
- - the content to retrieve the children forpageRequest
- - a pageRequest indicating how much content to retrieve.CompletionStage<PageResponse<Content>> getChildrenCompletionStage(Content parent, PageRequest pageRequest, Expansion... expansion)
Children will be Content
items of the same type as the parent.
The pageRequest limit is restricted to a maximum page size.
parent
- - the content to retrieve the children forpageRequest
- - a pageRequest indicating how much content to retrieve.Copyright © 2003–2020 Atlassian. All rights reserved.