public class RemoteContentTrashServiceImpl extends AbstractRemoteService<ContentTrashService> implements RemoteContentTrashService
ContentTrashService
implementation that communicates with Confluence remotely.provider
Constructor and Description |
---|
RemoteContentTrashServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
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 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<Void> |
trash(Content content)
Deprecated.
since 7.0.1. Use
trashCompletionStage(Content) instead. |
CompletionStage<Void> |
trashCompletionStage(Content content)
Trash 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
public RemoteContentTrashServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
@Deprecated public com.atlassian.util.concurrent.Promise<Void> trash(Content content)
trashCompletionStage(Content)
instead.RemoteContentTrashService
The RemoteContentTrashService.purge(Content)
method can be used for content that doesn't support trashing.
Currently, only content with types ContentType.PAGE
and ContentType.BLOG_POST
support trashing.
trash
in interface RemoteContentTrashService
content
- the content to be trashed@Deprecated public com.atlassian.util.concurrent.Promise<Content> restore(Content content)
restoreCompletionStage(Content)
instead.RemoteContentTrashService
restore
in interface RemoteContentTrashService
content
- the content to be restored@Deprecated public com.atlassian.util.concurrent.Promise<Void> purge(Content content)
purgeCompletionStage(Content)
instead.RemoteContentTrashService
There are two main cases:
purge
in interface RemoteContentTrashService
content
- the content to be purgedpublic CompletionStage<Void> trashCompletionStage(Content content)
RemoteContentTrashService
The RemoteContentTrashService.purgeCompletionStage(Content)
method can be used for content that doesn't support trashing.
Currently, only content with types ContentType.PAGE
and ContentType.BLOG_POST
support trashing.
trashCompletionStage
in interface RemoteContentTrashService
content
- the content to be trashedpublic CompletionStage<Content> restoreCompletionStage(Content content)
RemoteContentTrashService
restoreCompletionStage
in interface RemoteContentTrashService
content
- the content to be restoredpublic CompletionStage<Void> purgeCompletionStage(Content content)
RemoteContentTrashService
There are two main cases:
purgeCompletionStage
in interface RemoteContentTrashService
content
- the content to be purgedCopyright © 2003–2021 Atlassian. All rights reserved.