@ExperimentalApi
public interface RemoteContentTrashService
ContentTrashService
implementation that communicates with Confluence remotely using the Confluence REST API.
Provides Promise-returning equivalents for the methods in ContentTrashService.
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.
|
@Deprecated com.atlassian.util.concurrent.Promise<Void> trash(Content content)
trashCompletionStage(Content)
instead.
The 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.
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.
There are two main cases:
content
- the content to be purgedCompletionStage<Void> trashCompletionStage(Content content)
The 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.
content
- the content to be trashedCompletionStage<Content> restoreCompletionStage(Content content)
content
- the content to be restoredCompletionStage<Void> purgeCompletionStage(Content content)
There are two main cases:
content
- the content to be purgedCopyright © 2003–2020 Atlassian. All rights reserved.