Class StageAction

    • Field Detail

      • stageId

        protected String stageId
      • stageName

        protected String stageName
      • stageDescription

        protected String stageDescription
      • stageManual

        protected boolean stageManual
      • finalStage

        protected boolean finalStage
    • Constructor Detail

      • StageAction

        public StageAction()
    • Method Detail

      • execute

        public String execute()
                       throws Exception
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
        Throws:
        Exception
      • 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
      • 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)
      • 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)