java.lang.Object | |
↳ | com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Copies attachment identified by
oldAttachmentKey to be identified also by newAttachmentKey . | |||||||||||
Delete the attachment identified by provided attachmentKey.
| |||||||||||
Delete the container for attachments for a given issue.
| |||||||||||
Deletes temporary attachment created previously by
putTemporaryAttachment(java.io.InputStream, long) . | |||||||||||
Health status for this component.
| |||||||||||
Checks if attachment exists.
| |||||||||||
Retrieve data for a given attachment.
| |||||||||||
Retrieve data for a given attachment.
| |||||||||||
Returns the physical File for the given attachment key.
| |||||||||||
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.
| |||||||||||
Move attachment identified by
oldAttachmentKey to be identified by newAttachmentKey and will be not
reachable under oldAttachmentKey anymore. | |||||||||||
Moving temporary attachment created by
putTemporaryAttachment(java.io.InputStream, long) to real attachment. | |||||||||||
Store attachment data for a given attachment.
| |||||||||||
Creates temporaryAttachment in store which can be later moved to attachment via
moveTemporaryToAttachment(TemporaryAttachmentId, AttachmentKey) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.issue.attachment.AttachmentHealth
| |||||||||||
From interface
com.atlassian.jira.issue.attachment.FileBasedAttachmentStore
| |||||||||||
From interface
com.atlassian.jira.issue.attachment.StreamAttachmentStore
|
Copies attachment identified by oldAttachmentKey
to be identified also by newAttachmentKey
.
sourceAttachmentKey | attachmentKey of existing attachment which should be copied |
---|---|
newAttachmentKey | attachmentKey under which copied |
Delete the attachment identified by provided attachmentKey.
Delete the container for attachments for a given issue. For file systems, this means the attachment directory for that issue.
issue | The issue to delete attachments for. |
---|
Deletes temporary attachment created previously by putTemporaryAttachment(java.io.InputStream, long)
.
temporaryAttachmentId | id of temporary attachment |
---|
Health status for this component. Specifically the errors that cause the attachment subsystem to fail.
Checks if attachment exists.
attachmentKey | key of attachment to check for existence |
---|
Retrieve data for a given attachment.
attachmentKey | The key of attachment used to identify attachment data |
---|---|
inputStreamProcessor | Function that processes the attachment data. |
AttachmentRuntimeException
in case of error.
Retrieve data for a given attachment. Provides more information to consumer than (@link StreamAttachmentStore#getAttachment)
attachmentKey | The key of attachment used to identify attachment data |
---|---|
attachmentGetDataProcessor | Function that processes the attachment data. |
AttachmentRuntimeException
in case of error.
Returns the physical File for the given attachment key.
attachmentKey | the key of attachment |
---|
DataAccessException | on failure getting required attachment info. |
---|
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.
In practice, this is just used during Project Import
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" |
Move attachment identified by oldAttachmentKey
to be identified by newAttachmentKey
and will be not
reachable under oldAttachmentKey
anymore.
oldAttachmentKey | the old AttachmentKey |
---|---|
newAttachmentKey | the new AttachmentKey |
Moving temporary attachment created by putTemporaryAttachment(java.io.InputStream, long)
to real attachment.
temporaryAttachmentId | id of temporary attachment, returned by putTemporaryAttachment(java.io.InputStream, long) |
---|---|
destinationKey | destination key of under which attachment will be identified |
Store attachment data for a given attachment.
storeAttachmentBean | attachment metadata, used to determine the logical key under which to store the attachment data |
---|
AttachmentRuntimeException
in case of error.
Creates temporaryAttachment in store which can be later moved to attachment via moveTemporaryToAttachment(TemporaryAttachmentId, AttachmentKey)
inputStream | stream to temporary attachment data |
---|---|
size | the size of provided stream |