Class ConfigureChainTrigger

All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, BareBuildConfigurationAware, BuildConfigurationAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanViewConfigurationSecurityAware, PlanAware, ProjectAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.Preparable, 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.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable
Direct Known Subclasses:
CreateChainTrigger, DeleteChainTrigger, EditChainTrigger

public class ConfigureChainTrigger extends BuildConfigurationSupport implements com.atlassian.struts.Preparable, PlanViewConfigurationSecurityAware
See Also:
  • Field Details

  • Constructor Details

    • ConfigureChainTrigger

      public ConfigureChainTrigger()
  • Method Details

    • prepare

      public void prepare() throws Exception
      Specified by:
      prepare in interface com.opensymphony.xwork2.Preparable
      Throws:
      Exception
    • validatePlan

      protected void validatePlan()
    • triggerAnalyticsEvent

      protected void triggerAnalyticsEvent()
    • validateDescription

      protected void validateDescription()
    • validateTriggerConditions

      protected void validateTriggerConditions()
    • getJsonObject

      @NotNull public @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONException
      Description copied from class: BambooActionSupport
      This is default property read by webwork for webwork's result type "json".
      Overrides:
      getJsonObject in class BambooActionSupport
      Returns:
      Throws:
      com.opensymphony.webwork.dispatcher.json.JSONException
      See Also:
      • JSON Result

        If descending classes need to add anything to JSON response these should override #buildJsonObject() method.

    • getTriggerConditionEditHtml

      @NotNull public @NotNull String getTriggerConditionEditHtml()
    • getTriggerDefinitionById

      protected TriggerDefinition getTriggerDefinitionById(long id)
    • isUseStandardRepositorySelector

      public boolean isUseStandardRepositorySelector()
    • triggeringRepositoriesFromInput

      @Nullable protected @Nullable Set<Long> triggeringRepositoriesFromInput()
    • triggerConditionsConfigurationFromInput

      @NotNull protected @NotNull Map<String,String> triggerConditionsConfigurationFromInput()
    • getRepositoryTriggerSelectors

      public List<RepositoryTriggerSelector> getRepositoryTriggerSelectors()
    • getRepositoryDefinitions

      public List<PlanRepositoryDefinition> getRepositoryDefinitions()
    • getTriggerId

      public long getTriggerId()
    • setTriggerId

      public void setTriggerId(long triggerId)
    • getUserDescription

      public String getUserDescription()
    • setUserDescription

      public void setUserDescription(String userDescription)
    • setPlanConfigurationUIPluginHelper

      public void setPlanConfigurationUIPluginHelper(PlanConfigurationUIPluginHelper planConfigurationUIPluginHelper)
    • setTriggerTypeManager

      public void setTriggerTypeManager(TriggerTypeManager triggerTypeManager)
    • setBuildTriggerConditionConfigHelper

      public void setBuildTriggerConditionConfigHelper(BuildTriggerConditionConfigHelper buildTriggerConditionConfigHelper)
    • setTriggerUIConfigBean

      public void setTriggerUIConfigBean(TriggerUIConfigBean triggerUIConfigBean)
    • setTriggerConfigurationService

      public void setTriggerConfigurationService(TriggerConfigurationService triggerConfigurationService)
    • setRepositoryTrigger

      public void setRepositoryTrigger(Long[] repositoryTrigger)
    • getBuildConfiguration

      public BuildConfiguration getBuildConfiguration()
      Specified by:
      getBuildConfiguration in interface BareBuildConfigurationAware
      Overrides:
      getBuildConfiguration in class BuildConfigurationSupport
    • isTriggerDisabled

      public boolean isTriggerDisabled()
    • setTriggerDisabled

      public void setTriggerDisabled(boolean triggerDisabled)
    • getTriggerDefinition

      public TriggerDefinition getTriggerDefinition()