java.lang.Object | |
↳ | com.atlassian.jira.issue.attachment.store.DualSendingAttachmentStore |
Performs dual sending operation to two streams. It will keep consistency on given primary store and not necessarily on secondary. Sending to secondary store actions will get performed in background thread and any error will be ignored. All actions when executed without exceptions are guarantee to be successfully executed against primary store.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Copies attachment identified by
oldAttachmentKey to be identified also by newAttachmentKey . | |||||||||||
Delete the attachment identified by provided attachmentKey.
| |||||||||||
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.
| |||||||||||
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.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.
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.
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 |