Package com.atlassian.bamboo.capability
Class CapabilityDaoImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<Capability>
com.atlassian.bamboo.capability.CapabilityDaoImpl
- All Implemented Interfaces:
CapabilityDao
,BambooObjectDao<Capability>
,org.springframework.beans.factory.InitializingBean
public class CapabilityDaoImpl
extends BambooHibernateObjectDao<Capability>
implements CapabilityDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<Capability>
findCapabilitiesMatchingPrefix
(@NotNull String capabilityKeyPrefix) getAgentIdsFromKey
(@NotNull String capabilityKey) @NotNull List<CapabilityAgentMapping>
getCapabilitiesFromKey
(@NotNull String capabilityKey) @Nullable Capability
getCapability
(@NotNull Long capabilityId) @NotNull List<CapabilityElasticImageMapping>
getElasticImageCapabilitiesFromKey
(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region, @NotNull String capabilityKey) getEphemeralAgentTemplateCapabilitiesFromKey
(@NotNull String capabilityKey) @NotNull List<Pair<Requirement,
PlanKey>> getImmutablePlansKeysByRequirementKey
(@NotNull String requirementKey) @NotNull List<RequirementPlanMapping>
getRequirementsFromKey
(@NotNull String requirementKey) void
removeCapability
(@NotNull Long capabilityId) void
setPlanDiscriminatorRegistry
(PlanDiscriminatorRegistry planDiscriminatorRegistry) void
updateCapability
(@NotNull Long capabilityId, @NotNull String value) Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
convertSearchTermToLikeExpression, countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
Constructor Details
-
CapabilityDaoImpl
public CapabilityDaoImpl()
-
-
Method Details
-
getCapabilitiesFromKey
@NotNull public @NotNull List<CapabilityAgentMapping> getCapabilitiesFromKey(@NotNull @NotNull String capabilityKey) - Specified by:
getCapabilitiesFromKey
in interfaceCapabilityDao
-
getElasticImageCapabilitiesFromKey
@NotNull public @NotNull List<CapabilityElasticImageMapping> getElasticImageCapabilitiesFromKey(@NotNull com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region, @NotNull @NotNull String capabilityKey) - Specified by:
getElasticImageCapabilitiesFromKey
in interfaceCapabilityDao
-
getEphemeralAgentTemplateCapabilitiesFromKey
public List<CapabilityEphemeralAgentTemplateMapping> getEphemeralAgentTemplateCapabilitiesFromKey(@NotNull @NotNull String capabilityKey) - Specified by:
getEphemeralAgentTemplateCapabilitiesFromKey
in interfaceCapabilityDao
-
getAgentIdsFromKey
- Specified by:
getAgentIdsFromKey
in interfaceCapabilityDao
-
getRequirementsFromKey
@NotNull public @NotNull List<RequirementPlanMapping> getRequirementsFromKey(@NotNull @NotNull String requirementKey) - Specified by:
getRequirementsFromKey
in interfaceCapabilityDao
-
getImmutablePlansKeysByRequirementKey
@NotNull public @NotNull List<Pair<Requirement,PlanKey>> getImmutablePlansKeysByRequirementKey(@NotNull @NotNull String requirementKey) - Specified by:
getImmutablePlansKeysByRequirementKey
in interfaceCapabilityDao
-
findCapabilitiesMatchingPrefix
@NotNull public @NotNull Collection<Capability> findCapabilitiesMatchingPrefix(@NotNull @NotNull String capabilityKeyPrefix) - Specified by:
findCapabilitiesMatchingPrefix
in interfaceCapabilityDao
-
getCapability
- Specified by:
getCapability
in interfaceCapabilityDao
-
removeCapability
- Specified by:
removeCapability
in interfaceCapabilityDao
-
updateCapability
- Specified by:
updateCapability
in interfaceCapabilityDao
-
setPlanDiscriminatorRegistry
-