Enum Class DependencyBlockingStrategy

java.lang.Object
java.lang.Enum<DependencyBlockingStrategy>
com.atlassian.bamboo.v2.build.trigger.DependencyBlockingStrategy
All Implemented Interfaces:
Serializable, Comparable<DependencyBlockingStrategy>, Constable

public enum DependencyBlockingStrategy extends Enum<DependencyBlockingStrategy>
Strategy for the DependencyBlockingManager
  • Enum Constant Details

  • Field Details

    • DEPENDENCY_BLOCKING_STRATEGY_CONFIG_KEY

      public static final String DEPENDENCY_BLOCKING_STRATEGY_CONFIG_KEY
      See Also:
  • Method Details

    • values

      public static DependencyBlockingStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DependencyBlockingStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getStrategy

      @NotNull public static @NotNull DependencyBlockingStrategy getStrategy(@NotNull @NotNull ImmutablePlan plan)
      Get strategy for build
      Parameters:
      plan - to get the strategy for
      Returns:
      strategy
    • setStrategy

      public static void setStrategy(DependencyBlockingStrategy strategy, @NotNull @NotNull Plan plan)
      Set strategy for build
      Parameters:
      strategy - new strategy for build
      plan - to set strategy for
    • getByValue

      public static DependencyBlockingStrategy getByValue(String value)
      Get the strategy by value (essentially a key lookup for type of Strategy)
      Parameters:
      value - to look up
      Returns:
      strategy
    • toSpecsConstant

      @NotNull public com.atlassian.bamboo.specs.api.builders.plan.dependencies.DependenciesConfiguration.DependencyBlockingStrategy toSpecsConstant()
      Returns Bamboo Specs constant used for exporting this enum.
    • fromSpecsConstant

      @NotNull public static @NotNull DependencyBlockingStrategy fromSpecsConstant(@NotNull com.atlassian.bamboo.specs.api.builders.plan.dependencies.DependenciesConfiguration.DependencyBlockingStrategy exportConstant)
      Converts the given Bamboo Specs constant to an instance of this enum.
    • getI18nKey

      public String getI18nKey()
      Returns:
      the I18n key
    • getDescriptionI18nKey

      public String getDescriptionI18nKey()
      Returns:
      the description I18n key
    • getValue

      public String getValue()
      Get storage value
      Returns:
      value