|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileBasedAttachmentStore
Interface for an attachment store that presents a File-based interface for accessing attachments. TODO - We should be able to remove this once we provide sufficient methods in SimpleAttachmentStore to eliminate access to attachments via files.
Method Summary | |
---|---|
com.atlassian.util.concurrent.Promise<io.atlassian.blobstore.client.api.Unit> |
deleteAttachmentContainerForIssue(Issue issue)
Delete the container for attachments for a given issue. |
File |
getAttachmentFile(Attachment attachment)
Returns the physical File for the given Attachment. |
File |
getAttachmentFile(AttachmentStore.AttachmentAdapter attachment,
File attachmentDir)
This is intended for cases where you want more control over where the attachment actually lives and you just want something to handle the look up logic for the various possible filenames an attachment can have. |
File |
getAttachmentFile(Issue issue,
Attachment attachment)
Returns the physical File for the given Attachment. |
Methods inherited from interface com.atlassian.jira.issue.attachment.SimpleAttachmentStore |
---|
delete, exists, get, move, put, put |
Methods inherited from interface com.atlassian.jira.issue.attachment.AttachmentHealth |
---|
errors |
Method Detail |
---|
File getAttachmentFile(Issue issue, Attachment attachment) throws DataAccessException
issue
- the issue the attachment belongs to.attachment
- the attachment.
DataAccessException
- on failure getting required attachment info.File getAttachmentFile(Attachment attachment) throws DataAccessException
attachment
- the attachment.
DataAccessException
- on failure getting required attachment info.File getAttachmentFile(AttachmentStore.AttachmentAdapter attachment, File attachmentDir)
attachment
- it's not an attachment but it acts like one for our purposes.attachmentDir
- the directory the attachments live in. This is different that the system-wide attachment
directory. i.e. this would "attachments/MKY/MKY-1" and not just "attachments"
com.atlassian.util.concurrent.Promise<io.atlassian.blobstore.client.api.Unit> deleteAttachmentContainerForIssue(@Nonnull Issue issue)
issue
- The issue to delete attachments for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |