private void updateFileSystem(VNXeApiClient apiClient,DbClient dbClient,FileShare fsObj){
  SMBShareMap shareMap=fsObj.getSMBFileShares();
  if (shareMap == null) {
    shareMap=new SMBShareMap();
    fsObj.setSMBFileShares(shareMap);
  }
  VNXeCifsShare vnxeShare=apiClient.findCifsShareByName(smbShare.getName());
  if (vnxeShare != null) {
    smbShare.setNativeId(vnxeShare.getId());
    SMBFileShare share=smbShare.getSMBFileShare();
    share.setMountPoint(share.getNetBIOSName(),share.getStoragePortNetworkId(),share.getStoragePortName(),share.getName());
    shareMap.put(share.getName(),share);
    createDefaultACEForShare(dbClient,fsObj.getId(),smbShare);
  }
 else {
    _logger.error("Could not find the smbShare : {} in vnxe",smbShare.getName());
    setErrorStatus(String.format("Could not find the smbShare: %s in the VNXe array",smbShare.getName()));
  }
  dbClient.persistObject(fsObj);
}

private void updateFileSystem ( VNXeApiClient apiClient , DbClient dbClient , FileShare fsObj ) { SMBShareMap shareMap = fsObj . getSMBFileShares ( ) ; if ( shareMap == null ) { shareMap = new SMBShareMap ( ) ; fsObj . setSMBFileShares ( shareMap ) ; } VNXeCifsShare vnxeShare = apiClient . findCifsShareByName ( smbShare . getName ( ) ) ; if ( vnxeShare != null ) { smbShare . setNativeId ( vnxeShare . getId ( ) ) ; SMBFileShare share = smbShare . getSMBFileShare ( ) ; share . setMountPoint ( share . getNetBIOSName ( ) , share . getStoragePortNetworkId ( ) , share . getStoragePortName ( ) , share . getName ( ) ) ; shareMap . put ( share . getName ( ) , share ) ; createDefaultACEForShare ( dbClient , fsObj . getId ( ) , smbShare ) ; } else { _logger . error ( "Could not find the smbShare : {} in vnxe" , smbShare . getName ( ) ) ; setErrorStatus ( String . format ( "Could not find the smbShare: %s in the VNXe array" , smbShare . getName ( ) ) ) ; } dbClient . persistObject ( fsObj ) ; }
update file system object with the smb share .
