public class CapabilityHibernateSetDao extends BambooHibernateObjectDao implements CapabilitySetDao
Constructor and Description |
---|
CapabilityHibernateSetDao() |
Modifier and Type | Method and Description |
---|---|
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
|
Class |
getPersistentClass() |
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
|
findAll, findAllSorted, findById, findById, refresh, remove, replicate, save, saveRaw, setIndexer, updateModificationData
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findById
public Class getPersistentClass()
getPersistentClass
in interface bucket.core.persistence.ObjectDao
@Nullable public PipelineDefinition getPipelineDefinition(@NotNull CapabilitySet capabilitySet)
getPipelineDefinition
in interface CapabilitySetDao
@Nullable public ElasticImageConfiguration getElasticImageConfiguration(@NotNull CapabilitySet capabilitySet)
CapabilitySetDao
getElasticImageConfiguration
in interface CapabilitySetDao
public CapabilitySet getSharedCapabilitySet()
CapabilitySetDao
getSharedCapabilitySet
in interface CapabilitySetDao
@NotNull public List<String> findUniqueCapabilityKeys()
CapabilitySetDao
findUniqueCapabilityKeys
in interface CapabilitySetDao
@NotNull public Collection<Capability> getSystemCapabilities(String type)
CapabilitySetDao
Capability
which have keys prefixed with system.{type}
Used to identify Bamboo system capabilities for Builders / JDKs.getSystemCapabilities
in interface CapabilitySetDao
type
- eg "builder" or "jdk"@NotNull public Collection<String> getSystemKeysExcludingElasticByType(@NotNull String type)
CapabilitySetDao
getSystemKeysExcludingElasticByType
in interface CapabilitySetDao
type
- eg "builder" or "jdk"@NotNull public Collection<String> getAllSystemKeysByType(@NotNull String type)
CapabilitySetDao
getAllSystemKeysByType
in interface CapabilitySetDao
type
- eg "builder" or "jdk"@NotNull public Collection<Capability> getSystemCapabilitiesByKey(String key)
CapabilitySetDao
Capability
which have the specified keygetSystemCapabilitiesByKey
in interface CapabilitySetDao
public void saveCapabilitySet(CapabilitySet capabilitySet)
CapabilitySetDao
saveCapabilitySet
in interface CapabilitySetDao
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.