com.atlassian.bamboo.capability
Interface CapabilitySetDao

All Superinterfaces:
BambooObjectDao, bucket.core.persistence.ObjectDao
All Known Subinterfaces:
ImageCapabilitySetDao, LocalCapabilitySetDao, RemoteCapabilitySetDao
All Known Implementing Classes:
CapabilityHibernateSetDao, ImageCapabilitySetHibernateDao, LocalCapabilityHibernateSetDao, RemoteCapabilityHibernateSetDao

public interface CapabilitySetDao
extends BambooObjectDao


Method Summary
 List<String> findUniqueCapabilityKeys()
          Finds all the distinct capability keys
 Collection<String> getAllSystemKeysByType(String type)
          Returns a list of Capability Keys that match the given type including those for Elastic images.
 ElasticImageConfiguration getElasticImageConfiguration(CapabilitySet capabilitySet)
          Finds ElasticImageConfiguration using capability set
 PipelineDefinition getPipelineDefinition(CapabilitySet capabilitySet)
           
 CapabilitySet getSharedCapabilitySet()
          Accessor for getting shared capabilities
 Collection<Capability> getSystemCapabilities(String type)
          Collection of Capability which have keys prefixed with system.{type} Used to identify Bamboo system capabilities for Builders / JDKs.
 Collection<Capability> getSystemCapabilitiesByKey(String key)
          Collection of Capability which have the specified key
 Collection<String> getSystemKeysExcludingElasticByType(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
 
Methods 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 Detail

getSharedCapabilitySet

CapabilitySet getSharedCapabilitySet()
Accessor for getting shared capabilities

Returns:

saveCapabilitySet

void saveCapabilitySet(CapabilitySet capabilitySet)
Persist capabilites

Parameters:
capabilitySet -

getSystemCapabilities

@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
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.

Parameters:
type - eg "builder" or "jdk"
Returns:
list of capability keys eg. "system.builder.mvn2.Maven 2"

getAllSystemKeysByType

@NotNull
Collection<String> getAllSystemKeysByType(@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:
@return list of capability keys eg. "system.builder.mvn2.Maven 2"

getSystemCapabilitiesByKey

@NotNull
Collection<Capability> getSystemCapabilitiesByKey(String key)
Collection of Capability which have the specified key

Parameters:
key -
Returns:

findUniqueCapabilityKeys

@NotNull
List<String> findUniqueCapabilityKeys()
Finds all the distinct capability keys

Returns:

getPipelineDefinition

@Nullable
PipelineDefinition getPipelineDefinition(@NotNull
                                                  CapabilitySet capabilitySet)

getElasticImageConfiguration

@Nullable
ElasticImageConfiguration getElasticImageConfiguration(@NotNull
                                                                CapabilitySet capabilitySet)
Finds ElasticImageConfiguration using capability set

Parameters:
capabilitySet -
Returns:


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.