Class RemoteContentTrashServiceImpl
java.lang.Object
com.atlassian.confluence.rest.client.AbstractRemoteService<ContentTrashService>
com.atlassian.confluence.rest.client.impl.RemoteContentTrashServiceImpl
- All Implemented Interfaces:
RemoteContentTrashService
public class RemoteContentTrashServiceImpl
extends AbstractRemoteService<ContentTrashService>
implements RemoteContentTrashService
ContentTrashService implementation that communicates with Confluence remotely.-
Field Summary
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider -
Constructor Summary
ConstructorsConstructorDescriptionRemoteContentTrashServiceImpl(AuthenticatedWebResourceProvider provider, ExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptionpurgeCompletionStage(Content content) Permanently delete a piece of content.restoreCompletionStage(Content content) Restore a trashed piece of content.trashCompletionStage(Content content) Trash a piece of content.Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postVoidCompletionStage, putCompletionStage
-
Constructor Details
-
RemoteContentTrashServiceImpl
public RemoteContentTrashServiceImpl(AuthenticatedWebResourceProvider provider, ExecutorService executor) - Since:
- 8.8
-
-
Method Details
-
trashCompletionStage
Description copied from interface:RemoteContentTrashServiceTrash a piece of content.The
RemoteContentTrashService.purgeCompletionStage(Content)method can be used for content that doesn't support trashing. Currently, only content with typesContentType.PAGEandContentType.BLOG_POSTsupport trashing.- Specified by:
trashCompletionStagein interfaceRemoteContentTrashService- Parameters:
content- the content to be trashed- Returns:
- the content after being trashed
-
restoreCompletionStage
Description copied from interface:RemoteContentTrashServiceRestore a trashed piece of content.- Specified by:
restoreCompletionStagein interfaceRemoteContentTrashService- Parameters:
content- the content to be restored- Returns:
- the content after being restored
-
purgeCompletionStage
Description copied from interface:RemoteContentTrashServicePermanently delete a piece of content.There are two main cases:
- Trashable content (e.g. Pages, BlogPosts) must have status "trashed" to be purged.
- Non-trashable content (e.g. Comments, Attachment) can be purged with status "current".
- Specified by:
purgeCompletionStagein interfaceRemoteContentTrashService- Parameters:
content- the content to be purged
-