Interface AttachmentDaoInternal
- All Superinterfaces:
AttachmentDao
- All Known Implementing Classes:
AbstractDelegatingAttachmentDao
,AbstractHibernateAttachmentDao
,NonTransactionalHibernateAttachmentDao
,ReadThroughCachingAttachmentDao
,TransactionalHibernateAttachmentDao
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
Modifier and TypeMethodDescriptionReturns an iterator for the latest versions of the current persistent class.getLatestVersionsOfAttachmentsWithAnyStatusForContainers
(Iterable<? extends ContentEntityObject> contentEntityObjects) Retrieves the latest versions of all attachments for all CEOs provided (including trashed)removeAllVersionsFromServer
(Attachment attachment) Removes all versions of an attachmentMethods inherited from interface com.atlassian.confluence.pages.persistence.dao.AttachmentDao
afterMigrationFrom, countLatestVersionsOfAttachments, countLatestVersionsOfAttachmentsOnPageSince, countLatestVersionsOfAttachmentsWithAnyStatus, findAll, findAllVersions, 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 Details
-
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
-
removeAllVersionsFromServer
Removes all versions of an attachment- Parameters:
attachment
- the Attachment to be removed- Returns:
- all versions that have been removed
- Since:
- 7.14.0
-
findLatestVersionsIterator
Iterator<Attachment> findLatestVersionsIterator()Returns an iterator for the latest versions of the current persistent class.- Specified by:
findLatestVersionsIterator
in interfaceAttachmentDao
- Returns:
- Iterator to the results
- Since:
- 9.0
-