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 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 ElasticImageConfiguration
getElasticImageConfiguration
(@NotNull CapabilitySet capabilitySet) Finds ElasticImageConfiguration using capability set@Nullable PipelineDefinition
getPipelineDefinition
(@NotNull CapabilitySet capabilitySet) Accessor for getting shared capabilities@NotNull Collection<Capability>
getSystemCapabilities
(String type) Collection ofCapability
which have keys prefixed with system.{type} Used to identify Bamboo system capabilities for Builders / JDKs.@NotNull Collection<Capability>
Collection ofCapability
which 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.void
saveCapabilitySet
(CapabilitySet capabilitySet) Persist capabilitesMethods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw
-
Method Details
-
saveCapabilitySet
Persist capabilites- Parameters:
capabilitySet
-
-
getSystemCapabilities
Collection ofCapability
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
Returns a list of Capability Keys that match the given type including those for Elastic images.- Parameters:
type
- eg "builder" or "jdk"- Returns:
-
getSystemCapabilitiesByKey
Collection ofCapability
which have the specified key- Parameters:
key
-- Returns:
-
findUniqueCapabilityKeys
Finds all the distinct capability keys- Returns:
-
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: