Class ConfigureChainTrigger

All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, BareBuildConfigurationAware, BuildConfigurationAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanViewConfigurationSecurityAware, 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.Preparable, org.apache.struts2.text.TextProvider, org.apache.struts2.Validateable
Direct Known Subclasses:
CreateChainTrigger, DeleteChainTrigger, EditChainTrigger

public class ConfigureChainTrigger extends BuildConfigurationSupport implements org.apache.struts2.Preparable, PlanViewConfigurationSecurityAware
See Also:
  • Field Details

  • Constructor Details

    • ConfigureChainTrigger

      public ConfigureChainTrigger()
  • Method Details

    • prepare

      public void prepare() throws Exception
      Specified by:
      prepare in interface org.apache.struts2.Preparable
      Throws:
      Exception
    • validatePlan

      protected void validatePlan()
    • triggerAnalyticsEvent

      protected void triggerAnalyticsEvent()
    • validateDescription

      protected void validateDescription()
    • validateTriggerConditions

      protected void validateTriggerConditions()
    • getJsonObject

      @NotNull public @NotNull org.json.JSONObject getJsonObject() throws org.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:
      org.json.JSONException
      See Also:
    • 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)
    • getRepositoryTrigger

      public Long[] getRepositoryTrigger()
    • 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()