public static interface AttachmentService.AttachmentFinder extends SingleFetcher<Content>, ManyFetcher<Content>
In general calls to withX() apply restrictions on the attachments to be returned by fetchX() methods
Modifier and Type | Method and Description |
---|---|
AttachmentService.AttachmentFinder |
withContainerId(ContentId parentId)
Restrict the attachments returned to those with the given parent.
|
AttachmentService.AttachmentFinder |
withFilename(String filename)
Restrict the attachments fetched to those with the given filename.
|
SingleFetcher<Content> |
withId(ContentId attachmentId)
Restrict the attachment returned by the fetch methods to those with the
given attachmentId
|
AttachmentService.AttachmentFinder |
withMediaType(String type)
Restrict the attachments fetched to those with the given file type, these file types
should match the string representation of a type in javax.ws.rs.core.MediaType
|
fetchOne, fetchOneOrNull
fetchMany
SingleFetcher<Content> withId(ContentId attachmentId)
attachmentId
- - the id of the attachment to look upAttachmentService.AttachmentFinder withContainerId(ContentId parentId)
parentId
- - the id of a Content container that contains the attachments to be foundAttachmentService.AttachmentFinder withFilename(String filename)
filename
- - the filename to matchAttachmentService.AttachmentFinder withMediaType(String type)
type
- - the media to matchCopyright © 2003–2017 Atlassian. All rights reserved.