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
public interface CapabilitySetDao extends BambooObjectDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull List<String>findUniqueCapabilityKeys()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)CapabilitySetgetSharedCapabilitySet()Accessor for getting shared capabilities@NotNull Collection<Capability>getSystemCapabilities(String type)Collection ofCapabilitywhich have keys prefixed with system.@NotNull Collection<Capability>getSystemCapabilitiesByKey(String key)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 capabilites-
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
-
-
-
-
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 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
@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 ofCapabilitywhich have the specified key- Parameters:
key-- Returns:
-
findUniqueCapabilityKeys
@NotNull @NotNull List<String> 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:
-
-