Package com.atlassian.bamboo.capability
Interface CapabilitySetDao
- All Superinterfaces:
BambooObjectDao,bucket.core.persistence.ObjectDao
- All Known Subinterfaces:
EphemeralAgentTemplateCapabilitySetDao,ImageCapabilitySetDao,LocalCapabilitySetDao,RemoteCapabilitySetDao
- All Known Implementing Classes:
CapabilityHibernateSetDao,EphemeralAgentTemplateCapabilitySetHibernateDao,ImageCapabilitySetHibernateDao,LocalCapabilityHibernateSetDao,RemoteCapabilityHibernateSetDao
-
Method Summary
Modifier and TypeMethodDescriptionFinds all the distinct capability keysfindUniqueCapabilityKeys(boolean elasticEnabled) Finds all the distinct capability keys@NotNull Collection<String> getAllSystemKeysByType(@NotNull String type) Returns a list of Capability Keys that match the given type including those for Elastic images.@Nullable ElasticImageConfigurationgetElasticImageConfiguration(@NotNull CapabilitySet capabilitySet) Finds ElasticImageConfiguration using capability set@Nullable PipelineDefinitiongetPipelineDefinition(@NotNull CapabilitySet capabilitySet) Accessor for getting shared capabilities@NotNull Collection<Capability> getSystemCapabilities(String type) Collection ofCapabilitywhich have keys prefixed with system.@NotNull Collection<Capability> Collection ofCapabilitywhich have the specified key@NotNull Collection<String> getSystemKeysExcludingElasticByType(@NotNull String type) Returns a list of Capability Keys that match the given type but not for capabilities used by Elastic Images.voidsaveCapabilitySet(CapabilitySet capabilitySet) Persist capabilitesMethods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findByIdMethods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw
-
Method Details
-
saveCapabilitySet
Persist capabilites- Parameters:
capabilitySet-
-
getSystemCapabilities
Collection ofCapabilitywhich 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
Returns a list of Capability Keys that match the given type including those for Elastic images.- Parameters:
type- eg "builder" or "jdk"- Returns:
- @return list of capability keys eg. "system.builder.mvn2.Maven 2"
-
getSystemCapabilitiesByKey
Collection ofCapabilitywhich have the specified key- Parameters:
key-- Returns:
-
findUniqueCapabilityKeys
Finds all the distinct capability keys- Returns:
-
findUniqueCapabilityKeys
Finds all the distinct capability keys- Parameters:
elasticEnabled- filters elastic images if false
-
getPipelineDefinition
@Nullable @Nullable PipelineDefinition getPipelineDefinition(@NotNull @NotNull CapabilitySet capabilitySet) -
getElasticImageConfiguration
@Nullable @Nullable ElasticImageConfiguration getElasticImageConfiguration(@NotNull @NotNull CapabilitySet capabilitySet) Finds ElasticImageConfiguration using capability set- Parameters:
capabilitySet-- Returns: