Class DataSetAttributesImporter

java.lang.Object
org.qubership.atp.dataset.ei.service.DataSetAttributesImporter

@Service public class DataSetAttributesImporter extends Object
  • 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 dir
      dataSetLists - the data set lists
    • checkAndCorrectName

      public void checkAndCorrectName(DataSetAttribute object)
      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

      public List<UUID> getDsAttributeIds(Path workDir)
      Gets Dataset attribute ids.
      Parameters:
      workDir - the work dir
      Returns:
      the object ids
    • getDsAttributeKeysIds

      public List<UUID> getDsAttributeKeysIds(Path workDir)
      Gets Dataset attribute keys ids.
      Parameters:
      workDir - the work dir
      Returns:
      the object ids
    • getDsListValuesIds

      public List<UUID> getDsListValuesIds(Path workDir)
      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

      public void fillRepMapWithSourceTargetValues(Map<UUID,UUID> replacementMap, Path workDir)
      Fills Replacement map with attributes, attributes keys and list source-target values.
      Parameters:
      replacementMap - the replacement map
      workDir - the work dir