com.atlassian.confluence.api.impl.service.content
Class ContentTrashServiceImpl

java.lang.Object
  extended by com.atlassian.confluence.api.impl.service.content.ContentTrashServiceImpl
All Implemented Interfaces:
ContentTrashService

public class ContentTrashServiceImpl
extends Object
implements ContentTrashService

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

ContentTrashServiceImpl

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

trash

public void trash(Content content)
Description copied from interface: ContentTrashService
Trash a piece of content.

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.

Specified by:
trash in interface ContentTrashService
Parameters:
content - the content to be trashed

restore

public Content restore(Content content)
Description copied from interface: ContentTrashService
Restore a trashed piece of content.

Specified by:
restore in interface ContentTrashService
Parameters:
content - the content to be restored
Returns:
the content after being restored

purge

public void purge(Content content)
Description copied from interface: ContentTrashService
Permanently delete a piece of content.

There are two main cases:

Specified by:
purge in interface ContentTrashService
Parameters:
content - the content to be purged

validator

public com.atlassian.confluence.api.impl.service.content.ContentTrashServiceImpl.ValidatorImpl validator()
Description copied from interface: ContentTrashService
Get the validator view of this service.

Specified by:
validator in interface ContentTrashService
Returns:
a Validator that can be used to validate service requests.


Copyright © 2003–2015 Atlassian. All rights reserved.