Class MoveIssueConfirm

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

public class MoveIssueConfirm extends MoveIssueUpdateFields
See Also:
  • Constructor Details

  • Method Details

    • doDefault

      public String doDefault()
      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 MoveIssueUpdateFields
      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.
    • getConfimationFieldLayoutItems

      public Collection getConfimationFieldLayoutItems()
    • getRemoveFields

      public Collection getRemoveFields()
    • getOldViewHtml

      public String getOldViewHtml(OrderableField field)
    • getNewViewHtml

      public String getNewViewHtml(OrderableField field)
    • doValidation

      protected void doValidation()
      Overrides:
      doValidation in class MoveIssueUpdateFields
    • popluateDefault

      protected void popluateDefault(OrderableField orderableField)
      Overrides:
      popluateDefault in class MoveIssueUpdateFields
    • populateFromParams

      protected void populateFromParams(OrderableField orderableField)
      Overrides:
      populateFromParams in class MoveIssueUpdateFields
    • getTargetIssueObject

      protected MutableIssue getTargetIssueObject()
      Description copied from class: MoveIssueUpdateFields
      Retrieves the issue from the IssueManager and updates the Project and IssueType, and possibly clears the security.

      JRA-11605 - we need this method so that the display can prompt the user with values from system fields that are unencumbered by security level permission checks. It will set security level to null if the issue is moving somewhere that the old security level is no relevant.

      Overrides:
      getTargetIssueObject in class MoveIssueUpdateFields
      Returns:
      Target Issue Object with required Project and Issue Type added in.
      See Also:
    • doExecute

      protected String doExecute() throws Exception
      Actually does the moving of the issue from one Project/Issue Type to another
      Overrides:
      doExecute in class MoveIssueUpdateFields
      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
    • migrateIssueToWorkflow

      protected void migrateIssueToWorkflow(MutableIssue issue, String oldIssueType, JiraWorkflow targetWorkflow, Status targetStatus) throws org.ofbiz.core.entity.GenericEntityException
      Migrate the specified issue to the specified workflow, specified status and target type.
      Parameters:
      issue - - the issue to migrate - should be the issue that will be changed
      oldIssueType - - the old issue type of the issue
      targetWorkflow - - the destination workflow
      targetStatus - - the destination status
      Throws:
      org.ofbiz.core.entity.GenericEntityException
    • getPrefixCustomFieldId

      public String getPrefixCustomFieldId(String key) throws org.ofbiz.core.entity.GenericEntityException
      Throws:
      org.ofbiz.core.entity.GenericEntityException
    • isConfirm

      public boolean isConfirm()
    • setConfirm

      public void setConfirm(boolean confirm)
    • getTargetStatus

      public Status getTargetStatus()
    • isIssueTypeMatch

      public boolean isIssueTypeMatch() throws org.ofbiz.core.entity.GenericEntityException
      Throws:
      org.ofbiz.core.entity.GenericEntityException
    • isProjectMatch

      public boolean isProjectMatch() throws org.ofbiz.core.entity.GenericEntityException
      Throws:
      org.ofbiz.core.entity.GenericEntityException
    • isStatusMatch

      public boolean isStatusMatch()