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)
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.
|
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuturepublic RemoteContentTrashServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
public com.atlassian.util.concurrent.Promise<Void> trash(Content content)
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 RemoteContentTrashServicecontent - the content to be trashedpublic com.atlassian.util.concurrent.Promise<Content> restore(Content content)
RemoteContentTrashServicerestore in interface RemoteContentTrashServicecontent - the content to be restoredpublic com.atlassian.util.concurrent.Promise<Void> purge(Content content)
RemoteContentTrashService
There are two main cases:
purge in interface RemoteContentTrashServicecontent - the content to be purgedCopyright © 2003–2021 Atlassian. All rights reserved.