public interface CapabilitySetDao extends BambooObjectDao
Modifier and Type | Method and 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 ElasticImageConfiguration |
getElasticImageConfiguration(@NotNull CapabilitySet capabilitySet)
Finds ElasticImageConfiguration using capability set
|
@Nullable PipelineDefinition |
getPipelineDefinition(@NotNull CapabilitySet capabilitySet) |
CapabilitySet |
getSharedCapabilitySet()
Accessor for getting shared capabilities
|
@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. |
@NotNull Collection<Capability> |
getSystemCapabilitiesByKey(String key)
Collection of
Capability 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 capabilites
|
findById
CapabilitySet getSharedCapabilitySet()
void saveCapabilitySet(CapabilitySet capabilitySet)
capabilitySet
- @NotNull @NotNull Collection<Capability> getSystemCapabilities(String type)
Capability
which have keys prefixed with system.{type}
Used to identify Bamboo system capabilities for Builders / JDKs.type
- eg "builder" or "jdk"@NotNull @NotNull Collection<String> getSystemKeysExcludingElasticByType(@NotNull @NotNull String type)
type
- eg "builder" or "jdk"@NotNull @NotNull Collection<String> getAllSystemKeysByType(@NotNull @NotNull String type)
type
- eg "builder" or "jdk"@NotNull @NotNull Collection<Capability> getSystemCapabilitiesByKey(String key)
Capability
which have the specified keykey
- @NotNull @NotNull List<String> findUniqueCapabilityKeys()
@Nullable @Nullable PipelineDefinition getPipelineDefinition(@NotNull @NotNull CapabilitySet capabilitySet)
@Nullable @Nullable ElasticImageConfiguration getElasticImageConfiguration(@NotNull @NotNull CapabilitySet capabilitySet)
capabilitySet
- Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.