public class ContentTrashServiceImpl extends Object implements ContentTrashService
ContentTrashService
.ContentTrashService.Validator
Constructor and Description |
---|
ContentTrashServiceImpl(PageManager pageManager,
PermissionManager permissionManager,
PageService pageService,
BlogPostService blogPostService,
CommentService commentService,
com.google.common.base.Supplier<ContentService> contentServiceSupplier,
SpaceManager spaceManager,
AttachmentManager attachmentManager) |
Modifier and Type | Method and Description |
---|---|
void |
purge(Content content)
Permanently delete a piece of content.
|
Content |
restore(Content content)
Restore a trashed piece of content.
|
void |
trash(Content content)
Trash a piece of content.
|
com.atlassian.confluence.api.impl.service.content.ContentTrashServiceImpl.ValidatorImpl |
validator()
Get the validator view of this service.
|
public ContentTrashServiceImpl(PageManager pageManager, PermissionManager permissionManager, PageService pageService, BlogPostService blogPostService, CommentService commentService, com.google.common.base.Supplier<ContentService> contentServiceSupplier, SpaceManager spaceManager, AttachmentManager attachmentManager)
public void trash(Content content)
ContentTrashService
The ContentTrashService.purge(Content)
method can be used for content that doesn't support trashing.
Currently, only content with types ContentType.PAGE
, ContentType.BLOG_POST
and
ContentType.ATTACHMENT
(as of Confluence 5.8) support trashing.
trash
in interface ContentTrashService
content
- the content to be trashedpublic Content restore(Content content)
ContentTrashService
restore
in interface ContentTrashService
content
- the content to be restoredpublic void purge(Content content)
ContentTrashService
There are two main cases:
purge
in interface ContentTrashService
content
- the content to be purgedpublic com.atlassian.confluence.api.impl.service.content.ContentTrashServiceImpl.ValidatorImpl validator()
ContentTrashService
validator
in interface ContentTrashService
Copyright © 2003–2019 Atlassian. All rights reserved.