Package com.atlassian.bamboo.capability
Class CapabilityHibernateSetDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence.BambooHibernateObjectDao
com.atlassian.bamboo.capability.CapabilityHibernateSetDao
- All Implemented Interfaces:
bucket.core.persistence.ObjectDao,CapabilitySetDao,BambooObjectDao,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
EphemeralAgentTemplateCapabilitySetHibernateDao,ImageCapabilitySetHibernateDao,LocalCapabilityHibernateSetDao,RemoteCapabilityHibernateSetDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFinds all the distinct capability keysfindUniqueCapabilityKeys(boolean elasticEnabled) 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 setClass<? extends CapabilitySet> @Nullable PipelineDefinitiongetPipelineDefinition(@NotNull CapabilitySet capabilitySet) Accessor for getting shared capabilities@NotNull Collection<Capability> getSystemCapabilities(String type) Collection ofCapabilitywhich have keys prefixed with system.@NotNull Collection<Capability> 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 capabilitesMethods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao
findAll, findAllSorted, findById, findById, refresh, remove, replicate, save, saveRaw, updateModificationDataMethods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactoryMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDaoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findByIdMethods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw
-
Constructor Details
-
CapabilityHibernateSetDao
public CapabilityHibernateSetDao()
-
-
Method Details
-
getPersistentClass
- Specified by:
getPersistentClassin interfacebucket.core.persistence.ObjectDao
-
getPipelineDefinition
@Nullable public @Nullable PipelineDefinition getPipelineDefinition(@NotNull @NotNull CapabilitySet capabilitySet) - Specified by:
getPipelineDefinitionin interfaceCapabilitySetDao
-
getElasticImageConfiguration
@Nullable public @Nullable ElasticImageConfiguration getElasticImageConfiguration(@NotNull @NotNull CapabilitySet capabilitySet) Description copied from interface:CapabilitySetDaoFinds ElasticImageConfiguration using capability set- Specified by:
getElasticImageConfigurationin interfaceCapabilitySetDao- Parameters:
capabilitySet-- Returns:
-
findUniqueCapabilityKeys
Description copied from interface:CapabilitySetDaoFinds all the distinct capability keys- Specified by:
findUniqueCapabilityKeysin interfaceCapabilitySetDao- Returns:
-
findUniqueCapabilityKeys
Description copied from interface:CapabilitySetDaoFinds all the distinct capability keys- Specified by:
findUniqueCapabilityKeysin interfaceCapabilitySetDao- Parameters:
elasticEnabled- filters elastic images if false
-
getSystemCapabilities
Description copied from interface:CapabilitySetDaoCollection ofCapabilitywhich have keys prefixed with system.{type} Used to identify Bamboo system capabilities for Builders / JDKs.- Specified by:
getSystemCapabilitiesin interfaceCapabilitySetDao- Parameters:
type- eg "builder" or "jdk"- Returns:
- capabilities
-
getSystemKeysExcludingElasticByType
@NotNull public @NotNull Collection<String> getSystemKeysExcludingElasticByType(@NotNull @NotNull String type) Description copied from interface:CapabilitySetDaoReturns a list of Capability Keys that match the given type but not for capabilities used by Elastic Images.- Specified by:
getSystemKeysExcludingElasticByTypein interfaceCapabilitySetDao- Parameters:
type- eg "builder" or "jdk"- Returns:
- list of capability keys eg. "system.builder.mvn2.Maven 2"
-
getAllSystemKeysByType
Description copied from interface:CapabilitySetDaoReturns a list of Capability Keys that match the given type including those for Elastic images.- Specified by:
getAllSystemKeysByTypein interfaceCapabilitySetDao- Parameters:
type- eg "builder" or "jdk"- Returns:
- @return list of capability keys eg. "system.builder.mvn2.Maven 2"
-
getSystemCapabilitiesByKey
Description copied from interface:CapabilitySetDaoCollection ofCapabilitywhich have the specified key- Specified by:
getSystemCapabilitiesByKeyin interfaceCapabilitySetDao- Parameters:
key-- Returns:
-
saveCapabilitySet
Description copied from interface:CapabilitySetDaoPersist capabilites- Specified by:
saveCapabilitySetin interfaceCapabilitySetDao- Parameters:
capabilitySet-
-