private void updateExportMaskDetailInDB(List<HostStorageDomain> hsdsWithInitiators,List<Path> allHSDPaths,ExportMask exportMask,StorageSystem storage,VolumeURIHLU[] volumeURIHLUs){
  StringSetMap deviceDataMap=new StringSetMap();
  for (  HostStorageDomain hsd : hsdsWithInitiators) {
    StringSet targetPortSet=new StringSet();
    List<String> hsdPorts=Arrays.asList(hsd.getPortID());
    List<String> targetPortURIs=getStoragePortURIs(hsdPorts,storage);
    targetPortSet.addAll(targetPortURIs);
    deviceDataMap.put(hsd.getObjectID(),targetPortSet);
  }
  exportMask.addDeviceDataMap(deviceDataMap);
  updateVolumeHLUInfo(volumeURIHLUs,allHSDPaths,exportMask);
  dbClient.updateObject(exportMask);
  log.info("ExportMask: {} details updated successfully.",exportMask.getId());
}

private void updateExportMaskDetailInDB ( List < HostStorageDomain > hsdsWithInitiators , List < Path > allHSDPaths , ExportMask exportMask , StorageSystem storage , VolumeURIHLU [ ] volumeURIHLUs ) { StringSetMap deviceDataMap = new StringSetMap ( ) ; for ( HostStorageDomain hsd : hsdsWithInitiators ) { StringSet targetPortSet = new StringSet ( ) ; List < String > hsdPorts = Arrays . asList ( hsd . getPortID ( ) ) ; List < String > targetPortURIs = getStoragePortURIs ( hsdPorts , storage ) ; targetPortSet . addAll ( targetPortURIs ) ; deviceDataMap . put ( hsd . getObjectID ( ) , targetPortSet ) ; } exportMask . addDeviceDataMap ( deviceDataMap ) ; updateVolumeHLUInfo ( volumeURIHLUs , allHSDPaths , exportMask ) ; dbClient . updateObject ( exportMask ) ; log . info ( "ExportMask: {} details updated successfully." , exportMask . getId ( ) ) ; }
updates exportmask details like volumes , hsd ' s & target port details in db .
