Class MoveSubTaskChooseOperation

All Implemented Interfaces:
OperationContext, ErrorCollection, I18nHelper, Assignable, IssueSummaryAware, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class MoveSubTaskChooseOperation extends MoveIssue
This action is used to present the user with a list of allowed bulk operations on the selected issues
See Also:
  • Constructor Details

  • Method Details

    • doDefault

      public String doDefault() throws Exception
      Description copied from class: MoveIssue
      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.
      Overrides:
      doDefault in class MoveIssue
      Returns:
      "securitybreach" if the user is not authorised to move the issue; Action.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, Action.INPUT} is returned to render the view for the first step of the wizard.
      Throws:
      Exception
    • doValidation

      protected void doValidation()
      Overrides:
      doValidation in class MoveIssue
    • doExecute

      protected String doExecute() throws Exception
      Description copied from class: MoveIssue
      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 MoveIssueSubtasks.doDefault() so that the tasks issue types can be mapped; otherwise, it redirects to MoveIssueUpdateWorkflow.doDefault()
      Overrides:
      doExecute in class MoveIssue
      Returns:
      It actually doesn't return anything. If the issue has sub-tasks it redirects to MoveIssueSubtasks.doDefault() so that the tasks issue types can be mapped; otherwise, it redirects to MoveIssueUpdateWorkflow.doDefault()
      Throws:
      Exception
    • getMoveSubTaskOperations

      public Collection getMoveSubTaskOperations()
    • isCanPerform

      public boolean isCanPerform(MoveSubTaskOperation moveSubTaskOperation) throws Exception
      Throws:
      Exception
    • getCannotPerformMessageKey

      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
    • isHasAvailableOperations

      public boolean isHasAvailableOperations() throws Exception
      Throws:
      Exception
    • getOperation

      public String getOperation()
    • setOperation

      public void setOperation(String operation)
    • setCurrentStep

      public void setCurrentStep(int step)