com.atlassian.confluence.api.impl.service.content.typebinding
Class AttachmentContentTypeBinding
java.lang.Object
com.atlassian.confluence.api.extension.typebinding.AbstractContentTypeBinding
com.atlassian.confluence.api.impl.service.content.typebinding.AttachmentContentTypeBinding
- All Implemented Interfaces:
- ContentTypeBinding
public class AttachmentContentTypeBinding
- extends AbstractContentTypeBinding
Performs API operations for Attachment
s.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachmentContentTypeBinding
public AttachmentContentTypeBinding(ContentEntityManager contentEntityManager,
AttachmentFactory attachmentFactory,
AttachmentManagerInternal attachmentManager,
PaginationService paginationService,
PermissionManager permissionManager)
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 forexpansions
- the expansions to apply to the Children returneddepth
- 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.