com.atlassian.jira.issue.AttachmentIndexManager |
Known Indirect Subclasses |
Provides possibility to save cache contents of archive files to database.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves index of given attachment file.
| |||||||||||
Checks if provided attachment is currently expandable.
| |||||||||||
This methods generates the index of and archive file.
| |||||||||||
Removes the index data of the specified attachment.
|
Retrieves index of given attachment file. If the index does not exist tries to obtain Attachment file from AttachmentStore and if obtained saves its index to the database.
attachment | for which index will be retrieved. |
---|---|
issue | to which attachment belongs. |
maxEntries | maximum number of entries that should be returned in |
Checks if provided attachment is currently expandable.
attachment | to be tested. |
---|
This methods generates the index of and archive file. It looks up for plugins that can handle processing file with certain extension. Then it stores given attachment index to database.
Note that after processing file other than archive its index will still be saved as an empty JSON array ("[]") in order to store information that this file was already processed so that getAttachmentContents will not call this method unnecessarily on each issue display.
file | attachment. |
---|---|
attachment | for which index provided. |
issue | to which attachment belongs. |
Removes the index data of the specified attachment.
attachment | for which index file will be removed. |
---|---|
issue | to which attachment belongs. |