Interface CapabilitySetDao

    • Method Detail

      • getSharedCapabilitySet

        CapabilitySet getSharedCapabilitySet()
        Accessor for getting shared capabilities
        Returns:
      • saveCapabilitySet

        void saveCapabilitySet​(CapabilitySet capabilitySet)
        Persist capabilites
        Parameters:
        capabilitySet -
      • getSystemCapabilities

        @NotNull
        @NotNull Collection<Capability> getSystemCapabilities​(String type)
        Collection of Capability which have keys prefixed with system.{type} Used to identify Bamboo system capabilities for Builders / JDKs.
        Parameters:
        type - eg "builder" or "jdk"
        Returns:
        capabilities
      • getSystemKeysExcludingElasticByType

        @NotNull
        @NotNull Collection<String> getSystemKeysExcludingElasticByType​(@NotNull
                                                                        @NotNull String type)
        Returns a list of Capability Keys that match the given type but not for capabilities used by Elastic Images.
        Parameters:
        type - eg "builder" or "jdk"
        Returns:
        list of capability keys eg. "system.builder.mvn2.Maven 2"
      • getAllSystemKeysByType

        @NotNull
        @NotNull Collection<String> getAllSystemKeysByType​(@NotNull
                                                           @NotNull String type)
        Returns a list of Capability Keys that match the given type including those for Elastic images.
        Parameters:
        type - eg "builder" or "jdk"
        Returns:
      • getSystemCapabilitiesByKey

        @NotNull
        @NotNull Collection<Capability> getSystemCapabilitiesByKey​(String key)
        Collection of Capability which have the specified key
        Parameters:
        key -
        Returns:
      • findUniqueCapabilityKeys

        @NotNull
        @NotNull List<String> findUniqueCapabilityKeys()
        Finds all the distinct capability keys
        Returns:
      • getElasticImageConfiguration

        @Nullable
        @Nullable ElasticImageConfiguration getElasticImageConfiguration​(@NotNull
                                                                         @NotNull CapabilitySet capabilitySet)
        Finds ElasticImageConfiguration using capability set
        Parameters:
        capabilitySet -
        Returns: