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
-
-
Constructor Summary
Constructors Constructor Description CapabilityDaoImpl()
-
Method Summary
-
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 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
-
-
-
-
Method Detail
-
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
@NotNull public @NotNull List<Long> getAgentIdsFromKey(@NotNull @NotNull String capabilityKey)
- 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
@Nullable public @Nullable Capability getCapability(@NotNull @NotNull Long capabilityId)
- Specified by:
getCapability
in interfaceCapabilityDao
-
removeCapability
public void removeCapability(@NotNull @NotNull Long capabilityId)
- Specified by:
removeCapability
in interfaceCapabilityDao
-
updateCapability
public void updateCapability(@NotNull @NotNull Long capabilityId, @NotNull @NotNull String value)
- Specified by:
updateCapability
in interfaceCapabilityDao
-
setPlanDiscriminatorRegistry
public void setPlanDiscriminatorRegistry(PlanDiscriminatorRegistry planDiscriminatorRegistry)
-
-