Class ChainImportService
java.lang.Object
org.qubership.integration.platform.runtime.catalog.service.exportimport.ChainImportService
-
Constructor Summary
ConstructorsConstructorDescriptionChainImportService(com.fasterxml.jackson.dataformat.yaml.YAMLMapper yamlMapper, org.springframework.transaction.support.TransactionTemplate transactionTemplate, List<ChainImportFileMigration> chainImportFileMigrations, ChainService chainService, FolderService folderService, SnapshotService snapshotService, DeploymentService deploymentService, EngineService engineService, ChainExternalEntityMapper chainExternalEntityMapper, ImportSessionService importProgressService, org.qubership.integration.platform.catalog.service.ActionsLogService actionsLogService, DependencyService dependencyService, ElementService elementService, MaskedFieldsService maskedFieldsService, org.qubership.integration.platform.catalog.service.difference.ChainDifferenceService chainDifferenceService, ImportInstructionsService importInstructionsService) -
Method Summary
Modifier and TypeMethodDescriptionorg.qubership.integration.platform.catalog.service.difference.EntityDifferenceResultcompareChains(File importDirectory, org.qubership.integration.platform.catalog.service.difference.ChainDifferenceRequest diffRequest) getChainsImportPreview(File importDirectory, org.qubership.integration.platform.catalog.model.exportimport.instructions.ChainImportInstructionsConfig instructionsConfig) importChains(File importDirectory, List<ChainCommitRequest> commitRequests, String importId, Set<String> technicalLabels, boolean validateByHash) protected StringmigrateToActualFileVersion(String fileContent) static voidreplaceTechnicalLabels(Set<String> technicalLabels, org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain chain) restoreChainsFromDirBackward(File importDirectory, List<ChainCommitRequest> commitRequests, String importId, Set<String> technicalLabels) Deprecated.saveImportedChain(ChainExternalEntity chainExternalEntity, File chainFilesDir, Set<String> technicalLabels) voidsaveImportedChainBackward(org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain importedChain) Deprecated.
-
Constructor Details
-
ChainImportService
@Autowired public ChainImportService(com.fasterxml.jackson.dataformat.yaml.YAMLMapper yamlMapper, org.springframework.transaction.support.TransactionTemplate transactionTemplate, List<ChainImportFileMigration> chainImportFileMigrations, ChainService chainService, FolderService folderService, SnapshotService snapshotService, DeploymentService deploymentService, EngineService engineService, ChainExternalEntityMapper chainExternalEntityMapper, ImportSessionService importProgressService, org.qubership.integration.platform.catalog.service.ActionsLogService actionsLogService, DependencyService dependencyService, ElementService elementService, MaskedFieldsService maskedFieldsService, org.qubership.integration.platform.catalog.service.difference.ChainDifferenceService chainDifferenceService, ImportInstructionsService importInstructionsService)
-
-
Method Details
-
getChainsImportPreview
public List<ImportChainPreviewDTO> getChainsImportPreview(File importDirectory, org.qubership.integration.platform.catalog.model.exportimport.instructions.ChainImportInstructionsConfig instructionsConfig) -
compareChains
public org.qubership.integration.platform.catalog.service.difference.EntityDifferenceResult compareChains(File importDirectory, org.qubership.integration.platform.catalog.service.difference.ChainDifferenceRequest diffRequest) -
importChains
public ImportChainsAndInstructionsResult importChains(File importDirectory, List<ChainCommitRequest> commitRequests, String importId, Set<String> technicalLabels, boolean validateByHash) -
saveImportedChain
public ImportChainResult saveImportedChain(ChainExternalEntity chainExternalEntity, File chainFilesDir, Set<String> technicalLabels) -
replaceTechnicalLabels
-
migrateToActualFileVersion
- Throws:
Exception
-
restoreChainsFromDirBackward
@Deprecated(since="2023.4") public List<ImportChainResult> restoreChainsFromDirBackward(File importDirectory, List<ChainCommitRequest> commitRequests, String importId, Set<String> technicalLabels) Deprecated. -
saveImportedChainBackward
@Deprecated(since="2023.4") public void saveImportedChainBackward(org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain importedChain) Deprecated.
-