Class ChainService
java.lang.Object
org.qubership.integration.platform.catalog.service.ChainBaseService
org.qubership.integration.platform.runtime.catalog.service.ChainService
@Service
public class ChainService
extends org.qubership.integration.platform.catalog.service.ChainBaseService
-
Field Summary
Fields inherited from class org.qubership.integration.platform.catalog.service.ChainBaseService
elementBaseService -
Constructor Summary
ConstructorsConstructorDescriptionChainService(org.qubership.integration.platform.catalog.persistence.configs.repository.chain.ChainRepository chainRepository, ElementService elementService, DeploymentService deploymentService, org.qubership.integration.platform.catalog.service.ActionsLogService actionLogger) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclearCurrentSnapshot(String chainId) Optional<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain> deleteByIdIfExists(String chainId) List<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain> findAll()List<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain> findAllById(List<String> chainIds) org.qubership.integration.platform.catalog.persistence.configs.entity.chain.ChaingetChainHash(String chainId) getSubChainsIds(List<String> chainsIds, List<String> resultChainsIds) voidoverrideModificationTimestamp(org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain chain, Timestamp timestamp) voidsetActualizedChainState(org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain currentChainState, org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain newChainState) voidsetCurrentSnapshot(String chainId, org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Snapshot snapshot) booleansetOverriddenById(String chainId, String overriddenById) booleansetOverridesChainId(String chainId, String overriddenById) Optional<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain> tryFindById(String chainId) voidupdate(org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain chain) Methods inherited from class org.qubership.integration.platform.catalog.service.ChainBaseService
isSpecificationGroupUsedByChain, isSystemModelUsedByChain, isSystemUsedByChain
-
Constructor Details
-
ChainService
@Autowired public ChainService(org.qubership.integration.platform.catalog.persistence.configs.repository.chain.ChainRepository chainRepository, ElementService elementService, @Lazy DeploymentService deploymentService, org.qubership.integration.platform.catalog.service.ActionsLogService actionLogger)
-
-
Method Details
-
exists
-
findAll
public List<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain> findAll() -
findAllById
-
findById
public org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain findById(String chainId) -
getSubChainsIds
-
tryFindById
-
setOverriddenById
-
setOverridesChainId
-
clearCurrentSnapshot
-
setCurrentSnapshot
public void setCurrentSnapshot(String chainId, org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Snapshot snapshot) -
overrideModificationTimestamp
public void overrideModificationTimestamp(org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain chain, Timestamp timestamp) -
setActualizedChainState
public void setActualizedChainState(org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain currentChainState, org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain newChainState) -
update
public void update(org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain chain) -
getChainHash
-
clearContext
public void clearContext() -
deleteByIdIfExists
-