public interface AttachmentIndexManager
Modifier and Type | Method and Description |
---|---|
io.atlassian.fugue.Option<AttachmentArchive> |
getAttachmentContents(Attachment attachment,
Issue issue,
int maxEntries)
Retrieves index of given attachment file.
|
boolean |
isExpandable(Attachment attachment)
Checks if provided attachment is currently expandable.
|
void |
processAttachmentAndCreateIndex(File file,
Attachment attachment,
Issue issue)
This methods generates the index of and archive file.
|
void |
removeAttachmentIndex(Attachment attachment,
Issue issue)
Removes the index data of the specified attachment.
|
void processAttachmentAndCreateIndex(File file, Attachment attachment, Issue issue)
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.io.atlassian.fugue.Option<AttachmentArchive> getAttachmentContents(Attachment attachment, Issue issue, int maxEntries)
attachment
- for which index will be retrieved.issue
- to which attachment belongs.maxEntries
- maximum number of entries that should be returned invoid removeAttachmentIndex(Attachment attachment, Issue issue)
attachment
- for which index file will be removed.issue
- to which attachment belongs.boolean isExpandable(Attachment attachment)
attachment
- to be tested.Copyright © 2002-2021 Atlassian. All Rights Reserved.