Class ImportLoaderCompound
java.lang.Object
org.qubership.atp.mia.ei.component.ImportLoader<ExportImportEntities,CompoundConfiguration,ExportImportCompound>
org.qubership.atp.mia.ei.component.ImportLoaderCompound
@Component
public class ImportLoaderCompound
extends ImportLoader<ExportImportEntities,CompoundConfiguration,ExportImportCompound>
-
Field Summary
Fields inherited from class org.qubership.atp.mia.ei.component.ImportLoader
EI_CONFLICT, objectLoaderFromDiskService -
Constructor Summary
ConstructorsConstructorDescriptionImportLoaderCompound(org.qubership.atp.ei.node.services.ObjectLoaderFromDiskService objectLoaderFromDiskService) -
Method Summary
Modifier and TypeMethodDescriptiongetClazz()Get class of import entity.Get entity type.voidimportEntity(ProjectConfiguration projectConfiguration, org.qubership.atp.ei.node.dto.ExportImportData importData, Path path) Import entity.toEntity(ProjectConfiguration projectConfiguration, ExportImportCompound exportImportCompound) Convert model from to.validate(ProjectConfiguration projectConfiguration, org.qubership.atp.ei.node.dto.ExportImportData importData, Path path) Validate.Methods inherited from class org.qubership.atp.mia.ei.component.ImportLoader
loadConfiguration, replaceIdsBack
-
Constructor Details
-
ImportLoaderCompound
public ImportLoaderCompound(@Autowired org.qubership.atp.ei.node.services.ObjectLoaderFromDiskService objectLoaderFromDiskService)
-
-
Method Details
-
getClazz
Description copied from class:ImportLoaderGet class of import entity.- Specified by:
getClazzin classImportLoader<ExportImportEntities,CompoundConfiguration, ExportImportCompound> - Returns:
- class
-
getEntityType
Description copied from class:ImportLoaderGet entity type.- Specified by:
getEntityTypein classImportLoader<ExportImportEntities,CompoundConfiguration, ExportImportCompound> - Returns:
- entity type
-
importEntity
public void importEntity(ProjectConfiguration projectConfiguration, org.qubership.atp.ei.node.dto.ExportImportData importData, Path path) Description copied from class:ImportLoaderImport entity.- Specified by:
importEntityin classImportLoader<ExportImportEntities,CompoundConfiguration, ExportImportCompound>
-
toEntity
public CompoundConfiguration toEntity(ProjectConfiguration projectConfiguration, ExportImportCompound exportImportCompound) Description copied from class:ImportLoaderConvert model from to.- Specified by:
toEntityin classImportLoader<ExportImportEntities,CompoundConfiguration, ExportImportCompound> - Parameters:
projectConfiguration- project configurationexportImportCompound- model from- Returns:
- model to
-
validate
public List<UUID> validate(ProjectConfiguration projectConfiguration, org.qubership.atp.ei.node.dto.ExportImportData importData, Path path) throws MiaException Description copied from class:ImportLoaderValidate.- Specified by:
validatein classImportLoader<ExportImportEntities,CompoundConfiguration, ExportImportCompound> - Parameters:
projectConfiguration- projectConfigurationimportData- importDatapath- path to load objects- Returns:
- List of IDs to be imported
- Throws:
MiaException- if validation failed
-