Class ImportInstructionsService
java.lang.Object
org.qubership.integration.platform.runtime.catalog.service.exportimport.instructions.ImportInstructionsService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImportInstructionsService(String instructionsFileName, org.qubership.integration.platform.catalog.persistence.configs.repository.instructions.ImportInstructionsRepository importInstructionsRepository, org.qubership.integration.platform.catalog.mapping.exportimport.instructions.GeneralInstructionsMapper generalInstructionsMapper, org.qubership.integration.platform.catalog.mapping.exportimport.instructions.ServiceInstructionsMapper serviceInstructionsMapper, ChainService chainService, DeploymentService deploymentService, SystemService systemService, SpecificationGroupService specificationGroupService, SystemModelService systemModelService, CommonVariablesImportService commonVariablesImportService, org.qubership.integration.platform.catalog.mapping.exportimport.instructions.CommonVariablesInstructionsMapper commonVariablesInstructionsMapper, org.qubership.integration.platform.catalog.validation.EntityValidator entityValidator, org.qubership.integration.platform.catalog.service.ActionsLogService actionsLogService) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.lang3.tuple.Pair<String, byte[]> List<org.qubership.integration.platform.catalog.persistence.configs.entity.instructions.ImportInstruction> List<org.qubership.integration.platform.catalog.persistence.configs.entity.instructions.ImportInstruction> List<org.qubership.integration.platform.catalog.persistence.configs.entity.instructions.ImportInstruction> getChainImportInstructions(Collection<org.qubership.integration.platform.catalog.model.exportimport.instructions.ImportInstructionAction> actions) List<org.qubership.integration.platform.catalog.persistence.configs.entity.instructions.ImportInstruction> getImportInstructionsForPreview(File importInstructionsConfigFile) List<org.qubership.integration.platform.catalog.persistence.configs.entity.instructions.ImportInstruction> getServiceImportInstructions(Collection<org.qubership.integration.platform.catalog.model.exportimport.instructions.ImportInstructionAction> actions) org.qubership.integration.platform.catalog.model.exportimport.instructions.ImportInstructionsConfiggetServiceImportInstructionsConfig(Collection<org.qubership.integration.platform.catalog.model.exportimport.instructions.ImportInstructionAction> actions) performChainIgnoreOverrideInstructions(Collection<String> chainsToImport) performServiceIgnoreInstructions(Collection<String> servicesToImport, boolean includeResults) List<org.qubership.integration.platform.catalog.persistence.configs.entity.instructions.ImportInstruction> saveImportInstructions(org.qubership.integration.platform.catalog.model.exportimport.instructions.GeneralImportInstructionsConfig generalImportInstructionsConfig) uploadImportInstructionsConfig(File file, Set<String> labels) uploadImportInstructionsConfig(org.springframework.web.multipart.MultipartFile file, Set<String> labels)
-
Field Details
-
UNIQUE_OVERRIDE_DB_CONSTRAINT_NAME
- See Also:
-
-
Constructor Details
-
ImportInstructionsService
@Autowired public ImportInstructionsService(@Value("${qip.import.instructions-filename:qip-import-instructions}") String instructionsFileName, org.qubership.integration.platform.catalog.persistence.configs.repository.instructions.ImportInstructionsRepository importInstructionsRepository, org.qubership.integration.platform.catalog.mapping.exportimport.instructions.GeneralInstructionsMapper generalInstructionsMapper, org.qubership.integration.platform.catalog.mapping.exportimport.instructions.ServiceInstructionsMapper serviceInstructionsMapper, ChainService chainService, DeploymentService deploymentService, SystemService systemService, SpecificationGroupService specificationGroupService, SystemModelService systemModelService, CommonVariablesImportService commonVariablesImportService, org.qubership.integration.platform.catalog.mapping.exportimport.instructions.CommonVariablesInstructionsMapper commonVariablesInstructionsMapper, org.qubership.integration.platform.catalog.validation.EntityValidator entityValidator, org.qubership.integration.platform.catalog.service.ActionsLogService actionsLogService)
-
-
Method Details
-
getCatalogImportInstructions
public List<org.qubership.integration.platform.catalog.persistence.configs.entity.instructions.ImportInstruction> getCatalogImportInstructions() -
getAllImportInstructions
public List<org.qubership.integration.platform.catalog.persistence.configs.entity.instructions.ImportInstruction> getAllImportInstructions() -
getChainImportInstructions
public List<org.qubership.integration.platform.catalog.persistence.configs.entity.instructions.ImportInstruction> getChainImportInstructions(Collection<org.qubership.integration.platform.catalog.model.exportimport.instructions.ImportInstructionAction> actions) -
getServiceImportInstructions
public List<org.qubership.integration.platform.catalog.persistence.configs.entity.instructions.ImportInstruction> getServiceImportInstructions(Collection<org.qubership.integration.platform.catalog.model.exportimport.instructions.ImportInstructionAction> actions) -
getServiceImportInstructionsConfig
public org.qubership.integration.platform.catalog.model.exportimport.instructions.ImportInstructionsConfig getServiceImportInstructionsConfig(Collection<org.qubership.integration.platform.catalog.model.exportimport.instructions.ImportInstructionAction> actions) -
getImportInstructionsForPreview
-
saveImportInstructions
public List<org.qubership.integration.platform.catalog.persistence.configs.entity.instructions.ImportInstruction> saveImportInstructions(org.qubership.integration.platform.catalog.model.exportimport.instructions.GeneralImportInstructionsConfig generalImportInstructionsConfig) -
uploadImportInstructionsConfig
@Transactional(propagation=REQUIRES_NEW) public List<ImportInstructionResult> uploadImportInstructionsConfig(org.springframework.web.multipart.MultipartFile file, Set<String> labels) -
uploadImportInstructionsConfig
@Transactional(propagation=REQUIRES_NEW) public List<ImportInstructionResult> uploadImportInstructionsConfig(File file, Set<String> labels) -
exportImportInstructions
-
performChainIgnoreOverrideInstructions
@Transactional(propagation=REQUIRES_NEW) public ChainsIgnoreOverrideResult performChainIgnoreOverrideInstructions(Collection<String> chainsToImport) -
performServiceIgnoreInstructions
public IgnoreResult performServiceIgnoreInstructions(Collection<String> servicesToImport, boolean includeResults)
-