public class

AttachFile

extends AbstractCommentableIssue
implements OperationContext
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.ProjectActionSupport
           ↳ com.atlassian.jira.web.action.IssueActionSupport
             ↳ com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
               ↳ com.atlassian.jira.web.action.issue.AbstractViewIssue
                 ↳ com.atlassian.jira.web.action.issue.AbstractCommentableIssue
                   ↳ com.atlassian.jira.web.action.issue.AttachFile

Class Overview

Responsible for rendering the attach file form and converting temporary attachments to real attachments linked to an issue. This action does not actually handle uploading the attachments themselves. See AttachTemporaryFile for more details

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.issue.AbstractCommentableIssue
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.IssueActionSupport
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
AttachFile(SubTaskManager subTaskManager, FieldScreenRendererFactory fieldScreenRendererFactory, FieldManager fieldManager, ProjectRoleManager projectRoleManager, CommentService commentService, AttachmentService attachmentService, AttachmentManager attachmentManager, IssueUpdater issueUpdater, TemporaryAttachmentsMonitorLocator temporaryAttachmentsMonitorLocator, UserUtil userUtil)
Public Methods
String doDefault()
Map<StringObject> getDisplayParams()
String[] getFiletoconvert()
long getMaxSize()
String getMaxSizePretty()
String getTargetUrl()
boolean isFileToConvertChecked(Long tempFileId)
void setFiletoconvert(String[] filetoconvert)
Protected Methods
String doExecute()
void doValidation()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.issue.AbstractCommentableIssue
From class com.atlassian.jira.web.action.issue.AbstractViewIssue
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.IssueActionSupport
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.issue.customfields.OperationContext
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.action.issue.IssueSummaryAware
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Public Constructors

public AttachFile (SubTaskManager subTaskManager, FieldScreenRendererFactory fieldScreenRendererFactory, FieldManager fieldManager, ProjectRoleManager projectRoleManager, CommentService commentService, AttachmentService attachmentService, AttachmentManager attachmentManager, IssueUpdater issueUpdater, TemporaryAttachmentsMonitorLocator temporaryAttachmentsMonitorLocator, UserUtil userUtil)

Public Methods

public String doDefault ()

Throws
Exception

public Map<StringObject> getDisplayParams ()

public String[] getFiletoconvert ()

public long getMaxSize ()

public String getMaxSizePretty ()

public String getTargetUrl ()

public boolean isFileToConvertChecked (Long tempFileId)

public void setFiletoconvert (String[] filetoconvert)

Protected Methods

protected String doExecute ()

Throws
Exception

protected void doValidation ()