public interface AttachmentManagerInternal extends AttachmentManager
AttachmentManager interface; see the package-info.java for rationale.| Modifier and Type | Method and Description |
|---|---|
PageResponse<Attachment> |
getAttachments(ContentEntityObject content,
LimitedRequest pageRequest,
com.google.common.base.Predicate<? super Attachment> filterPredicate)
Returns the current attachments under the CEO.
|
void |
moveAttachment(Attachment attachment,
ContentEntityObject newContainer)
Moves an attachment to a different
ContentEntityObject container. |
copyAttachment, copyAttachments, copyAttachments, countLatestVersionsOfAttachments, countLatestVersionsOfAttachmentsWithAnyStatus, getAllVersions, getAllVersionsOfAttachments, getAttachment, getAttachment, getAttachment, getAttachmentDao, getAttachmentData, getAttachmentData, getAttachmentDownloadPath, getAttachmentForDownloadPath, getAttachments, getAttachments, getBackingStorageType, getCopier, getLastAddedVersionsOf, getLatestVersionsOfAttachments, getLatestVersionsOfAttachmentsForMultipleCeos, getLatestVersionsOfAttachmentsWithAnyStatus, getMigrator, getPreviousVersions, getRemappedAttachmentIds, moveAttachment, removeAttachmentFromServer, removeAttachments, removeAttachmentVersionFromServer, removeAttachmentWithoutNotifications, restore, saveAttachment, saveAttachment, saveAttachments, saveAttachments, setAttachmentData, trashPageResponse<Attachment> getAttachments(ContentEntityObject content, LimitedRequest pageRequest, com.google.common.base.Predicate<? super Attachment> filterPredicate)
Note - only returns the latest versions of the Attachments. The legacy
AttachmentManager.getAttachments(ContentEntityObject) method
that confusingly returns all versions has been deprecated.
content - the content to return attachments forpageRequest - the pagination requestedfilterPredicate - the predicate for filtering found attachmentsvoid moveAttachment(Attachment attachment, ContentEntityObject newContainer)
ContentEntityObject container.attachment - The attachment to be movednewContainer - The new ContentEntiityObject which will be parent to the attachmentCopyright © 2003–2018 Atlassian. All rights reserved.