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

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.AbstractCommentableAssignableIssue
                                      extended by com.atlassian.jira.web.action.issue.EditIssue
                                          extended by com.atlassian.jira.web.action.issue.ExtendedEditIssue
All Implemented Interfaces:
com.atlassian.jira.issue.customfields.OperationContext, com.atlassian.jira.util.ErrorCollection, com.atlassian.jira.util.I18nHelper, com.atlassian.jira.web.action.issue.Assignable, com.atlassian.jira.web.action.issue.IssueSummaryAware, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class ExtendedEditIssue
extends com.atlassian.jira.web.action.issue.EditIssue

FQCN : com.atlassian.jira.web.action.issue.ExtendedEditIssue

Since:
3.10.1.30 Description : Extends EditIssue in order to perform an Issue Validation on Edit Action with validator specified in Workflow.
Author:
Kaamelot
See Also:
Serialized Form

Field Summary
protected  com.atlassian.jira.issue.IssueFactory issueFactory
           
 
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
ExtendedEditIssue(com.atlassian.jira.issue.link.IssueLinkManager _issueLinkManager, com.atlassian.jira.config.SubTaskManager _subTaskManager, com.atlassian.jira.config.ConstantsManager _constantsManager, com.atlassian.jira.issue.fields.layout.field.FieldLayoutManager _fieldLayoutManager, com.atlassian.jira.workflow.WorkflowManager _workflowManager, com.atlassian.jira.issue.fields.screen.FieldScreenRendererFactory _fieldScreenRendererFactory, com.atlassian.jira.bc.issue.comment.CommentService _commentService, com.atlassian.jira.issue.IssueFactory _issueFactory)
           
 
Method Summary
protected  void analyseException(java.lang.Throwable e)
          Analyse Exception in order to raise Errors to GUI
protected  java.lang.String doExecute()
          Extend doExecute() in order to : - launch Issue Validation - extract possible InvalidInputException
protected  boolean extractInvalidInputException(java.lang.Throwable t)
          Extract InvalidInputException and push Error by Field Id.
protected  void updateIssueFromFieldValuesHolder()
          Update Issue From FieldValuesHolder
protected  void validateIssue()
          Validate Issue.
 
Methods inherited from class com.atlassian.jira.web.action.issue.EditIssue
checkAttachments, doDefault, doValidation, getConstantsManager, getCustomFieldValuesHolder, getFieldLayoutManager, getFieldScreenRenderer, getFieldScreenRenderTabs, getIgnoreFieldIds, getIssueOperation, getSelectedTab, getTabsWithErrors, getWorkflowManager
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractCommentableAssignableIssue
assigneeChanged, getAssignee, getAssignIn, hasAssigneePermission, setAssignee
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractCommentableIssue
createComment, doCommentValidation, getComment, getCommentLevel, getFieldScreenRendererLayoutItemForField, getFieldScreenRendererWithAllFields, getGroupLevel, getGroupLevels, 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, 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, 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.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

issueFactory

protected com.atlassian.jira.issue.IssueFactory issueFactory
Constructor Detail

ExtendedEditIssue

public ExtendedEditIssue(com.atlassian.jira.issue.link.IssueLinkManager _issueLinkManager,
                         com.atlassian.jira.config.SubTaskManager _subTaskManager,
                         com.atlassian.jira.config.ConstantsManager _constantsManager,
                         com.atlassian.jira.issue.fields.layout.field.FieldLayoutManager _fieldLayoutManager,
                         com.atlassian.jira.workflow.WorkflowManager _workflowManager,
                         com.atlassian.jira.issue.fields.screen.FieldScreenRendererFactory _fieldScreenRendererFactory,
                         com.atlassian.jira.bc.issue.comment.CommentService _commentService,
                         com.atlassian.jira.issue.IssueFactory _issueFactory)
Method Detail

updateIssueFromFieldValuesHolder

protected void updateIssueFromFieldValuesHolder()
                                         throws java.lang.Exception
Update Issue From FieldValuesHolder

Throws:
java.lang.Exception

doExecute

protected java.lang.String doExecute()
                              throws java.lang.Exception
Extend doExecute() in order to : - launch Issue Validation - extract possible InvalidInputException

Overrides:
doExecute in class com.atlassian.jira.web.action.issue.EditIssue
Throws:
java.lang.Exception

analyseException

protected void analyseException(java.lang.Throwable e)
Analyse Exception in order to raise Errors to GUI

Parameters:
e -

validateIssue

protected void validateIssue()
                      throws java.lang.Exception
Validate Issue. Validation is delegated to ExtendedIssueManager

Throws:
java.lang.Exception

extractInvalidInputException

protected boolean extractInvalidInputException(java.lang.Throwable t)
Extract InvalidInputException and push Error by Field Id.

Parameters:
t - Throwable to analyse


Copyright © 2007-2008 Kaamelot Plugins. All Rights Reserved.