|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface AttachmentService.AttachmentFinder
A finder for locating attachments. In general calls to withX() apply restrictions on the attachments to be returned by fetchX() methods
Method Summary | |
---|---|
PageResponse<Content> |
fetchMany(PageRequest request)
Fetch the attachments from the datastore that match the restrictions applied with the withX methods. |
AttachmentService.AttachmentFinder |
withContainerId(ContentId parentId)
Restrict the attachments returned to those with the given parent. |
AttachmentService.AttachmentFinder |
withFilename(java.lang.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(java.lang.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 |
Methods inherited from interface com.atlassian.confluence.api.service.finder.SingleFetcher |
---|
fetchOne, fetchOneOrNull |
Method Detail |
---|
SingleFetcher<Content> withId(ContentId attachmentId)
attachmentId
- - the id of the attachment to look up
AttachmentService.AttachmentFinder withContainerId(ContentId parentId)
parentId
- - the id of a Content container that contains the attachments to be found
AttachmentService.AttachmentFinder withFilename(java.lang.String filename)
filename
- - the filename to match
AttachmentService.AttachmentFinder withMediaType(java.lang.String type)
type
- - the media to match
PageResponse<Content> fetchMany(PageRequest request)
request
- - a pageRequest to use to paginate the response, this will be limited if it exceeds system limits
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |