Class StageAction

All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, ChainAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanViewConfigurationSecurityAware, PlanAware, ProjectAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.TextProvider, com.atlassian.struts.ValidationAware, com.opensymphony.xwork.ValidationAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable
Direct Known Subclasses:
AddStageAction, DeleteStageAction, EditStageAction

public class StageAction extends ChainActionSupport implements PlanViewConfigurationSecurityAware
See Also:
  • Field Details

    • stageId

      protected String stageId
    • stageName

      protected String stageName
    • stageDescription

      protected String stageDescription
    • stageManual

      protected boolean stageManual
    • finalStage

      protected boolean finalStage
    • auditLogService

      protected AuditLogService auditLogService
  • Constructor Details

    • StageAction

      public StageAction()
  • Method Details

    • triggerAnalyticsEvent

      protected void triggerAnalyticsEvent()
    • buildStageJsonObject

      @NotNull protected @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject buildStageJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONException
      Throws:
      com.opensymphony.webwork.dispatcher.json.JSONException
    • buildJsonObject

      @NotNull protected @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject() throws com.opensymphony.webwork.dispatcher.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:
      com.opensymphony.webwork.dispatcher.json.JSONException
    • doDefault

      public String doDefault() throws Exception
      Description copied from class: BambooActionSupport
      Default action just sends to the input
      Overrides:
      doDefault in class BambooActionSupport
      Throws:
      Exception
    • validate

      public void validate()
      Specified by:
      validate in interface com.opensymphony.xwork2.Validateable
      Overrides:
      validate in class com.opensymphony.xwork2.ActionSupport
    • getAgentUnavailabilityHint

      @Nullable public @Nullable String getAgentUnavailabilityHint(@NotNull @NotNull ImmutableJob job)
    • getRelatedDeploymentProjects

      public List<DeploymentProject> getRelatedDeploymentProjects()
    • getStageName

      @Nullable public @Nullable String getStageName()
    • setStageName

      public void setStageName(String stageName)
    • getStageDescription

      @Nullable public @Nullable String getStageDescription()
    • setStageDescription

      public void setStageDescription(String stageDescription)
    • isStageManual

      public boolean isStageManual()
    • setStageManual

      public void setStageManual(boolean stageManual)
    • isFinalStage

      public boolean isFinalStage()
    • setFinalStage

      public void setFinalStage(boolean finalStage)
    • getStageId

      public String getStageId()
    • setStageId

      public void setStageId(String stageId)
    • setPlanValidationService

      public void setPlanValidationService(PlanValidationService planValidationService)
    • setElasticFunctionalityFacade

      public void setElasticFunctionalityFacade(ElasticFunctionalityFacade elasticFunctionalityFacade)
    • setAuditLogService

      public void setAuditLogService(AuditLogService auditLogService)