public class

MoveSubTaskChooseOperation

extends MoveIssue
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.AbstractCommentableAssignableIssue
                     ↳ com.atlassian.jira.web.action.issue.MoveIssue
                       ↳ com.atlassian.jira.web.action.issue.MoveSubTaskChooseOperation

Class Overview

This action is used to present the user with a list of allowed bulk operations on the selected issues

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.issue.MoveIssue
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.MoveIssue
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
MoveSubTaskChooseOperation(SubTaskManager subTaskManager, ConstantsManager constantsManager, WorkflowManager workflowManager, FieldManager fieldManager, FieldLayoutManager fieldLayoutManager, IssueFactory issueFactory, FieldScreenRendererFactory fieldScreenRendererFactory, MoveSubTaskOperationManager moveSubTaskOperationManager, CommentService commentService, UserUtil userUtil)
Public Methods
String doDefault()
Handles the initial request to move an issue.
String getCannotPerformMessageKey(MoveSubTaskOperation moveSubTaskOperation)
Get the i18n key for why this operation can not be performed
Collection getMoveSubTaskOperations()
String getOperation()
boolean isCanPerform(MoveSubTaskOperation moveSubTaskOperation)
boolean isHasAvailableOperations()
void setCurrentStep(int step)
void setOperation(String operation)
Protected Methods
String doExecute()
Handles the request to submit the input from the first step of the wizard, the submitted information is the target project and the target issue type.
void doValidation()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.issue.MoveIssue
From class com.atlassian.jira.web.action.issue.AbstractCommentableAssignableIssue
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.Assignable
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 MoveSubTaskChooseOperation (SubTaskManager subTaskManager, ConstantsManager constantsManager, WorkflowManager workflowManager, FieldManager fieldManager, FieldLayoutManager fieldLayoutManager, IssueFactory issueFactory, FieldScreenRendererFactory fieldScreenRendererFactory, MoveSubTaskOperationManager moveSubTaskOperationManager, CommentService commentService, UserUtil userUtil)

Public Methods

public String doDefault ()

Handles the initial request to move an issue. It returns the view responsible for rendering the first step of the wizard, if the user is authorised to perform the move and if the issue exists.

Returns
  • "securitybreach" if the user is not authorised to move the issue; ERROR if the issue can't be found (which means it was probably deleted), or if the user isn't authorised to browse the issue; otherwise, INPUT} is returned to render the view for the first step of the wizard.
Throws
Exception

public String getCannotPerformMessageKey (MoveSubTaskOperation moveSubTaskOperation)

Get the i18n key for why this operation can not be performed

Parameters
moveSubTaskOperation The operation to check
Returns
  • the i18n key for the reason it can't be displayed

public Collection getMoveSubTaskOperations ()

public String getOperation ()

public boolean isCanPerform (MoveSubTaskOperation moveSubTaskOperation)

Throws
Exception

public boolean isHasAvailableOperations ()

Throws
Exception

public void setCurrentStep (int step)

public void setOperation (String operation)

Protected Methods

protected String doExecute ()

Handles the request to submit the input from the first step of the wizard, the submitted information is the target project and the target issue type.

If the issue has sub-tasks it redirects to doDefault() so that the tasks issue types can be mapped; otherwise, it redirects to doDefault()

Returns
  • It actually doesn't return anything. If the issue has sub-tasks it redirects to doDefault() so that the tasks issue types can be mapped; otherwise, it redirects to doDefault()
Throws
Exception

protected void doValidation ()