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

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.MoveIssue
All Implemented Interfaces:
ErrorCollection, I18nHelper, Assignable, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
MoveIssueUpdateFields, MoveIssueUpdateWorkflow, MoveSubTask

public class MoveIssue
extends AbstractCommentableAssignableIssue

See Also:
Serialized Form

Field Summary
protected  ConstantsManager constantsManager
           
static java.lang.String SUBTASK_STATUS_PREFIX
           
 
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, savedFilters
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request
 
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
MoveIssue(IssueLinkManager issueLinkManager, SubTaskManager subTaskManager, ConstantsManager constantsManager, WorkflowManager workflowManager, FieldLayoutManager fieldLayoutManager)
           
 
Method Summary
protected  boolean assigneeChanged()
           
 java.lang.String doDefault()
           
protected  java.lang.String doExecute()
           
protected  void doValidation()
           
 java.util.Collection getAllowedProjects()
           
 org.ofbiz.core.entity.GenericValue getAssignIn()
           
 java.lang.Long getBeanTargetPid()
           
 java.lang.String getBeanTargetStatusId()
           
 java.lang.String getBeanTargetType()
           
 ConstantsManager getConstantsManager()
           
 java.lang.String getCurrentIssueType()
           
 org.ofbiz.core.entity.GenericValue getCurrentStatusGV()
           
 JiraWorkflow getCurrentWorkflow()
           
protected  FieldLayoutManager getFieldLayoutManager()
           
 java.lang.String getMethod()
           
 MoveIssueBean getMoveIssueBean()
           
 java.lang.Long getOldSecurity()
           
 java.lang.String getPrefixTaskStatusId(java.lang.String taskTypeId, java.lang.String taskStatusId)
           
 java.util.Collection getStandardIssueTypes()
           
 boolean getStringSet(org.ofbiz.core.entity.GenericValue gv, java.lang.String value)
           
 java.util.Collection getSubTasks()
           
 java.lang.String getSubTaskTargetStatus(java.lang.String taskTypeId, java.lang.String taskStatusId)
           
 java.util.Collection getSubTaskTypesUsed()
           
 java.lang.String getTargetIssueType()
           
 java.lang.Long getTargetPid()
           
 org.ofbiz.core.entity.GenericValue getTargetProject()
           
 java.lang.String getTargetStatusId()
           
 java.util.List getTargetVisibleFieldLayoutItems()
           
 JiraWorkflow getTargetWorkflow()
           
 java.util.Collection getTargetWorkflowStatuses(java.lang.String issueTypeId)
           
 java.util.Collection getTaskInvalidStatuses(java.lang.String typeId)
           
 java.util.Collection getTasksWithStatus(java.lang.String invalidStatusId)
           
 JiraWorkflow getWorkflowForType(java.lang.Long projectId, java.lang.String issueTypeId)
           
protected  WorkflowManager getWorkflowManager()
           
 boolean isHasAssignPermission()
           
 boolean isHasSubTasks()
           
 boolean isIssueStatusValid()
           
 boolean isOldAssigneeAssignable()
           
 boolean isRequired(java.lang.String fieldName)
           
 boolean isStatusChangeRequired()
           
 boolean isSubTask()
          Determines whether the issue is a sub task - i.e.
 boolean isTargetAssigneeAssignable()
           
 boolean isTaskStatusChangeRequired()
           
 boolean isTaskStatusValid(java.lang.String typeId, java.lang.String statusId)
           
 boolean isWorkflowMatch(java.lang.String currentIssueTypeId, java.lang.String targetIssueTypeId)
           
protected  void migrateIssueToWorkflow(org.ofbiz.core.entity.GenericValue issue, java.lang.String targetType, JiraWorkflow targetWorkflow, org.ofbiz.core.entity.GenericValue targetStatus)
           
 void setBeanTargetPid(java.lang.Long targetPid)
           
 void setBeanTargetStatusId(java.lang.String targetStatusId)
           
 void setBeanTargetType(java.lang.String targetIssueType)
           
 void setMethod(java.lang.String method)
           
protected  void validateAttachmentMove()
           
protected  void validateCreateIssue()
           
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractCommentableAssignableIssue
getAssignee, hasAssigneePermission, setAssignee
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractCommentableIssue
getComment, getCommentLevel, getCommentLevels, setComment, setCommentLevel
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractViewIssue
getAttachments, getIssueLinkManager, getLinkCollection, getPossibleComponents, getPossibleVersions, getPossibleVersionsReleasedFirst, getSubTaskManager, isScreenshotAttachable, isSubTaskCreatable
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
getDefaultSecurityLevel, getId, getIssue, getIssuePath, getKey, getProject, getSecurityLevel, getSecurityLevel, getSecurityLevelName, getSecurityLevels, getSecurityLevels, getViewIssueKey, getViewUrl, isEditable, isEditable, isIssueExists, redirectToView, resetIssue, setId, setIssue, setKey, setViewIssueKey
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
getActionManager, getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getSearchRequest, getUrlEncoded, getWorkflow, isCustomFieldHidden, isFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSavedFilters, getSelectedProject, isEnterprise, setSelectedProject, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, getAssignableUsers, getAssignableUsers, getCachedGroups, getColumnViewHtml, getComponentManager, getCustomFieldHtml, getCustomFieldXML, getDefaultAssignee, getDefaultResourceBundle, getField, getLocale, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getText, getText, getText, getText, getText, getUserFullName, getUserPreferences, getVersionManager, isDefaultAssignee, isDefaultAssignee, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, processDefaultAssignee, processDefaultAssignee, processDefaultAssignee, setReturnUrl
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, getLocaleUtils, getResult, getUnescapedText, getWatcherManager, hasAnyErrors, isIndexing
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, addIllegalArgumentException, 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.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Field Detail

SUBTASK_STATUS_PREFIX

public static final java.lang.String SUBTASK_STATUS_PREFIX
See Also:
Constant Field Values

constantsManager

protected final ConstantsManager constantsManager
Constructor Detail

MoveIssue

public MoveIssue(IssueLinkManager issueLinkManager,
                 SubTaskManager subTaskManager,
                 ConstantsManager constantsManager,
                 WorkflowManager workflowManager,
                 FieldLayoutManager fieldLayoutManager)
Method Detail

doExecute

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

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Overrides:
doDefault in class AbstractCommentableAssignableIssue
Throws:
java.lang.Exception

doValidation

protected void doValidation()
Overrides:
doValidation in class AbstractCommentableAssignableIssue

validateAttachmentMove

protected void validateAttachmentMove()
                               throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

validateCreateIssue

protected void validateCreateIssue()
                            throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getMethod

public java.lang.String getMethod()

setMethod

public void setMethod(java.lang.String method)

getTargetPid

public java.lang.Long getTargetPid()

getTargetStatusId

public java.lang.String getTargetStatusId()

getTargetProject

public org.ofbiz.core.entity.GenericValue getTargetProject()

getTargetWorkflow

public JiraWorkflow getTargetWorkflow()
                               throws WorkflowException
Throws:
WorkflowException

getCurrentWorkflow

public JiraWorkflow getCurrentWorkflow()
                                throws WorkflowException,
                                       org.ofbiz.core.entity.GenericEntityException
Throws:
WorkflowException
org.ofbiz.core.entity.GenericEntityException

getWorkflowForType

public JiraWorkflow getWorkflowForType(java.lang.Long projectId,
                                       java.lang.String issueTypeId)
                                throws WorkflowException
Throws:
WorkflowException

getCurrentStatusGV

public org.ofbiz.core.entity.GenericValue getCurrentStatusGV()

getTargetIssueType

public java.lang.String getTargetIssueType()

getCurrentIssueType

public java.lang.String getCurrentIssueType()

assigneeChanged

protected boolean assigneeChanged()
Overrides:
assigneeChanged in class AbstractCommentableAssignableIssue

getAllowedProjects

public java.util.Collection getAllowedProjects()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

getStandardIssueTypes

public java.util.Collection getStandardIssueTypes()

isSubTask

public boolean isSubTask()
Description copied from class: AbstractViewIssue
Determines whether the issue is a sub task - i.e. if it has any incoming sub-task issue links

Overrides:
isSubTask in class AbstractViewIssue
Returns:

isOldAssigneeAssignable

public boolean isOldAssigneeAssignable()

isTargetAssigneeAssignable

public boolean isTargetAssigneeAssignable()

isHasAssignPermission

public boolean isHasAssignPermission()
                              throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getOldSecurity

public java.lang.Long getOldSecurity()
                              throws java.lang.Exception
Throws:
java.lang.Exception

getAssignIn

public org.ofbiz.core.entity.GenericValue getAssignIn()
Specified by:
getAssignIn in interface Assignable
Overrides:
getAssignIn in class AbstractCommentableAssignableIssue

getTargetWorkflowStatuses

public java.util.Collection getTargetWorkflowStatuses(java.lang.String issueTypeId)
                                               throws WorkflowException
Throws:
WorkflowException

migrateIssueToWorkflow

protected void migrateIssueToWorkflow(org.ofbiz.core.entity.GenericValue issue,
                                      java.lang.String targetType,
                                      JiraWorkflow targetWorkflow,
                                      org.ofbiz.core.entity.GenericValue targetStatus)
                               throws java.lang.Exception,
                                      org.ofbiz.core.entity.GenericEntityException
Throws:
java.lang.Exception
org.ofbiz.core.entity.GenericEntityException

getTargetVisibleFieldLayoutItems

public java.util.List getTargetVisibleFieldLayoutItems()

isWorkflowMatch

public boolean isWorkflowMatch(java.lang.String currentIssueTypeId,
                               java.lang.String targetIssueTypeId)
                        throws WorkflowException,
                               org.ofbiz.core.entity.GenericEntityException
Throws:
WorkflowException
org.ofbiz.core.entity.GenericEntityException

isHasSubTasks

public boolean isHasSubTasks()

getSubTasks

public java.util.Collection getSubTasks()

getSubTaskTypesUsed

public java.util.Collection getSubTaskTypesUsed()

getPrefixTaskStatusId

public java.lang.String getPrefixTaskStatusId(java.lang.String taskTypeId,
                                              java.lang.String taskStatusId)

getSubTaskTargetStatus

public java.lang.String getSubTaskTargetStatus(java.lang.String taskTypeId,
                                               java.lang.String taskStatusId)

isStatusChangeRequired

public boolean isStatusChangeRequired()

isTaskStatusChangeRequired

public boolean isTaskStatusChangeRequired()
                                   throws WorkflowException
Throws:
WorkflowException

isIssueStatusValid

public boolean isIssueStatusValid()
                           throws WorkflowException
Throws:
WorkflowException

isTaskStatusValid

public boolean isTaskStatusValid(java.lang.String typeId,
                                 java.lang.String statusId)
                          throws WorkflowException
Throws:
WorkflowException

getTaskInvalidStatuses

public java.util.Collection getTaskInvalidStatuses(java.lang.String typeId)
                                            throws WorkflowException
Throws:
WorkflowException

getTasksWithStatus

public java.util.Collection getTasksWithStatus(java.lang.String invalidStatusId)
                                        throws WorkflowException
Throws:
WorkflowException

getFieldLayoutManager

protected FieldLayoutManager getFieldLayoutManager()

getConstantsManager

public ConstantsManager getConstantsManager()
Overrides:
getConstantsManager in class JiraWebActionSupport

getWorkflowManager

protected WorkflowManager getWorkflowManager()

getMoveIssueBean

public MoveIssueBean getMoveIssueBean()

setBeanTargetPid

public void setBeanTargetPid(java.lang.Long targetPid)

getBeanTargetPid

public java.lang.Long getBeanTargetPid()

setBeanTargetType

public void setBeanTargetType(java.lang.String targetIssueType)

getBeanTargetType

public java.lang.String getBeanTargetType()

setBeanTargetStatusId

public void setBeanTargetStatusId(java.lang.String targetStatusId)

getBeanTargetStatusId

public java.lang.String getBeanTargetStatusId()

isRequired

public boolean isRequired(java.lang.String fieldName)
                   throws FieldLayoutStorageException
Throws:
FieldLayoutStorageException

getStringSet

public boolean getStringSet(org.ofbiz.core.entity.GenericValue gv,
                            java.lang.String value)


Copyright © 2002-2006 Atlassian. All Rights Reserved.