Interface AttachmentDaoInternal
-
- All Superinterfaces:
AttachmentDao
- All Known Implementing Classes:
AbstractDelegatingAttachmentDao
,AbstractHibernateAttachmentDao
,NonTransactionalHibernateAttachmentDao
,ReadThroughCachingAttachmentDao
,TransactionalHibernateAttachmentDao
public interface AttachmentDaoInternal extends AttachmentDao
Dao for Attachments.- Since:
- 6.12.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.pages.persistence.dao.AttachmentDao
AttachmentDao.AttachmentCopier, AttachmentDao.AttachmentMigrator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PageResponse<Attachment>
getFilteredLatestVersionsOfAttachments(ContentEntityObject ceo, LimitedRequest pageRequest, Predicate<? super Attachment> predicate)
Retrieves a paginated list of the latest version of attachments to the ceo filtered by the predicateList<Attachment>
getLatestVersionsOfAttachmentsWithAnyStatusForContainers(Iterable<? extends ContentEntityObject> contentEntityObjects)
Retrieves the latest versions of all attachments for all CEOs provided (including trashed)List<Attachment>
removeAllVersionsFromServer(Attachment attachment)
Removes all versions of an attachment-
Methods inherited from interface com.atlassian.confluence.pages.persistence.dao.AttachmentDao
afterMigrationFrom, countLatestVersionsOfAttachments, countLatestVersionsOfAttachmentsOnPageSince, countLatestVersionsOfAttachmentsWithAnyStatus, findAll, findAllVersions, findLatestVersionsIterator, getAttachment, getAttachmentData, getAttachmentData, getAttachmentStatistics, getBackingStorageType, getById, getByIds, getCopier, getDataDao, getLastAddedVersionsOf, getLatestAttachment, getLatestVersionsOfAttachments, getLatestVersionsOfAttachments, getLatestVersionsOfAttachmentsForMultipleCeos, getLatestVersionsOfAttachmentsWithAnyStatus, getMigrator, getRemappedAttachmentIds, isAttachmentPresent, moveAttachment, prepareForMigrationTo, removeAttachmentFromServer, removeAttachmentVersionFromServer, replaceAttachmentData, saveNewAttachment, saveNewAttachmentVersion, updateAttachment
-
-
-
-
Method Detail
-
getLatestVersionsOfAttachmentsWithAnyStatusForContainers
List<Attachment> getLatestVersionsOfAttachmentsWithAnyStatusForContainers(Iterable<? extends ContentEntityObject> contentEntityObjects)
Retrieves the latest versions of all attachments for all CEOs provided (including trashed)- Parameters:
contentEntityObjects
- CEOs to retrieve attachements for- Returns:
- a List of Attachment objects
- Since:
- 6.12.0
-
getFilteredLatestVersionsOfAttachments
default PageResponse<Attachment> getFilteredLatestVersionsOfAttachments(ContentEntityObject ceo, LimitedRequest pageRequest, Predicate<? super Attachment> predicate)
Retrieves a paginated list of the latest version of attachments to the ceo filtered by the predicate- Parameters:
ceo
- the content to find attachments onpageRequest
- the pagination requestpredicate
- a predicate to filter the results by- Returns:
- a paginated list of attachments
- Since:
- 7.0.1
-
removeAllVersionsFromServer
List<Attachment> removeAllVersionsFromServer(Attachment attachment)
Removes all versions of an attachment- Parameters:
attachment
- the Attachment to be removed- Returns:
- all versions that have been removed
- Since:
- 7.14.0
-
-