java.lang.Object | |
↳ | com.atlassian.jira.web.util.DefaultWebAttachmentManager |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create an issue's attachment.
| |||||||||||
Create an issue's attachment.
| |||||||||||
Creates a temporary attachment on disk.
| |||||||||||
Creates a temporary attachment on disk.
| |||||||||||
Creates a temporary attachment on disk.
| |||||||||||
Creates a temporary attachment on disk.
| |||||||||||
Determine whether an attachment exists and is valid (i.e.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Create an issue's attachment.
requestWrapper | eg. obtained from getMultiPartRequest() |
---|---|
remoteUser | eg. from getLoggedInUser() |
issue | Issue to associate attachment with |
fileParamName | Name of form parameter specifying filename (in requestWrapper). |
attachmentProperties | Arbitrary key:value properties to store with this attachment. Key is a String, value is an Object mappable to a PropertySet .
Eg. {"attachment.copyright.licensed" -> Boolean.TRUE} |
AttachmentException |
---|
Create an issue's attachment.
requestWrapper | eg. obtained from getMultiPartRequest() |
---|---|
remoteUser | eg. from getLoggedInUser() |
issue | Issue to associate attachment with |
fileParamName | Name of form parameter specifying filename (in requestWrapper). |
attachmentProperties | Arbitrary key:value properties to store with this attachment. Key is a String, value is an Object mappable to a PropertySet .
Eg. {"attachment.copyright.licensed" -> Boolean.TRUE} |
AttachmentException |
---|
Creates a temporary attachment on disk. These attachment generally only live for the duration of a user's session
and will also be deleted on exit of the JVM. This method will not create a link to the issue yet, but simply
copy the attachment to a temp directory in the attachments folder and store all the relevant details in the
returned TemporaryAttachment
object
requestWrapper | the wrapper containing getFile() and getFilesystemName() describing the attachment |
---|---|
fileParamName | ame of form parameter specifying filename (in requestWrapper). |
issue | The issue that this temporary attachment is for. Can be null when creating a new issue |
project | The project where the attachment is to be placed. This is used to do security checks when creating an issue and there is no issue to run a check on. Will be ignored when issue is not null. |
TemporaryAttachment
containing details about where the temp attachment was createdAttachmentException |
---|
Creates a temporary attachment on disk. These attachment generally only live for the duration of a user's session
and will also be deleted on exit of the JVM. This method will not create a link to the issue yet, but simply
copy the attachment to a temp directory in the attachments folder and store all the relevant details in the
returned TemporaryAttachment
object
stream | the input stream for the attachment. |
---|---|
fileName | the name of the attachment. |
contentType | the content type of the passed stream. |
size | the size of the passed stream. |
issue | The issue that this temporary attachment is for. Can be null when creating a new issue. |
project | The project where the attachment is to be placed. This is used to do security checks when creating an issue and there is no issue to run a check on. Will be ignored when issue is not null. |
TemporaryAttachment
containing details about where the temp attachment was createdAttachmentException |
---|
Creates a temporary attachment on disk. These attachment generally only live for the duration of a user's session
and will also be deleted on exit of the JVM. This method will not create a link to the issue yet, but simply
copy the attachment to a temp directory in the attachments folder and store all the relevant details in the
returned TemporaryAttachment
object
stream | the input stream for the attachment. |
---|---|
fileName | the name of the attachment. |
contentType | the content type of the passed stream. |
size | the size of the passed stream. |
issue | The issue that this temporary attachment is for. Can be null when creating a new issue. |
project | The project where the attachment is to be placed. This is used to do security checks when creating an issue and there is no issue to run a check on. Will be ignored when issue is not null. |
TemporaryAttachment
containing details about where the temp attachment was createdAttachmentException |
---|
Creates a temporary attachment on disk. These attachment generally only live for the duration of a user's session
and will also be deleted on exit of the JVM. This method will not create a link to the issue yet, but simply
copy the attachment to a temp directory in the attachments folder and store all the relevant details in the
returned TemporaryAttachment
object
requestWrapper | the wrapper containing getFile() and getFilesystemName() describing the attachment |
---|---|
fileParamName | ame of form parameter specifying filename (in requestWrapper). |
issue | The issue that this temporary attachment is for. Can be null when creating a new issue |
project | The project where the attachment is to be placed. This is used to do security checks when creating an issue and there is no issue to run a check on. Will be ignored when issue is not null. |
TemporaryAttachment
containing details about where the temp attachment was createdAttachmentException |
---|
Determine whether an attachment exists and is valid (i.e. non-zero and contains no invalid characters)
requestWrapper | the wrapper containing getFile() and getFilesystemName() describing the attachment |
---|---|
fileParamName | the parameter in the wrapper to use to find attachment info |
required | whether having an valid and existent attachment is mandatory |
AttachmentException |
---|