com.atlassian.jira.issue.attachment.TemporaryWebAttachmentManager |
![]()
|
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
Manager for temporary web attachments.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Removes all remaining temporary attachments which were created with given form token.
| |||||||||||
Converts temporary attachments created by
createTemporaryWebAttachment(InputStream, String, String, long, Either
into real attachments. | |||||||||||
Creates new temporary attachment that may be later converted into real attachment.
| |||||||||||
Gets temporary web attachment by string ID, which was produced by
getStringId() . | |||||||||||
Gets all temporary attachments associated with given form token.
| |||||||||||
Updates existing temporary attachment object to new state.
|
Removes all remaining temporary attachments which were created with given form token.
formToken | form toke used to identify temporary attachments to remove |
---|
Converts temporary attachments created by createTemporaryWebAttachment(InputStream, String, String, long, Either
into real attachments.
user | user which is performing conversion |
---|---|
issue | target issue for new attachments |
temporaryAttachmentsIds | temporary attachments string IDs. |
Creates new temporary attachment that may be later converted into real attachment. This attachment will be put to
internal store and can be later retrieved using getTemporaryWebAttachment(String)
.
stream | attachment content |
---|---|
fileName | name of attachment file |
contentType | content type |
size | size of attachment |
target | target for attachment - issue or project (in case if temporary attachment will be converted into real attachment during issue creation) |
formToken | token representing attachment group (usually a token for a web form) |
user | the author of attachment |
Gets temporary web attachment by string ID, which was produced by getStringId()
.
temporaryAttachmentId | string attachment ID |
---|
Gets all temporary attachments associated with given form token.
formToken | temporary attachments group token used during temporary attachments creation |
---|
TemporaryWebAttachment
objects
Updates existing temporary attachment object to new state. This may be useful to change attachment file name (for example if user may provide custom name).
temporaryAttachmentId | string id of temporary attachment to update |
---|---|
updated | object that holds new values for the temporary attachment |
NoSuchElementException |
---|