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
 java.util.List<java.lang.String> findUniqueCapabilityKeys()
          Finds all the distinct capability keys
 java.util.Collection<java.lang.String> getAllSystemKeysByType(java.lang.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
 java.util.Collection<Capability> getSystemCapabilities(java.lang.String type)
          Collection of Capability which have keys prefixed with system.{type} Used to identify Bamboo system capabilities for Builders / JDKs.
 java.util.Collection<Capability> getSystemCapabilitiesByKey(java.lang.String key)
          Collection of Capability which have the specified key
 java.util.Collection<java.lang.String> getSystemKeysExcludingElasticByType(java.lang.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
java.util.Collection<Capability> getSystemCapabilities(java.lang.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
java.util.Collection<java.lang.String> getSystemKeysExcludingElasticByType(@NotNull
                                                                                   java.lang.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
java.util.Collection<java.lang.String> getAllSystemKeysByType(@NotNull
                                                                      java.lang.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
java.util.Collection<Capability> getSystemCapabilitiesByKey(java.lang.String key)
Collection of Capability which have the specified key

Parameters:
key -
Returns:

findUniqueCapabilityKeys

@NotNull
java.util.List<java.lang.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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.