com.atlassian.jira.web.action.issue
Class AttachFile

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.jira.web.action.ProjectActionSupport
                  extended by com.atlassian.jira.web.action.IssueActionSupport
                      extended by com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
                          extended by com.atlassian.jira.web.action.issue.AbstractViewIssue
                              extended by com.atlassian.jira.web.action.issue.AbstractCommentableIssue
                                  extended by com.atlassian.jira.web.action.issue.AttachFile
All Implemented Interfaces:
OperationContext, ErrorCollection, I18nHelper, IssueSummaryAware, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class AttachFile
extends AbstractCommentableIssue
implements OperationContext

See Also:
Serialized Form

Field Summary
protected  ApplicationProperties applicationProperties
           
protected  IssueUpdater issueUpdater
           
static String MODE_MULTIPLE
           
static String MODE_SINGLE
           
protected  WebAttachmentManager webAttachmentManager
           
 
Fields inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
id
 
Fields inherited from class com.atlassian.jira.web.action.IssueActionSupport
attachmentManager
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, savedFilters, selectedProject
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface com.atlassian.jira.util.I18nHelper
DEFAULT_RESOURCE_BUNDLE
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
AttachFile(IssueLinkManager issueLinkManager, SubTaskManager subTaskManager, WebAttachmentManager webAttachmentManager, IssueUpdater issueUpdater, ApplicationProperties applicationProperties, FieldManager fieldManager, FieldScreenRendererFactory fieldScreenRendererFactory, ProjectRoleManager projectRoleManager, CommentService commentService, AttachmentService attachmentService)
           
 
Method Summary
 String doDefault()
           
protected  String doExecute()
           
 String doScreenshot()
           
protected  void doValidation()
           
 String getAttachmentFieldDescription()
           
protected  webwork.multipart.MultiPartRequestWrapper getMultipart()
           
 String getNextScreenshotName()
           
 int getNextScreenshotNumber()
           
 List getParamNames()
           
 boolean isAbleToAttach()
           
 boolean isAttachScreenshot()
           
 void setAttachScreenshot(boolean attachScreenshot)
           
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractCommentableIssue
createComment, doCommentValidation, getComment, getCommentLevel, getCustomFieldValuesHolder, getFieldScreenRendererLayoutItemForField, getFieldScreenRendererWithAllFields, getGroupLevel, getGroupLevels, getIssueOperation, getRoleLevels, setComment, setCommentLevel, setCustomFieldValuesHolder, setGroupLevel
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractViewIssue
getAttachments, getIssueLinkManager, getLinkCollection, getLinkCollection, getPossibleComponents, getPossibleVersions, getPossibleVersionsReleasedFirst, getSubTaskManager, isSubTask, isSubTaskCreatable
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
getDefaultSecurityLevel, getId, getIssue, getIssueObject, getIssueObjectNoSecurityCheck, getIssuePath, getKey, getLayoutBean, getProject, getSecurityLevel, getSecurityLevel, getSecurityLevelName, getSecurityLevels, getSecurityLevels, getSummaryIssue, getViewIssueKey, getViewUrl, isEditable, isEditable, isHasEditIssuePermission, isIssueExists, isWorkflowAllowsEdit, redirectToView, resetIssue, setId, setIssue, setKey, setViewIssueKey
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getSearchRequest, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue, setSearchRequest, updateSearchRequest
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUserFullName, getVersionManager, getWebworkStack, getWebworkStack, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isSystemAdministrator, isUserExists, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.customfields.OperationContext
getCustomFieldValuesHolder, getIssueOperation
 
Methods inherited from interface com.atlassian.jira.web.action.issue.IssueSummaryAware
getRemoteUser
 
Methods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Field Detail

webAttachmentManager

protected final transient WebAttachmentManager webAttachmentManager

issueUpdater

protected final transient IssueUpdater issueUpdater

applicationProperties

protected final transient ApplicationProperties applicationProperties

MODE_MULTIPLE

public static final String MODE_MULTIPLE
See Also:
Constant Field Values

MODE_SINGLE

public static final String MODE_SINGLE
See Also:
Constant Field Values
Constructor Detail

AttachFile

public AttachFile(IssueLinkManager issueLinkManager,
                  SubTaskManager subTaskManager,
                  WebAttachmentManager webAttachmentManager,
                  IssueUpdater issueUpdater,
                  ApplicationProperties applicationProperties,
                  FieldManager fieldManager,
                  FieldScreenRendererFactory fieldScreenRendererFactory,
                  ProjectRoleManager projectRoleManager,
                  CommentService commentService,
                  AttachmentService attachmentService)
Method Detail

getParamNames

public List getParamNames()

doDefault

public String doDefault()
                 throws Exception
Overrides:
doDefault in class webwork.action.ActionSupport
Throws:
Exception

doValidation

protected void doValidation()
Overrides:
doValidation in class AbstractCommentableIssue

getMultipart

protected webwork.multipart.MultiPartRequestWrapper getMultipart()

doScreenshot

public String doScreenshot()

doExecute

protected String doExecute()
                    throws Exception
Overrides:
doExecute in class webwork.action.ActionSupport
Throws:
Exception

getAttachmentFieldDescription

public String getAttachmentFieldDescription()
                                     throws FieldLayoutStorageException
Throws:
FieldLayoutStorageException

isAttachScreenshot

public boolean isAttachScreenshot()

setAttachScreenshot

public void setAttachScreenshot(boolean attachScreenshot)

getNextScreenshotName

public String getNextScreenshotName()

getNextScreenshotNumber

public int getNextScreenshotNumber()
                            throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

isAbleToAttach

public boolean isAbleToAttach()


Copyright © 2002-2008 Atlassian. All Rights Reserved.