java.lang.Object
org.qubership.integration.platform.runtime.catalog.service.exportimport.instructions.ImportInstructionsService

@Service public class ImportInstructionsService extends Object
  • Field Details

  • 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

      public List<org.qubership.integration.platform.catalog.persistence.configs.entity.instructions.ImportInstruction> getImportInstructionsForPreview(File importInstructionsConfigFile)
    • 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

      public org.apache.commons.lang3.tuple.Pair<String,byte[]> exportImportInstructions()
    • performChainIgnoreOverrideInstructions

      @Transactional(propagation=REQUIRES_NEW) public ChainsIgnoreOverrideResult performChainIgnoreOverrideInstructions(Collection<String> chainsToImport)
    • performServiceIgnoreInstructions

      public IgnoreResult performServiceIgnoreInstructions(Collection<String> servicesToImport, boolean includeResults)