com.atlassian.confluence.internal.pages
Interface AttachmentManagerInternal

All Superinterfaces:
AttachmentManager
All Known Implementing Classes:
CachingAttachmentManager, DefaultAttachmentManager, DelegatorAttachmentManager, WebDavAttachmentManager

public interface AttachmentManagerInternal
extends AttachmentManager

Internal version of the AttachmentManager interface; see the package-info.java for rationale.


Method Summary
 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.
 
Methods inherited from interface com.atlassian.confluence.pages.AttachmentManager
copyAttachment, copyAttachments, countLatestVersionsOfAttachments, getAllVersions, getAllVersionsOfAttachments, getAttachment, getAttachment, getAttachment, getAttachmentDao, getAttachmentData, getAttachmentDownloadPath, getAttachmentForDownloadPath, getAttachments, getBackingStorageType, getCopier, getLastAddedVersionsOf, getLatestVersionsOfAttachments, getMigrator, getPreviousVersions, moveAttachment, removeAttachmentFromServer, removeAttachments, removeAttachmentVersionFromServer, saveAttachment, saveAttachments, setAttachmentData
 

Method Detail

getAttachments

PageResponse<Attachment> getAttachments(ContentEntityObject content,
                                        LimitedRequest pageRequest,
                                        com.google.common.base.Predicate<? super Attachment> filterPredicate)
Returns the current attachments under the CEO.

Note - only returns the latest versions of the Attachments. The legacy AttachmentManager.getAttachments(ContentEntityObject) method that confusingly returns all versions has been deprecated.

Parameters:
content - the content to return attachments for
pageRequest - the pagination requested
filterPredicate - the predicate for filtering found attachments
Returns:
the paginated response of Page entities

moveAttachment

void moveAttachment(Attachment attachment,
                    ContentEntityObject newContainer)
Moves an attachment to a different ContentEntityObject container.

Parameters:
attachment - The attachment to be moved
newContainer - The new ContentEntiityObject which will be parent to the attachment


Copyright © 2003-2014 Atlassian. All Rights Reserved.