TemporaryWebAttachmentManager
instead. Since v6.4.@Deprecated public interface WebAttachmentManager
AttachmentManager
Modifier and Type | Method and Description |
---|---|
ChangeItemBean |
createAttachment(webwork.multipart.MultiPartRequestWrapper requestWrapper,
ApplicationUser remoteUser,
org.ofbiz.core.entity.GenericValue issue,
String fileParamName,
Map<String,Object> attachmentProperties)
Deprecated.
Use
#createAttachment(webwork.multipart.MultiPartRequestWrapper, com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue, String, java.util.Map) instead. Since v5.0. |
ChangeItemBean |
createAttachment(webwork.multipart.MultiPartRequestWrapper requestWrapper,
ApplicationUser remoteUser,
Issue issue,
String fileParamName,
Map<String,Object> attachmentProperties)
Deprecated.
|
TemporaryAttachment |
createTemporaryAttachment(InputStream stream,
String fileName,
String contentType,
long size,
Issue issue,
Project project)
|
TemporaryAttachment |
createTemporaryAttachment(InputStream stream,
String fileName,
String contentType,
long size,
Issue issue,
Project project,
String formToken)
Deprecated.
|
TemporaryAttachment |
createTemporaryAttachment(webwork.multipart.MultiPartRequestWrapper requestWrapper,
String fileParamName,
Issue issue,
Project project)
|
TemporaryAttachment |
createTemporaryAttachment(webwork.multipart.MultiPartRequestWrapper requestWrapper,
String fileParamName,
Issue issue,
Project project,
String formToken)
Deprecated.
|
boolean |
validateAttachmentIfExists(webwork.multipart.MultiPartRequestWrapper requestWrapper,
String fileParamName,
boolean required)
Deprecated.
This method doesn't have replacement as it is not needed anymore in the new API.
See
instead . Since v6.4. |
@Deprecated ChangeItemBean createAttachment(webwork.multipart.MultiPartRequestWrapper requestWrapper, ApplicationUser remoteUser, Issue issue, String fileParamName, Map<String,Object> attachmentProperties) throws AttachmentException
TemporaryWebAttachmentManager.createTemporaryWebAttachment(java.io.InputStream, java.lang.String, java.lang.String, long, com.atlassian.fugue.Either<com.atlassian.jira.issue.Issue, com.atlassian.jira.project.Project>, java.lang.String, com.atlassian.jira.user.ApplicationUser)
instead. Since v6.4.requestWrapper
- eg. obtained from ServletActionContext.getMultiPartRequest()
remoteUser
- eg. from JiraWebActionSupport.getLoggedInUser()
issue
- Issue to associate attachment withfileParamName
- 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
@Deprecated ChangeItemBean createAttachment(webwork.multipart.MultiPartRequestWrapper requestWrapper, ApplicationUser remoteUser, org.ofbiz.core.entity.GenericValue issue, String fileParamName, Map<String,Object> attachmentProperties) throws AttachmentException, org.ofbiz.core.entity.GenericEntityException
#createAttachment(webwork.multipart.MultiPartRequestWrapper, com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue, String, java.util.Map)
instead. Since v5.0.requestWrapper
- eg. obtained from ServletActionContext.getMultiPartRequest()
remoteUser
- eg. from JiraWebActionSupport.getLoggedInUser()
issue
- Issue to associate attachment withfileParamName
- 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
org.ofbiz.core.entity.GenericEntityException
@Deprecated TemporaryAttachment createTemporaryAttachment(webwork.multipart.MultiPartRequestWrapper requestWrapper, String fileParamName, Issue issue, Project project, String formToken) throws AttachmentException
TemporaryWebAttachmentManager.createTemporaryWebAttachment(java.io.InputStream, java.lang.String, java.lang.String, long, com.atlassian.fugue.Either<com.atlassian.jira.issue.Issue, com.atlassian.jira.project.Project>, java.lang.String, com.atlassian.jira.user.ApplicationUser)
instead. Since v6.4.TemporaryAttachment
objectrequestWrapper
- the wrapper containing getFile() and getFilesystemName() describing the attachmentfileParamName
- ame of form parameter specifying filename (in requestWrapper).issue
- The issue that this temporary attachment is for. Can be null when creating a new issueproject
- 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.formToken
- TemporaryAttachment
containing details about where the temp attachment was createdAttachmentException
- if there was an error saving the temporary attachment.@Deprecated TemporaryAttachment createTemporaryAttachment(webwork.multipart.MultiPartRequestWrapper requestWrapper, String fileParamName, Issue issue, Project project) throws AttachmentException
TemporaryAttachment
objectrequestWrapper
- the wrapper containing getFile() and getFilesystemName() describing the attachmentfileParamName
- ame of form parameter specifying filename (in requestWrapper).issue
- The issue that this temporary attachment is for. Can be null when creating a new issueproject
- 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
- if there was an error saving the temporary attachment.@Deprecated TemporaryAttachment createTemporaryAttachment(InputStream stream, String fileName, String contentType, long size, Issue issue, Project project, String formToken) throws AttachmentException
TemporaryWebAttachmentManager.createTemporaryWebAttachment(java.io.InputStream, java.lang.String, java.lang.String, long, com.atlassian.fugue.Either<com.atlassian.jira.issue.Issue, com.atlassian.jira.project.Project>, java.lang.String, com.atlassian.jira.user.ApplicationUser)
instead. Since v6.4.TemporaryAttachment
objectstream
- 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.formToken
- TemporaryAttachment
containing details about where the temp attachment was createdAttachmentException
- if there was an error saving the temporary attachment.@Deprecated TemporaryAttachment createTemporaryAttachment(InputStream stream, String fileName, String contentType, long size, Issue issue, Project project) throws AttachmentException
createTemporaryAttachment(java.io.InputStream, String, String, long, com.atlassian.jira.issue.Issue, com.atlassian.jira.project.Project, String)
TemporaryAttachment
objectstream
- 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
- if there was an error saving the temporary attachment.@Deprecated boolean validateAttachmentIfExists(webwork.multipart.MultiPartRequestWrapper requestWrapper, String fileParamName, boolean required) throws AttachmentException
instead
. Since v6.4.requestWrapper
- the wrapper containing getFile() and getFilesystemName() describing the attachmentfileParamName
- the parameter in the wrapper to use to find attachment inforequired
- whether having an valid and existent attachment is mandatoryAttachmentException
- if the attachment is zero-length, contains invalid characters, or simply doesn't exist
when requiredCopyright © 2002-2017 Atlassian. All Rights Reserved.