Class DefaultAttachmentManager
- All Implemented Interfaces:
- AttachmentManagerInternal,- AttachmentManager
AttachmentManager. The storage location of attachments
 is not defined, and is handled by the AttachmentDao.- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.since 5.2, use invalid input: '{@link #DefaultAttachmentManager(AttachmentDaoInternal, ContentEntityObjectDaoInternal<>, EventPublisher, UserPreferencesAccessor, NotificationManager, RelationManager, RetentionFeatureChecker, ContentReconciliationManager, ContentPermissionManager)'}DefaultAttachmentManager(AttachmentDaoInternal attachmentDao, ContentEntityObjectDaoInternal contentEntityObjectDao, com.atlassian.event.api.EventPublisher eventPublisher, UserPreferencesAccessor userPreferencesAccessor, NotificationManager notificationManager, RelationManager relationManager, RetentionFeatureChecker retentionFeatureChecker, ContentReconciliationManager reconciliationManager, ContentPermissionManager contentPermissionManager, PermissionManager permissionManager) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidcopyAttachment(Attachment attachment, ContentEntityObject destinationContent) Copy specified attachment to specified destination content.voidcopyAttachments(ContentEntityObject sourceContent, ContentEntityObject destinationContent) Copy the latest version of all the attachments on the sourceContent to the destinationContent.voidcopyAttachments(ContentEntityObject sourceContent, ContentEntityObject destinationContent, SaveContext saveContext) Copy the latest version of all the attachments on the sourceContent to the destinationContent.longcountAttachmentsBySpaceAndStatuses(Space space, List<ContentStatus> statuses) This method only count the latest versions of attachments by statuses in a spacelongcountAttachmentsByStatuses(List<ContentStatus> statuses) This method only count the latest versions of attachments by statusesintReturns a count of the number of latest versions of attachmentsintcountLatestVersionsOfAttachmentsOnPageSince(ContentEntityObject content, Date since) Fetches number of attachments changed on a page since a specific timestampintReturns a count of the number of latest versions of attachments (including trashed)voiddeepAttachmentDelete(AttachmentDeleteOptions attachmentDeleteOptions) Support delete multiple attachments in batchfindAttachmentForDownloadPath(String downloadPath) Find anAttachmentfor the givendownloadPath.getAllVersions(Attachment attachment) Get all versions of an attachment, starting with the current versionReturns a list of all attachments, old and new.getAttachment(long id) getAttachment(ContentEntityObject content, String attachmentFileName) Get the most recent version of an attachment with a given name for a particular page.getAttachment(ContentEntityObject content, String attachmentFileName, int version) Retrieve a named attachment from a page.Provides a back door to the underlyingAttachmentDao.getAttachmentData(Attachment attachment) Retrieve the data for attachmentgetAttachmentData(Attachment attachment, Optional<RangeRequest> range) Retrieve the specified range of data for attachmentgetAttachmentDownloadPath(ContentEntityObject content, String attachmentFileName) Get the download path for the most recent version of an attachment with the given name for some contentgetAttachments(List<Long> ids) Returns a list of attachments matching the given list of IDs.Fetches statistics about attachmentsReturns the currently active storage type.getCopier(AttachmentManagerInternal destination) Retrieves a AttachmentDao.AttachmentCopier that will allow the attachments from one data store to be copied across to another.getFilteredAttachments(ContentEntityObject content, LimitedRequest pageRequest, Predicate<? super Attachment> filterPredicate) Returns the current attachments under the CEO.getLastAddedVersionsOf(Attachment attachment) Retrieves all the last added versions for each user who has added a version of the attachment That is, if a user has added multiple versions, only the latest added version will be added to the list returned.Returns a list of only latest versions of attachments.getLatestVersionsOfAttachmentsForMultipleCeos(Iterable<? extends ContentEntityObject> contentEntityObjects) Returns a list of all the latest versions of attachments for all the CEOs providedReturns a list of only latest versions of attachments (including trashed).getLatestVersionsOfAttachmentsWithAnyStatusForContainers(Iterable<? extends ContentEntityObject> contentEntityObjects) Returns a list of all the latest versions of attachments for all the CEOs provided (including trashed)getPreviousVersions(Attachment attachment) Get all non-current versions of an attachment, not including the current version.Gets a list of remapped attachment IDs.voidmoveAttachment(Attachment attachment, ContentEntityObject newContainer) Moves an attachment to a differentContentEntityObjectcontainer.voidmoveAttachment(Attachment latestVersion, String newFileName, ContentEntityObject newContent) voidremoveAttachmentFromServer(Attachment latestVersion) Removes the attachment and all previous versionsvoidremoveAttachments(List<? extends Attachment> attachments) Removes the contents of attachments from the servervoidremoveAttachmentVersionFromServer(Attachment attachment) Removes the given version of the Attachment and its data from the server and data store.voidRemoves the given version of the Attachment and its data from the server and data store while suppressing notifications.voidremoveAttachmentWithoutNotifications(Attachment latestVersion) Removes an Attachment and its data from the server while suppressing notifications.voidrestore(Attachment attachment) Restores an attachment from trash.voidsaveAttachment(Attachment attachment, Attachment previousVersion, InputStream attachmentData) Saves an Attachment and its datavoidsaveAttachment(Attachment attachment, Attachment previousVersion, InputStream attachmentData, SaveContext saveContext) Saves an Attachment and its data, taking aSaveContextto allow more useful event handling.voidsaveAttachments(List<SavableAttachment> savableAttachments) Saves multiple attachment and their datavoidsaveAttachments(List<SavableAttachment> savableAttachments, SaveContext saveContext) Saves multiple attachment and their dataprotected final voidsaveNewAttachment(Attachment attachment, InputStream attachmentData, SaveContext saveContext) protected final voidsaveNewAttachmentVersion(Attachment attachment, Attachment previousVersion, InputStream attachmentData, SaveContext saveContext) @NonNull PageResponse<Attachment> scanFilteredAttachments(Space space, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super Attachment>... filter) Retrieves all the existing attachments associated with the instance of Confluence, while applying the specified pagination parameters to limit the number of results returned in each request.@NonNull PageResponse<Attachment> scanFilteredAttachments(List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super Attachment>... filter) Retrieves all the current attachments within the specified space, with the results limited according to the provided pagination parameters.voidsetAttachmentDao(AttachmentDaoInternal attachmentDao) voidsetAttachmentData(Attachment attachment, InputStream attachmentData) Set the data belonging to attachmentvoidtrash(Attachment attachment) Moves an attachment to the trash.
- 
Constructor Details- 
DefaultAttachmentManagerpublic DefaultAttachmentManager(AttachmentDaoInternal attachmentDao, ContentEntityObjectDaoInternal contentEntityObjectDao, com.atlassian.event.api.EventPublisher eventPublisher, UserPreferencesAccessor userPreferencesAccessor, NotificationManager notificationManager, RelationManager relationManager, RetentionFeatureChecker retentionFeatureChecker, ContentReconciliationManager reconciliationManager, ContentPermissionManager contentPermissionManager, PermissionManager permissionManager) - Since:
- 7.16
 
- 
DefaultAttachmentManagerDeprecated.since 5.2, use invalid input: '{@link #DefaultAttachmentManager(AttachmentDaoInternal, ContentEntityObjectDaoInternal<>, EventPublisher, UserPreferencesAccessor, NotificationManager, RelationManager, RetentionFeatureChecker, ContentReconciliationManager, ContentPermissionManager)'}
 
- 
- 
Method Details- 
getAttachmentGet the most recent version of an attachment with a given name for a particular page. If the supplied content parameter is not a type which contains attachments (e.g. Comment) then attempt to find the nearest owner that does have attachments.- Specified by:
- getAttachmentin interface- AttachmentManager
- Parameters:
- content- the page the attachment is attached to
- attachmentFileName- the filename of the attachment to be retrieved
- Returns:
- the appropriate attachment, or null if no such attachment exists
 
- 
getAttachmentDownloadPathDescription copied from interface:AttachmentManagerGet the download path for the most recent version of an attachment with the given name for some content- Specified by:
- getAttachmentDownloadPathin interface- AttachmentManager
- Parameters:
- content- the content the attachment is attached to
- attachmentFileName- the filename of the attachment to be retrieved
- Returns:
- the appropriate attachment download path, or null if no such attachment exists
 
- 
getAttachmentpublic Attachment getAttachment(ContentEntityObject content, String attachmentFileName, int version) Retrieve a named attachment from a page. If the supplied content parameter is not a type which contains attachments (e.g. Comment) then attempt to find the nearest owner that does have attachments.- Specified by:
- getAttachmentin interface- AttachmentManager
- Parameters:
- content- the page the attachment is attached to
- attachmentFileName- the filename of the attachment to retrieve
- version- the version of the attachment to retrieve. If you provide a version of 0 or less, you'll get the most recent version, but you should probably use #getAttachment(AbstractPage, String) instead for that purpose instead
- Returns:
- the requested attachment, or null if the requested attachment does not exist.
 
- 
saveAttachmentpublic void saveAttachment(Attachment attachment, Attachment previousVersion, InputStream attachmentData) throws IOException Description copied from interface:AttachmentManagerSaves an Attachment and its data- Specified by:
- saveAttachmentin interface- AttachmentManager
- Parameters:
- attachment- the modified version of the Attachment
- previousVersion- the original version of the Attachment (null if new)
- attachmentData- an InputStream representing the data of the Attachment
- Throws:
- IOException
 
- 
saveAttachmentpublic void saveAttachment(Attachment attachment, Attachment previousVersion, InputStream attachmentData, SaveContext saveContext) throws IOException Description copied from interface:AttachmentManagerSaves an Attachment and its data, taking aSaveContextto allow more useful event handling.- Specified by:
- saveAttachmentin interface- AttachmentManager
- Parameters:
- attachment- the modified version of the Attachment
- previousVersion- the original version of the Attachment (null if new)
- attachmentData- an InputStream representing the data of the Attachment
- saveContext- provides more information about the circumstances of the save
- Throws:
- IOException
 
- 
saveAttachmentsDescription copied from interface:AttachmentManagerSaves multiple attachment and their data- Specified by:
- saveAttachmentsin interface- AttachmentManager
- Parameters:
- savableAttachments- the modified version of the Attachment
- Throws:
- IOException
 
- 
saveAttachmentspublic void saveAttachments(List<SavableAttachment> savableAttachments, SaveContext saveContext) throws IOException Description copied from interface:AttachmentManagerSaves multiple attachment and their data- Specified by:
- saveAttachmentsin interface- AttachmentManager
- Parameters:
- savableAttachments- the modified version of the Attachment
- saveContext- provides more details about saving. If in doubt pass- DefaultSaveContext.DEFAULT.
- Throws:
- IOException
 
- 
saveNewAttachmentprotected final void saveNewAttachment(Attachment attachment, InputStream attachmentData, SaveContext saveContext) 
- 
saveNewAttachmentVersionprotected final void saveNewAttachmentVersion(Attachment attachment, Attachment previousVersion, InputStream attachmentData, SaveContext saveContext) throws IOException - Throws:
- IOException
 
- 
getPreviousVersionsDescription copied from interface:AttachmentManagerGet all non-current versions of an attachment, not including the current version. (ordered from most recent)- Specified by:
- getPreviousVersionsin interface- AttachmentManager
- Parameters:
- attachment- the attachment to get all non-current versions for.
 
- 
getLastAddedVersionsOfDescription copied from interface:AttachmentManagerRetrieves all the last added versions for each user who has added a version of the attachment That is, if a user has added multiple versions, only the latest added version will be added to the list returned. Result will be sorted with the earliest version coming first.- Specified by:
- getLastAddedVersionsOfin interface- AttachmentManager
- Parameters:
- attachment- attachment (must be the latest version)
- Returns:
- the last added versions for each user who has added a version of the attachment
 
- 
getAttachmentDataDescription copied from interface:AttachmentManagerRetrieve the data for attachment- Specified by:
- getAttachmentDatain interface- AttachmentManager
- Parameters:
- attachment- the Attachment the data belongs to
- Returns:
- InputStream representing the data
 
- 
getAttachmentDataDescription copied from interface:AttachmentManagerRetrieve the specified range of data for attachment- Specified by:
- getAttachmentDatain interface- AttachmentManager
- Parameters:
- attachment- the Attachment the data belongs to
- range- the range of data to retrieve. See- invalid reference- com.atlassian.filestore.client.api.entity.ByteRanges
- Returns:
- InputStream representing the data
 
- 
getLatestVersionsOfAttachmentsDescription copied from interface:AttachmentManagerReturns a list of only latest versions of attachments.- Specified by:
- getLatestVersionsOfAttachmentsin interface- AttachmentManager
 
- 
getLatestVersionsOfAttachmentsForMultipleCeospublic List<Attachment> getLatestVersionsOfAttachmentsForMultipleCeos(Iterable<? extends ContentEntityObject> contentEntityObjects) Description copied from interface:AttachmentManagerReturns a list of all the latest versions of attachments for all the CEOs provided- Specified by:
- getLatestVersionsOfAttachmentsForMultipleCeosin interface- AttachmentManager
- Parameters:
- contentEntityObjects-
 
- 
getLatestVersionsOfAttachmentsWithAnyStatusForContainerspublic List<Attachment> getLatestVersionsOfAttachmentsWithAnyStatusForContainers(Iterable<? extends ContentEntityObject> contentEntityObjects) Description copied from interface:AttachmentManagerInternalReturns a list of all the latest versions of attachments for all the CEOs provided (including trashed)- Specified by:
- getLatestVersionsOfAttachmentsWithAnyStatusForContainersin interface- AttachmentManagerInternal
- Parameters:
- contentEntityObjects-
 
- 
getLatestVersionsOfAttachmentsWithAnyStatusDescription copied from interface:AttachmentManagerReturns a list of only latest versions of attachments (including trashed).- Specified by:
- getLatestVersionsOfAttachmentsWithAnyStatusin interface- AttachmentManager
 
- 
getFilteredAttachmentspublic PageResponse<Attachment> getFilteredAttachments(ContentEntityObject content, LimitedRequest pageRequest, Predicate<? super Attachment> filterPredicate) Description copied from interface:AttachmentManagerInternalReturns the current attachments under the CEO.- Specified by:
- getFilteredAttachmentsin interface- AttachmentManagerInternal
- 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
 
- 
countLatestVersionsOfAttachmentsDescription copied from interface:AttachmentManagerReturns a count of the number of latest versions of attachments- Specified by:
- countLatestVersionsOfAttachmentsin interface- AttachmentManager
 
- 
countLatestVersionsOfAttachmentsWithAnyStatusDescription copied from interface:AttachmentManagerReturns a count of the number of latest versions of attachments (including trashed)- Specified by:
- countLatestVersionsOfAttachmentsWithAnyStatusin interface- AttachmentManager
 
- 
countLatestVersionsOfAttachmentsOnPageSinceDescription copied from interface:AttachmentManagerFetches number of attachments changed on a page since a specific timestamp- Specified by:
- countLatestVersionsOfAttachmentsOnPageSincein interface- AttachmentManager
- Parameters:
- content- the content object
- since- the date of earliest change
- Returns:
- the number of attachments on a content object (including trashed) changed since
 
- 
getAttachmentStatisticsDescription copied from interface:AttachmentManagerFetches statistics about attachments- Specified by:
- getAttachmentStatisticsin interface- AttachmentManager
- Returns:
- an AttachmentStatisticsDTO object with statistics about attachments such as total and current count
 
- 
deepAttachmentDeleteDescription copied from interface:AttachmentManagerSupport delete multiple attachments in batch- Specified by:
- deepAttachmentDeletein interface- AttachmentManager
- Parameters:
- attachmentDeleteOptions-
 
- 
getAttachment- Specified by:
- getAttachmentin interface- AttachmentManager
- Parameters:
- id-
- Returns:
- attachment with id
 
- 
getAttachmentsDescription copied from interface:AttachmentManagerReturns a list of attachments matching the given list of IDs. Returns an empty list if no such attachments exist. In the case where some IDs exist and some don't, only the existing Attachments will be returned.- Specified by:
- getAttachmentsin interface- AttachmentManager
- Parameters:
- ids- list of IDs to retrieve.
- Returns:
- attachments matching ids in the list
 
- 
getAllVersionsOfAttachmentsDescription copied from interface:AttachmentManagerReturns a list of all attachments, old and new.- Specified by:
- getAllVersionsOfAttachmentsin interface- AttachmentManager
 
- 
getAllVersionsDescription copied from interface:AttachmentManagerGet all versions of an attachment, starting with the current version- Specified by:
- getAllVersionsin interface- AttachmentManager
 
- 
removeAttachmentsDescription copied from interface:AttachmentManagerRemoves the contents of attachments from the server- Specified by:
- removeAttachmentsin interface- AttachmentManager
- Parameters:
- attachments- a List of Attachments
- See Also:
 
- 
removeAttachmentFromServerRemoves the attachment and all previous versions- Specified by:
- removeAttachmentFromServerin interface- AttachmentManager
- Parameters:
- latestVersion- latest version of the attachment to remove
 
- 
removeAttachmentWithoutNotificationsDescription copied from interface:AttachmentManagerRemoves an Attachment and its data from the server while suppressing notifications. This is useful when you don't want to send notifications when removing the file.- Specified by:
- removeAttachmentWithoutNotificationsin interface- AttachmentManager
 
- 
removeAttachmentVersionFromServerDescription copied from interface:AttachmentManagerRemoves the given version of the Attachment and its data from the server and data store.In case of the given attachment being the latest version, the previous version (if any) gets removed and the given object impersonates the previous version as the latest version. - Specified by:
- removeAttachmentVersionFromServerin interface- AttachmentManager
- Parameters:
- attachment- the Attachment to remove
 
- 
removeAttachmentVersionFromServerWithoutNotificationsDescription copied from interface:AttachmentManagerRemoves the given version of the Attachment and its data from the server and data store while suppressing notifications. This is useful when you don't want to send notifications when removing the file.In case of the given attachment being the latest version, the previous version (if any) gets removed and the given object impersonates the previous version as the latest version. - Specified by:
- removeAttachmentVersionFromServerWithoutNotificationsin interface- AttachmentManager
- Parameters:
- attachment- the Attachment to remove
 
- 
moveAttachmentpublic void moveAttachment(Attachment latestVersion, String newFileName, ContentEntityObject newContent) - Specified by:
- moveAttachmentin interface- AttachmentManager
- Parameters:
- latestVersion- The attachment to be moved
- newFileName- New name of the file
- newContent- The new contentEntiityObject which will be parent to the attachment
 
- 
moveAttachmentDescription copied from interface:AttachmentManagerInternalMoves an attachment to a differentContentEntityObjectcontainer.- Specified by:
- moveAttachmentin interface- AttachmentManagerInternal
- Parameters:
- attachment- The attachment to be moved
- newContainer- The new ContentEntiityObject which will be parent to the attachment
 
- 
copyAttachmentspublic void copyAttachments(ContentEntityObject sourceContent, ContentEntityObject destinationContent, SaveContext saveContext) throws IOException Description copied from interface:AttachmentManagerCopy the latest version of all the attachments on the sourceContent to the destinationContent.- Specified by:
- copyAttachmentsin interface- AttachmentManager
- Parameters:
- sourceContent- the content with attachments to be copied.
- destinationContent- the content to copy the attachments to.
- saveContext- details the circumstances under which the attachments are being copied.
- Throws:
- IOException- if there are problems reading or writing attachment data during the copy.
 
- 
copyAttachmentspublic void copyAttachments(ContentEntityObject sourceContent, ContentEntityObject destinationContent) throws IOException Description copied from interface:AttachmentManagerCopy the latest version of all the attachments on the sourceContent to the destinationContent.- Specified by:
- copyAttachmentsin interface- AttachmentManager
- Parameters:
- sourceContent- the content with attachments to be copied.
- destinationContent- the content to copy the attachments to.
- Throws:
- IOException- if there are problems reading or writing attachment data during the copy.
 
- 
copyAttachmentpublic void copyAttachment(Attachment attachment, ContentEntityObject destinationContent) throws IOException Description copied from interface:AttachmentManagerCopy specified attachment to specified destination content.- Specified by:
- copyAttachmentin interface- AttachmentManager
- Parameters:
- attachment- the attachment
- destinationContent- the destination
- Throws:
- IOException
 
- 
setAttachmentDatapublic void setAttachmentData(Attachment attachment, InputStream attachmentData) throws AttachmentDataExistsException Description copied from interface:AttachmentManagerSet the data belonging to attachmentThis method can be used when there is missing data for an Attachment (e.g. during imports) and the data needs to be set manually. - Specified by:
- setAttachmentDatain interface- AttachmentManager
- Parameters:
- attachment- Attachment the data belongs to
- attachmentData- the data to be saved
- Throws:
- AttachmentDataExistsException- if data for attachment already exists
 
- 
getCopierDescription copied from interface:AttachmentManagerInternalRetrieves a AttachmentDao.AttachmentCopier that will allow the attachments from one data store to be copied across to another.- Specified by:
- getCopierin interface- AttachmentManagerInternal
- Parameters:
- destination- the AttachmentManager the data is being copied to
- Returns:
- an AttachmentCopier object
 
- 
countAttachmentsByStatusesDescription copied from interface:AttachmentManagerInternalThis method only count the latest versions of attachments by statuses- Specified by:
- countAttachmentsByStatusesin interface- AttachmentManagerInternal
- Parameters:
- statuses- list of- ContentStatus
- Returns:
- since 9.2.5
 
- 
countAttachmentsBySpaceAndStatusesDescription copied from interface:AttachmentManagerInternalThis method only count the latest versions of attachments by statuses in a space- Specified by:
- countAttachmentsBySpaceAndStatusesin interface- AttachmentManagerInternal
- Parameters:
- space- the space which the attachments belong to
- statuses- list of- ContentStatus
- Returns:
- since 9.2.5
 
- 
scanFilteredAttachmentspublic @NonNull PageResponse<Attachment> scanFilteredAttachments(Space space, List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super Attachment>... filter) Description copied from interface:AttachmentManagerInternalRetrieves all the existing attachments associated with the instance of Confluence, while applying the specified pagination parameters to limit the number of results returned in each request.- Specified by:
- scanFilteredAttachmentsin interface- AttachmentManagerInternal
- Parameters:
- space- the space to locate attachments in
- statuses- list of content status which we are interested to fetch
- pageRequest- the pagination requested
- filter- a Predicate to apply to the results before returning
- Returns:
- the paginated response of Attachment entities in the given space
 
- 
scanFilteredAttachmentspublic @NonNull PageResponse<Attachment> scanFilteredAttachments(List<ContentStatus> statuses, LimitedRequest pageRequest, Predicate<? super Attachment>... filter) Description copied from interface:AttachmentManagerInternalRetrieves all the current attachments within the specified space, with the results limited according to the provided pagination parameters.- Specified by:
- scanFilteredAttachmentsin interface- AttachmentManagerInternal
- Parameters:
- statuses- list of content status which we are interested to fetch
- pageRequest- the pagination requested
- filter- a Predicate to apply to the results before returning
- Returns:
- the paginated response of Attachment entities in any space
 
- 
getAttachmentDaoDescription copied from interface:AttachmentManagerInternalProvides a back door to the underlyingAttachmentDao. Obviously it's better access the DAO directly, so this is deprecated.- Specified by:
- getAttachmentDaoin interface- AttachmentManagerInternal
 
- 
setAttachmentDao
- 
getBackingStorageTypeDescription copied from interface:AttachmentManagerReturns the currently active storage type.- Specified by:
- getBackingStorageTypein interface- AttachmentManager
- See Also:
 
- 
findAttachmentForDownloadPathDescription copied from interface:AttachmentManagerFind anAttachmentfor the givendownloadPath.The path must at least contain the segment produced by Attachment.getDownloadPath(), that is /download/attachments/<contentId>/<fileName> where <contentId> identifies a validContentEntityObjectand <fileName> identifies a validAttachmentattached to thatContentEntityObject.- Specified by:
- findAttachmentForDownloadPathin interface- AttachmentManager
- Parameters:
- downloadPath- the download path identifying an- Attachment.This value is expected to be url encoded, with spaces converted to %20 instead of a '+'
- Returns:
- maybe the attachment if the given download path matches the criteria as described above and the referenced objects are known to the system
- See Also:
 
- 
getRemappedAttachmentIdsDescription copied from interface:AttachmentManagerGets a list of remapped attachment IDs. The key is the old ID and the value is the new ID.- Specified by:
- getRemappedAttachmentIdsin interface- AttachmentManager
- Returns:
- A map where the key is the original ID and the value is the new ID.
 
- 
trashDescription copied from interface:AttachmentManagerMoves an attachment to the trash.- Specified by:
- trashin interface- AttachmentManager
- Parameters:
- attachment- the attachment to be trashed
 
- 
restoreDescription copied from interface:AttachmentManagerRestores an attachment from trash.- Specified by:
- restorein interface- AttachmentManager
- Parameters:
- attachment- the attachment to restore
 
 
-