Interface AttachmentManagerInternal
-
- All Superinterfaces:
AttachmentManager
- All Known Implementing Classes:
DefaultAttachmentManager
,DelegatorAttachmentManager
,ReadThroughCachingAttachmentManager
@Transactional public interface AttachmentManagerInternal extends AttachmentManager
Internal version of theAttachmentManager
interface; see the package-info.java for rationale.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description AttachmentDao
getAttachmentDao()
Deprecated.since 7.5default PageResponse<Attachment>
getAttachments(ContentEntityObject content, LimitedRequest pageRequest, com.google.common.base.Predicate<? super Attachment> filterPredicate)
Deprecated.since 7.0.1.PageResponse<Attachment>
getFilteredAttachments(ContentEntityObject content, LimitedRequest pageRequest, Predicate<? super Attachment> filterPredicate)
Returns the current attachments under the CEO.List<Attachment>
getLatestVersionsOfAttachmentsWithAnyStatusForContainers(Iterable<? extends ContentEntityObject> contentEntityObjects)
Returns a list of all the latest versions of attachments for all the CEOs provided (including trashed)void
moveAttachment(Attachment attachment, ContentEntityObject newContainer)
Moves an attachment to a differentContentEntityObject
container.-
Methods inherited from interface com.atlassian.confluence.pages.AttachmentManager
copyAttachment, copyAttachments, copyAttachments, countLatestVersionsOfAttachments, countLatestVersionsOfAttachmentsOnPageSince, countLatestVersionsOfAttachmentsWithAnyStatus, deepAttachmentDelete, findAttachmentForDownloadPath, getAllVersions, getAllVersionsOfAttachments, getAttachment, getAttachment, getAttachment, getAttachmentData, getAttachmentData, getAttachmentDownloadPath, getAttachmentForDownloadPath, getAttachments, getAttachmentStatistics, getBackingStorageType, getCopier, getLastAddedVersionsOf, getLatestVersionsOfAttachments, getLatestVersionsOfAttachmentsForMultipleCeos, getLatestVersionsOfAttachmentsWithAnyStatus, getMigrator, getPreviousVersions, getRemappedAttachmentIds, moveAttachment, removeAttachmentFromServer, removeAttachments, removeAttachmentVersionFromServer, removeAttachmentVersionFromServerWithoutNotifications, removeAttachmentWithoutNotifications, restore, saveAttachment, saveAttachment, saveAttachments, saveAttachments, setAttachmentData, trash
-
-
-
-
Method Detail
-
getAttachments
@Deprecated @Transactional(readOnly=true) default PageResponse<Attachment> getAttachments(ContentEntityObject content, LimitedRequest pageRequest, com.google.common.base.Predicate<? super Attachment> filterPredicate)
Deprecated.Returns the current attachments under the CEO.- Parameters:
content
- the content to return attachments forpageRequest
- the pagination requestedfilterPredicate
- the predicate for filtering found attachments- Returns:
- the paginated response of Page entities
-
getFilteredAttachments
@Transactional(readOnly=true) PageResponse<Attachment> getFilteredAttachments(ContentEntityObject content, LimitedRequest pageRequest, Predicate<? super Attachment> filterPredicate)
Returns the current attachments under the CEO.- Parameters:
content
- the content to return attachments forpageRequest
- the pagination requestedfilterPredicate
- the predicate for filtering found attachments- Returns:
- the paginated response of Page entities
- Since:
- 7.0.1
-
moveAttachment
void moveAttachment(Attachment attachment, ContentEntityObject newContainer)
Moves an attachment to a differentContentEntityObject
container.- Parameters:
attachment
- The attachment to be movednewContainer
- The new ContentEntiityObject which will be parent to the attachment
-
getLatestVersionsOfAttachmentsWithAnyStatusForContainers
@Transactional(readOnly=true) List<Attachment> getLatestVersionsOfAttachmentsWithAnyStatusForContainers(Iterable<? extends ContentEntityObject> contentEntityObjects)
Returns a list of all the latest versions of attachments for all the CEOs provided (including trashed)- Parameters:
contentEntityObjects
-- Since:
- 6.12.0
-
getAttachmentDao
@Deprecated @Transactional(readOnly=true) AttachmentDao getAttachmentDao()
Deprecated.since 7.5Provides a back door to the underlyingAttachmentDao
. Obviously it's better access the DAO directly, so this is deprecated.- Specified by:
getAttachmentDao
in interfaceAttachmentManager
- Returns:
- An AttachmentDao instance
-
-