public class CapabilityDaoImpl extends BambooHibernateObjectDao<Capability> implements CapabilityDao
Constructor and Description |
---|
CapabilityDaoImpl() |
Modifier and Type | Method and Description |
---|---|
Collection<Capability> |
findCapabilitiesMatchingPrefix(String capabilityKeyPrefix) |
List<Long> |
getAgentIdsFromKey(String capabilityKey) |
List<CapabilityAgentMapping> |
getCapabilitiesFromKey(String capabilityKey) |
Capability |
getCapability(Long capabilityId) |
List<CapabilityElasticImageMapping> |
getElasticImageCapabilitiesFromKey(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region,
String capabilityKey) |
List<Pair<Requirement,PlanKey>> |
getImmutablePlansKeysByRequirementKey(String requirementKey) |
List<RequirementPlanMapping> |
getRequirementsFromKey(String requirementKey) |
void |
removeCapability(Long capabilityId) |
void |
setPlanDiscriminatorRegistry(PlanDiscriminatorRegistry planDiscriminatorRegistry) |
void |
updateCapability(Long capabilityId,
String value) |
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@NotNull public List<CapabilityAgentMapping> getCapabilitiesFromKey(@NotNull String capabilityKey)
getCapabilitiesFromKey
in interface CapabilityDao
@NotNull public List<CapabilityElasticImageMapping> getElasticImageCapabilitiesFromKey(@NotNull com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region, @NotNull String capabilityKey)
getElasticImageCapabilitiesFromKey
in interface CapabilityDao
@NotNull public List<Long> getAgentIdsFromKey(@NotNull String capabilityKey)
getAgentIdsFromKey
in interface CapabilityDao
@NotNull public List<RequirementPlanMapping> getRequirementsFromKey(@NotNull String requirementKey)
getRequirementsFromKey
in interface CapabilityDao
@NotNull public List<Pair<Requirement,PlanKey>> getImmutablePlansKeysByRequirementKey(@NotNull String requirementKey)
getImmutablePlansKeysByRequirementKey
in interface CapabilityDao
@NotNull public Collection<Capability> findCapabilitiesMatchingPrefix(@NotNull String capabilityKeyPrefix)
findCapabilitiesMatchingPrefix
in interface CapabilityDao
@Nullable public Capability getCapability(@NotNull Long capabilityId)
getCapability
in interface CapabilityDao
public void removeCapability(@NotNull Long capabilityId)
removeCapability
in interface CapabilityDao
public void updateCapability(@NotNull Long capabilityId, @NotNull String value)
updateCapability
in interface CapabilityDao
public void setPlanDiscriminatorRegistry(PlanDiscriminatorRegistry planDiscriminatorRegistry)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.