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:
OperationContext, ErrorCollection, I18nHelper, Assignable, IssueSummaryAware, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
MoveIssueUpdateFields, MoveIssueUpdateWorkflow, MoveSubTask, MoveSubTaskChooseOperation, MoveSubTaskParent

public class MoveIssue
extends AbstractCommentableAssignableIssue

See Also:
Serialized Form

Field Summary
protected  ConstantsManager constantsManager
           
protected  FieldLayoutManager fieldLayoutManager
           
protected  FieldManager fieldManager
           
protected  IssueFactory issueFactory
           
static String SUBTASK_STATUS_PREFIX
           
protected  WorkflowManager workflowManager
           
 
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
MoveIssue(IssueLinkManager issueLinkManager, SubTaskManager subTaskManager, ConstantsManager constantsManager, WorkflowManager workflowManager, FieldManager fieldManager, FieldLayoutManager fieldLayoutManager, IssueFactory issueFactory, FieldScreenRendererFactory fieldScreenRendererFactory, CommentService commentService)
           
 
Method Summary
 String doDefault()
           
protected  String doExecute()
           
protected  void doValidation()
           
 Collection getAllowedProjects()
           
 String getBeanTargetStatusId()
           
 ConstantsManager getConstantsManager()
           
 String getCurrentIssueType()
           
 org.ofbiz.core.entity.GenericValue getCurrentStatusGV()
           
 JiraWorkflow getCurrentWorkflow()
           
 String getFieldHtml(String fieldId)
           
protected  FieldLayoutManager getFieldLayoutManager()
           
protected  FieldManager getFieldManager()
           
 MutableIssue getIssueObject(org.ofbiz.core.entity.GenericValue issue)
           
 MoveIssueBean getMoveIssueBean()
           
 String getPrefixTaskStatusId(String taskTypeId, String taskStatusId)
           
 Collection getSubTasks()
           
 String getSubTaskTargetStatus(String taskTypeId, String taskStatusId)
           
 Collection getSubTaskTypesUsed()
           
 String getTargetIssueType()
           
 org.ofbiz.core.entity.GenericValue getTargetIssueTypeGV()
           
 Long getTargetPid()
           
 org.ofbiz.core.entity.GenericValue getTargetProject()
           
 String getTargetStatusId()
           
 JiraWorkflow getTargetWorkflow()
           
 Collection getTargetWorkflowStatuses(String issueTypeId)
           
 Collection getTaskInvalidStatuses(String typeId)
           
 Collection getTasksWithStatus(String invalidStatusId)
           
protected  Map getViewHtmlParams()
           
 JiraWorkflow getWorkflowForType(Long projectId, String issueTypeId)
           
protected  WorkflowManager getWorkflowManager()
           
 boolean isHasSubTasks()
           
 boolean isIssueStatusValid()
           
 boolean isStatusChangeRequired()
           
 boolean isSubTask()
          Determines whether the issue is a sub task - i.e.
 boolean isTaskStatusChangeRequired()
           
 boolean isTaskStatusValid(String typeId, String statusId)
           
 boolean isWorkflowMatch(String currentIssueTypeId, String targetIssueTypeId)
           
protected  String redirectToSessionTimeoutPage()
           
 void setBeanTargetStatusId(String targetStatusId)
           
protected  void validateAttachmentMove()
           
protected  void validateCreateIssue()
           
 
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, getCustomFieldValuesHolder, getFieldScreenRendererLayoutItemForField, getFieldScreenRendererWithAllFields, getGroupLevel, getGroupLevels, getIssueOperation, getOrderableField, getRoleLevels, setComment, setCommentLevel, setCustomFieldValuesHolder, setGroupLevel
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractViewIssue
getAttachments, getIssueLinkManager, getLinkCollection, getLinkCollection, getPossibleComponents, getPossibleVersions, getPossibleVersionsReleasedFirst, getSubTaskManager, 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, getSearchSortReverseDescriptions, 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.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

SUBTASK_STATUS_PREFIX

public static final String SUBTASK_STATUS_PREFIX
See Also:
Constant Field Values

constantsManager

protected final ConstantsManager constantsManager

workflowManager

protected final WorkflowManager workflowManager

fieldManager

protected final FieldManager fieldManager

fieldLayoutManager

protected final FieldLayoutManager fieldLayoutManager

issueFactory

protected final IssueFactory issueFactory
Constructor Detail

MoveIssue

public MoveIssue(IssueLinkManager issueLinkManager,
                 SubTaskManager subTaskManager,
                 ConstantsManager constantsManager,
                 WorkflowManager workflowManager,
                 FieldManager fieldManager,
                 FieldLayoutManager fieldLayoutManager,
                 IssueFactory issueFactory,
                 FieldScreenRendererFactory fieldScreenRendererFactory,
                 CommentService commentService)
Method Detail

doExecute

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

doDefault

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

doValidation

protected void doValidation()
Overrides:
doValidation in class AbstractCommentableAssignableIssue

redirectToSessionTimeoutPage

protected String redirectToSessionTimeoutPage()

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

getTargetPid

public Long getTargetPid()

getTargetStatusId

public String getTargetStatusId()

getTargetProject

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

getTargetIssueTypeGV

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

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(Long projectId,
                                       String issueTypeId)
                                throws WorkflowException
Throws:
WorkflowException

getCurrentStatusGV

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

getTargetIssueType

public String getTargetIssueType()

getCurrentIssueType

public String getCurrentIssueType()

getAllowedProjects

public Collection getAllowedProjects()
                              throws Exception
Throws:
Exception

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

getTargetWorkflowStatuses

public Collection getTargetWorkflowStatuses(String issueTypeId)
                                     throws WorkflowException
Throws:
WorkflowException

isWorkflowMatch

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

isHasSubTasks

public boolean isHasSubTasks()

getSubTasks

public Collection getSubTasks()

getSubTaskTypesUsed

public Collection getSubTaskTypesUsed()

getPrefixTaskStatusId

public String getPrefixTaskStatusId(String taskTypeId,
                                    String taskStatusId)

getSubTaskTargetStatus

public String getSubTaskTargetStatus(String taskTypeId,
                                     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(String typeId,
                                 String statusId)
                          throws WorkflowException
Throws:
WorkflowException

getTaskInvalidStatuses

public Collection getTaskInvalidStatuses(String typeId)
                                  throws WorkflowException
Throws:
WorkflowException

getTasksWithStatus

public Collection getTasksWithStatus(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()

setBeanTargetStatusId

public void setBeanTargetStatusId(String targetStatusId)

getBeanTargetStatusId

public String getBeanTargetStatusId()

getFieldHtml

public String getFieldHtml(String fieldId)
                    throws Exception
Throws:
Exception

getViewHtmlParams

protected Map getViewHtmlParams()

getIssueObject

public MutableIssue getIssueObject(org.ofbiz.core.entity.GenericValue issue)

getFieldManager

protected FieldManager getFieldManager()


Copyright © 2002-2009 Atlassian. All Rights Reserved.