Class DataSetAttributesImporter
java.lang.Object
org.qubership.atp.dataset.ei.service.DataSetAttributesImporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAndCorrectName(DataSetAttribute object) Check and correct name.voidfillRepMapWithSourceTargetValues(Map<UUID, UUID> replacementMap, Path workDir) Fills Replacement map with attributes, attributes keys and list source-target values.getDsAttributeIds(Path workDir) Gets Dataset attribute ids.getDsAttributeKeysIds(Path workDir) Gets Dataset attribute keys ids.getDsListValuesIds(Path workDir) Gets Dataset list values ids.voidimportDataSetAttributeKeys(Path workDir, org.qubership.atp.ei.node.dto.ExportImportData importData) Import data set attribute keys.voidimportDataSetAttributes(Path workDir, List<UUID> dataSetLists, org.qubership.atp.ei.node.dto.ExportImportData importData) Import data set attributes.validateDataSetAttributes(Path workDir, Map<UUID, UUID> repMap, boolean isInterProjectImport) Validate data set attributes list.
-
Constructor Details
-
DataSetAttributesImporter
public DataSetAttributesImporter()
-
-
Method Details
-
importDataSetAttributes
public void importDataSetAttributes(Path workDir, List<UUID> dataSetLists, org.qubership.atp.ei.node.dto.ExportImportData importData) Import data set attributes.- Parameters:
workDir- the work dirdataSetLists- the data set lists
-
checkAndCorrectName
Check and correct name.- Parameters:
object- the object
-
importDataSetAttributeKeys
public void importDataSetAttributeKeys(Path workDir, org.qubership.atp.ei.node.dto.ExportImportData importData) throws IOException Import data set attribute keys.- Parameters:
workDir- the work dir- Throws:
IOException
-
getDsAttributeIds
Gets Dataset attribute ids.- Parameters:
workDir- the work dir- Returns:
- the object ids
-
getDsAttributeKeysIds
Gets Dataset attribute keys ids.- Parameters:
workDir- the work dir- Returns:
- the object ids
-
getDsListValuesIds
Gets Dataset list values ids.- Parameters:
workDir- the work dir- Returns:
- the object ids
-
validateDataSetAttributes
public List<String> validateDataSetAttributes(Path workDir, Map<UUID, UUID> repMap, boolean isInterProjectImport) Validate data set attributes list.- Parameters:
workDir- the work dir- Returns:
- the list
-
fillRepMapWithSourceTargetValues
Fills Replacement map with attributes, attributes keys and list source-target values.- Parameters:
replacementMap- the replacement mapworkDir- the work dir
-