Class MoveStageAction

All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, ChainAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanAdminSecurityAware, PlanAware, ProjectAware, ReturnUrlAware, UserAware, com.atlassian.core.i18n.I18nTextProvider, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.locale.LocaleProvider, org.apache.struts2.text.TextProvider, org.apache.struts2.Validateable

public class MoveStageAction extends ChainActionSupport implements PlanAdminSecurityAware
See Also:
  • Constructor Details

    • MoveStageAction

      public MoveStageAction()
  • Method Details

    • validate

      public void validate()
      Specified by:
      validate in interface org.apache.struts2.Validateable
      Overrides:
      validate in class org.apache.struts2.ActionSupport
    • buildJsonObject

      @NotNull protected @NotNull org.json.JSONObject buildJsonObject() throws org.json.JSONException
      Description copied from class: BambooActionSupport
      Builds JSONObject and sets 'status', 'errors' and 'fieldErrors' properties accordingly. If descending classes need to add anything to JSON response these should override this method.
      Overrides:
      buildJsonObject in class BambooActionSupport
      Returns:
      Initialized JSONObject
      Throws:
      org.json.JSONException
    • move

      @NotNull public @NotNull String move()
    • confirm

      public String confirm()
    • getIndex

      public int getIndex()
    • setIndex

      public void setIndex(int index)
    • getStageId

      public long getStageId()
    • setStageId

      public void setStageId(long stageId)
    • isRemoveBrokenSubscriptions

      public boolean isRemoveBrokenSubscriptions()
    • setRemoveBrokenSubscriptions

      public void setRemoveBrokenSubscriptions(boolean removeBrokenSubscriptions)
    • getJobsContainingInvalidSubscriptions

      public com.google.common.collect.Multimap<ChainStage,Job> getJobsContainingInvalidSubscriptions()
      This method returns consumers of artifacts for which exists a subscription that would be broken by the move operation that triggered the action.
      Returns:
      multimap of jobs grouped by stages