Class ConfigureEnvironmentTriggers

All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DeploymentEnvironmentReadOnlyInterceptorAware, DeploymentEnvironmentViewConfigurationSecurityAware, DomainObjectSecurityAware, GlobalReadSecurityAware, 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.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable
Direct Known Subclasses:
CreateEnvironmentTrigger, DeleteEnvironmentTrigger, EditEnvironmentTrigger

public class ConfigureEnvironmentTriggers extends AbstractEnvironmentConfigurationAction implements com.opensymphony.xwork2.Preparable, DeploymentEnvironmentViewConfigurationSecurityAware
See Also:
  • Field Details

  • Constructor Details

    • ConfigureEnvironmentTriggers

      public ConfigureEnvironmentTriggers()
  • Method Details

    • getSecuredDomainObject

      public Environment getSecuredDomainObject()
      Specified by:
      getSecuredDomainObject in interface DeploymentEnvironmentReadOnlyInterceptorAware
      Specified by:
      getSecuredDomainObject in interface DomainObjectSecurityAware
      Overrides:
      getSecuredDomainObject in class BambooActionSupport
    • prepare

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

      public String execute()
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.ActionSupport
    • validateEnvironment

      protected void validateEnvironment()
    • validateDescription

      protected void validateDescription()
    • getTriggerDefinitionById

      protected TriggerDefinition getTriggerDefinitionById(long id)
    • 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.

    • getTriggers

      @NotNull public @NotNull List<TriggerDefinition> getTriggers()
    • getEnvironmentId

      public long getEnvironmentId()
    • setEnvironmentId

      public void setEnvironmentId(long environmentId)
    • getEnvironment

      public Environment getEnvironment()
      Specified by:
      getEnvironment in class AbstractEnvironmentConfigurationAction
    • getTriggerId

      public long getTriggerId()
    • setTriggerId

      public void setTriggerId(long triggerId)
    • getUserDescription

      public String getUserDescription()
    • setUserDescription

      public void setUserDescription(String userDescription)
    • isSaved

      public boolean isSaved()
    • setSaved

      public void setSaved(boolean saved)
    • isTriggerDisabled

      public boolean isTriggerDisabled()
    • setTriggerDisabled

      public void setTriggerDisabled(boolean triggerDisabled)
    • getAvailableTriggerTypes

      public Iterable<TriggerModuleDescriptor> getAvailableTriggerTypes()
    • getDeploymentProject

      public DeploymentProject getDeploymentProject()
      Specified by:
      getDeploymentProject in class AbstractDeploymentProjectConfigurationAction
    • setTriggerUIConfigBean

      public void setTriggerUIConfigBean(TriggerUIConfigBean triggerUIConfigBean)
    • setEnvironmentTriggerService

      public void setEnvironmentTriggerService(EnvironmentTriggerService environmentTriggerService)
    • setTriggerTypeManager

      public void setTriggerTypeManager(TriggerTypeManager triggerTypeManager)
    • getTriggerDefinition

      public TriggerDefinition getTriggerDefinition()