com.atlassian.confluence.rest.client
Interface RemoteContentTrashService

All Known Implementing Classes:
RemoteContentTrashServiceImpl

@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.


Method Summary
 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.
 

Method Detail

trash

com.atlassian.util.concurrent.Promise<Void> trash(Content content)
Trash a piece of 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.

Parameters:
content - the content to be trashed
Returns:
the content after being trashed

restore

com.atlassian.util.concurrent.Promise<Content> restore(Content content)
Restore a trashed piece of content.

Parameters:
content - the content to be restored
Returns:
the content after being restored

purge

com.atlassian.util.concurrent.Promise<Void> purge(Content content)
Permanently delete a piece of content.

There are two main cases:

Parameters:
content - the content to be purged


Copyright © 2003–2015 Atlassian. All rights reserved.