public VNXeNfsShare findSnapNfsShare(String snapId,String shareName,String softwareVersion){
  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.SNAP_FILTER);
    queryFilter.append(snapId);
  }
 else {
    queryFilter.append("\"" + shareName + "\"");
    queryFilter.append(VNXeConstants.AND);
    queryFilter.append(VNXeConstants.SNAP_FILTER_V31);
    queryFilter.append("\"" + snapId + "\"");
  }
  setFilter(queryFilter.toString());
  VNXeNfsShare result=null;
  List<VNXeNfsShare> shareList=getDataForObjects(VNXeNfsShare.class);
  if (shareList != null && !shareList.isEmpty()) {
    result=shareList.get(0);
    _logger.info("Snapshot : {} NFS share named : {} found",snapId,shareName);
  }
 else {
    _logger.info("No snapshot share found using the snapId : {}, nfsShare name: {} ",snapId,shareName);
  }
  return result;
}

public VNXeNfsShare findSnapNfsShare ( String snapId , String shareName , String softwareVersion ) { 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 . SNAP_FILTER ) ; queryFilter . append ( snapId ) ; } else { queryFilter . append ( "\"" + shareName + "\"" ) ; queryFilter . append ( VNXeConstants . AND ) ; queryFilter . append ( VNXeConstants . SNAP_FILTER_V31 ) ; queryFilter . append ( "\"" + snapId + "\"" ) ; } setFilter ( queryFilter . toString ( ) ) ; VNXeNfsShare result = null ; List < VNXeNfsShare > shareList = getDataForObjects ( VNXeNfsShare . class ) ; if ( shareList != null && ! shareList . isEmpty ( ) ) { result = shareList . get ( 0 ) ; _logger . info ( "Snapshot : {} NFS share named : {} found" , snapId , shareName ) ; } else { _logger . info ( "No snapshot share found using the snapId : {}, nfsShare name: {} " , snapId , shareName ) ; } return result ; }
find snapshot nfsshare using snapshot id and share name
