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 TypeMethodDescriptionlongcountLatestVersionsOfAttachmentsBySpaceAndStatuses(Space space, List<ContentStatus> statuses) Returns the number of the latest versions of attachments by their statuses in a spacelongReturns the number of the latest versions of attachments by their statusesReturns 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 attachmentscanFilteredAttachments(Space space, List<ContentStatus> statuses, LimitedRequest pageRequest) scanFilteredAttachments(List<ContentStatus> statuses, LimitedRequest pageRequest) Methods 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:
findLatestVersionsIteratorin interfaceAttachmentDao- Returns:
- Iterator to the results
- Since:
- 9.0
-
countLatestVersionsOfAttachmentsByStatuses
Returns the number of the latest versions of attachments by their statuses- Parameters:
statuses- list of statuses- Returns:
- the count
- Since:
- 9.2.5
-
countLatestVersionsOfAttachmentsBySpaceAndStatuses
Returns the number of the latest versions of attachments by their statuses in a space- Parameters:
space- space which the attachments belong tostatuses- list of statuses- Returns:
- the count
- Since:
- 9.2.5
-
scanFilteredAttachments
List<Attachment> scanFilteredAttachments(Space space, List<ContentStatus> statuses, LimitedRequest pageRequest) - Parameters:
space- space which the attachments belong tostatuses- list of statusespageRequest- the page being requested- Returns:
- the paginated list of
Attachmententities in the given space - Since:
- 9.2.5
-
scanFilteredAttachments
- Parameters:
statuses- list of statusespageRequest- the page being requested- Returns:
- the paginated list of
Attachmententities in the given space - Since:
- 9.2.5
-