@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)
Permanently delete a piece of content.
|
com.atlassian.util.concurrent.Promise<Content> |
restore(Content content)
Restore a trashed piece of content.
|
com.atlassian.util.concurrent.Promise<Void> |
trash(Content content)
Trash a piece of content.
|
com.atlassian.util.concurrent.Promise<Void> trash(Content content)
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 trashedcom.atlassian.util.concurrent.Promise<Content> restore(Content content)
content
- the content to be restoredcom.atlassian.util.concurrent.Promise<Void> purge(Content content)
There are two main cases:
content
- the content to be purgedCopyright © 2003–2018 Atlassian. All rights reserved.