com.atlassian.confluence.api.impl.service.content.typebinding
Class AttachmentContentTypeBinding

java.lang.Object
  extended by com.atlassian.confluence.api.extension.typebinding.AbstractContentTypeBinding
      extended by com.atlassian.confluence.api.impl.service.content.typebinding.AttachmentContentTypeBinding
All Implemented Interfaces:
ContentTypeBinding

public class AttachmentContentTypeBinding
extends AbstractContentTypeBinding

Performs API operations for Attachments.


Constructor Summary
AttachmentContentTypeBinding(ContentEntityManager contentEntityManager, AttachmentFactory attachmentFactory, AttachmentManagerInternal attachmentManager, PaginationService paginationService, PermissionManager permissionManager)
           
 
Method Summary
 PageResponse<Content> getAttachments(ContentId containerId, LimitedRequest limitedRequest, com.google.common.base.Predicate<? super Attachment> predicate, Expansions contentExpansions)
           
 com.atlassian.fugue.Option<Content> getById(ContentId attachmentId, Expansions expansions)
           
 PageResponse<Content> getChildren(Content parent, LimitedRequest limitedRequest, Expansions expansions, Depth depth)
          Retrieve the children of an item of Content.
 
Methods inherited from class com.atlassian.confluence.api.extension.typebinding.AbstractContentTypeBinding
getHandledType, handlesParentType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentContentTypeBinding

public AttachmentContentTypeBinding(ContentEntityManager contentEntityManager,
                                    AttachmentFactory attachmentFactory,
                                    AttachmentManagerInternal attachmentManager,
                                    PaginationService paginationService,
                                    PermissionManager permissionManager)
Method Detail

getChildren

public PageResponse<Content> getChildren(Content parent,
                                         LimitedRequest limitedRequest,
                                         Expansions expansions,
                                         Depth depth)
Description copied from interface: ContentTypeBinding
Retrieve the children of an item of Content. The result is ordered by implicit child order.

Children will be Content items of the same ContentType as the parent.

The pageRequest limit is restricted to a maximum page size.

Parameters:
parent - the content to retrieve the children for
expansions - the expansions to apply to the Children returned
depth - the depth to return children to
Returns:
a partial list of the top level content in this space.

getAttachments

public PageResponse<Content> getAttachments(ContentId containerId,
                                            LimitedRequest limitedRequest,
                                            com.google.common.base.Predicate<? super Attachment> predicate,
                                            Expansions contentExpansions)
                                     throws ServiceException
Throws:
ServiceException

getById

public com.atlassian.fugue.Option<Content> getById(ContentId attachmentId,
                                                   Expansions expansions)


Copyright © 2003-2014 Atlassian. All Rights Reserved.