|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.api.impl.service.content.ContentTrashServiceImpl
public class ContentTrashServiceImpl
Default implementations of ContentTrashService
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.confluence.api.service.content.ContentTrashService |
---|
ContentTrashService.Validator |
Constructor Summary | |
---|---|
ContentTrashServiceImpl(PageManager pageManager,
AttachmentService attachmentService,
PermissionManager permissionManager,
PageService pageService,
BlogPostService blogPostService,
CommentService commentService,
com.google.common.base.Supplier<ContentService> contentServiceSupplier,
SpaceManager spaceManager)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentTrashServiceImpl(PageManager pageManager, AttachmentService attachmentService, PermissionManager permissionManager, PageService pageService, BlogPostService blogPostService, CommentService commentService, com.google.common.base.Supplier<ContentService> contentServiceSupplier, SpaceManager spaceManager)
Method Detail |
---|
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
and ContentType.BLOG_POST
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 restored
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |