com.atlassian.jira.issue.attachment.SimpleAttachmentStore |
Known Indirect Subclasses
BlobStoreAttachmentStore,
DefaultAttachmentStore,
FileBasedAttachmentStore,
FileSystemAttachmentStore,
RemoteAttachmentStore
|
Represents the most fundamental functionality of an attachment store - streams. This may eventually replace AttachmentStore.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delete the specified attachment.
| |||||||||||
Returns true if the attachment exists in the store.
| |||||||||||
Retrieve data for a given attachment.
| |||||||||||
Moves an attachment from its current issue under a new one
| |||||||||||
Store attachment data for a given attachment.
| |||||||||||
Store attachment data for a given attachment.
|
[Expand]
Inherited Methods | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.issue.attachment.AttachmentHealth
|
Delete the specified attachment.
attachment | The attachment to delete. |
---|
Returns true if the attachment exists in the store.
metaData | attachment metadata, used to determine the logical key under which to store the attachment data |
---|
AttachmentRuntimeException
in case of error.
Retrieve data for a given attachment.
metaData | attachment metadata, used to determine the logical key under which to store the attachment data |
---|---|
inputStreamProcessor | Function that processes the attachment data. This function MUST clean up upon failure of reading from the input stream, and must support being re-executed. e.g. If the function writes out to a temp file, the temp file should be created by the function. |
AttachmentRuntimeException
in case of error.
Moves an attachment from its current issue under a new one
metaData | attachment metadata, used to determine the logical key of the attachment to be moved. |
---|---|
newIssueKey | the key of the new issue under which the attachment will reside. |
AttachmentRuntimeException
in case of error.
Store attachment data for a given attachment.
metaData | attachment metadata, used to determine the logical key under which to store the attachment data |
---|---|
data | source data. It is assumed that the file will exist during the attachment process (i.e. relatively long lived). |
Store attachment data for a given attachment.
metaData | attachment metadata, used to determine the logical key under which to store the attachment data |
---|---|
data | source data. The attachment store will close this stream when it has completed. The stream will be closed once the operation is complete. |
AttachmentRuntimeException
in case of error.