Class MoveSubTask

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

public class MoveSubTask extends MoveIssue
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()
      Description copied from class: ActionSupport
      Subclasses may override this method to provide validation of input data. The execute() method should call validate() in the beginning of its code (which will delegate to this method), so as to check input data before doing the actual processing.

      If any application errors arise these should be registered by calling addErrorMessage or addError .

      If the validation is dependent on whether a command has been issued, and what that command is, then the isCommand() method should be used.

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

      public Collection getSubTaskTypes()
      Returns a collection of Sub-task Issue Types for this project
      Returns:
      Sub-task Issue Types for this project
    • getViewHtmlParams

      protected Map getViewHtmlParams()
      Overrides:
      getViewHtmlParams in class MoveIssue
    • getIssueObject

      public MutableIssue getIssueObject(org.ofbiz.core.entity.GenericValue issue)
      Overrides:
      getIssueObject in class MoveIssue