Class ImportLoaderSection
java.lang.Object
org.qubership.atp.mia.ei.component.ImportLoader<ExportImportEntities,SectionConfiguration,ExportImportSection>
org.qubership.atp.mia.ei.component.ImportLoaderSection
@Component
public class ImportLoaderSection
extends ImportLoader<ExportImportEntities,SectionConfiguration,ExportImportSection>
-
Field Summary
Fields inherited from class org.qubership.atp.mia.ei.component.ImportLoader
EI_CONFLICT, objectLoaderFromDiskService -
Constructor Summary
ConstructorsConstructorDescriptionImportLoaderSection(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, ExportImportSection exportImportSection) 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
-
ImportLoaderSection
public ImportLoaderSection(@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,SectionConfiguration, ExportImportSection> - Returns:
- class
-
getEntityType
Description copied from class:ImportLoaderGet entity type.- Specified by:
getEntityTypein classImportLoader<ExportImportEntities,SectionConfiguration, ExportImportSection> - 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,SectionConfiguration, ExportImportSection>
-
toEntity
public SectionConfiguration toEntity(ProjectConfiguration projectConfiguration, ExportImportSection exportImportSection) Description copied from class:ImportLoaderConvert model from to.- Specified by:
toEntityin classImportLoader<ExportImportEntities,SectionConfiguration, ExportImportSection> - Parameters:
projectConfiguration- project configurationexportImportSection- 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,SectionConfiguration, ExportImportSection> - Parameters:
projectConfiguration- projectConfigurationimportData- importDatapath- path to load objects- Returns:
- List of IDs to be imported
- Throws:
MiaException- if validation failed
-