Enum Class CapabilitySource

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

public enum CapabilitySource extends Enum<CapabilitySource> implements Comparable<CapabilitySource>
Source where given agent capability is defined. Sources are defined in order of priority.
  • Enum Constant Details

    • UI

      public static final CapabilitySource UI
      Added manually by user in UI
    • PROPERTIES_FILE

      public static final CapabilitySource PROPERTIES_FILE
      Defined in bamboo-capabilities.properties file
    • AUTO_DETECTION

      public static final CapabilitySource AUTO_DETECTION
      Automatically detected
    • SHARED

      public static final CapabilitySource SHARED
      Shared remote capability
  • Method Details

    • values

      public static CapabilitySource[] 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 CapabilitySource 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
    • forName

      @Nullable public static @Nullable CapabilitySource forName(@NotNull @NotNull String name)
      Return a capability source for the given name. Does a case-insensitive check.
      Parameters:
      name - name of the capability source
      Returns:
      the given capability source or null if not found
    • getByMask

      @Nullable public static @Nullable CapabilitySource getByMask(@Nullable @Nullable Integer mask)
      Returns a capability source for the given mask.
      Parameters:
      mask - mack of the capability source
      Returns:
      the given capability source or null if not found
    • getMask

      public int getMask()
      Get bits that represents this source