@Repository public interface TransportConfigurationRepository extends StorableRepository<TransportConfiguration>
| Modifier and Type | Method and Description |
|---|---|
Collection<TransportConfiguration> |
findByProjectId(BigInteger projectId) |
TransportConfiguration |
findTransportByEcId(String ecId) |
Collection<TransportConfiguration> |
findUsagesTemplateOnTransport(BigInteger templateId) |
Collection<String> |
getEcProjectIds(BigInteger projectId) |
Collection<TransportConfiguration> |
getTransportsByEcProject(String ecProjectId) |
List<BigInteger> |
getTransportTriggersByTransportConfigurationId(BigInteger transportId) |
void |
unbindByEcProject(String ecProjectId) |
findByParentID, findByParentIDAndName, findByParentNamefindByName, findByNameContainingIgnoreCase, findByNaturalIddeleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushfindAll@Query(value="select transport from TransportConfiguration transport where transport.ecId = :ecId") TransportConfiguration findTransportByEcId(@Param(value="ecId") String ecId)
@Query(value="select conf.ec_project_id from mb_configuration as conf inner join mb_systems as sys on sys.id = conf.parent_system_id where conf.ec_project_id is not null and type = \'transport\' AND sys.project_id = :projectId group by conf.ec_project_id",
nativeQuery=true)
Collection<String> getEcProjectIds(@Param(value="projectId")
BigInteger projectId)
@Modifying
@Query(value="update mb_configuration set ec_project_id = null, ec_id = null where ec_project_id = :ecProjectId and type = \'transport\'",
nativeQuery=true)
void unbindByEcProject(@Param(value="ecProjectId")
String ecProjectId)
@Query(value="select transport from TransportConfiguration transport where transport.ecProjectId = :ecProjectId") Collection<TransportConfiguration> getTransportsByEcProject(@Param(value="ecProjectId") String ecProjectId)
@Query(value="select configuration from TransportConfiguration configuration inner join System as system on system = configuration.parent where system.projectId = :projectId") Collection<TransportConfiguration> findByProjectId(@Param(value="projectId") BigInteger projectId)
@Query(value="select id from mb_configuration where parent_conf_id in (select id from mb_configuration where transport_id = :transportId)",
nativeQuery=true)
List<BigInteger> getTransportTriggersByTransportConfigurationId(@Param(value="transportId")
BigInteger transportId)
@Query(value="select conf.* from mb_configuration conf where type_name = \'org.qubership.automation.itf.transport.diameter.outbound.DiameterOutbound\' and type = \'transport\' and ((cast(conf.params as jsonb) @> (cast((concat(\'{\"DPR\":\"\', :templateId, \'\"}\')) as jsonb))) or (cast(conf.params as jsonb) @> (cast((concat(\'{\"dwa\":\"\', :templateId, \'\"}\')) as jsonb))) or (cast(conf.params as jsonb) @> (cast((concat(\'{\"CER\":\"\', :templateId, \'\"}\')) as jsonb))) or (cast(conf.params as jsonb) @> (cast((concat(\'{\"DPA\":\"\', :templateId, \'\"}\')) as jsonb))))",
nativeQuery=true)
Collection<TransportConfiguration> findUsagesTemplateOnTransport(@Param(value="templateId")
BigInteger templateId)
Copyright © 2025. All rights reserved.