public VNXeNfsShare findNfsShare(String fsId,String shareName,String softwareVersion){
  VNXeNfsShare result=null;
  StringBuilder queryFilter=new StringBuilder(VNXeConstants.NAME_FILTER);
  if (!VNXeUtils.isHigherVersion(softwareVersion,VNXeConstants.VNXE_BASE_SOFT_VER)) {
    queryFilter.append(shareName);
    queryFilter.append(VNXeConstants.AND);
    queryFilter.append(VNXeConstants.FILE_SYSTEM_FILTER);
    queryFilter.append(fsId);
  }
 else {
    queryFilter.append("\"" + shareName + "\"");
    queryFilter.append(VNXeConstants.AND);
    queryFilter.append(VNXeConstants.FILE_SYSTEM_FILTER_V31);
    queryFilter.append("\"" + fsId + "\"");
  }
  setFilter(queryFilter.toString());
  List<VNXeNfsShare> shareList=getDataForObjects(VNXeNfsShare.class);
  if (shareList != null && !shareList.isEmpty()) {
    result=shareList.get(0);
    _logger.info("File system : {} NFS share named : {} found",fsId,shareName);
  }
 else {
    _logger.info("No file system share found using the fs id: {}, nfsShare name: {} ",fsId,shareName);
  }
  return result;
}

public VNXeNfsShare findNfsShare ( String fsId , String shareName , String softwareVersion ) { VNXeNfsShare result = null ; StringBuilder queryFilter = new StringBuilder ( VNXeConstants . NAME_FILTER ) ; if ( ! VNXeUtils . isHigherVersion ( softwareVersion , VNXeConstants . VNXE_BASE_SOFT_VER ) ) { queryFilter . append ( shareName ) ; queryFilter . append ( VNXeConstants . AND ) ; queryFilter . append ( VNXeConstants . FILE_SYSTEM_FILTER ) ; queryFilter . append ( fsId ) ; } else { queryFilter . append ( "\"" + shareName + "\"" ) ; queryFilter . append ( VNXeConstants . AND ) ; queryFilter . append ( VNXeConstants . FILE_SYSTEM_FILTER_V31 ) ; queryFilter . append ( "\"" + fsId + "\"" ) ; } setFilter ( queryFilter . toString ( ) ) ; List < VNXeNfsShare > shareList = getDataForObjects ( VNXeNfsShare . class ) ; if ( shareList != null && ! shareList . isEmpty ( ) ) { result = shareList . get ( 0 ) ; _logger . info ( "File system : {} NFS share named : {} found" , fsId , shareName ) ; } else { _logger . info ( "No file system share found using the fs id: {}, nfsShare name: {} " , fsId , shareName ) ; } return result ; }
find nfsshare using filesystem id and share name
