private static boolean resultOkay(SingleSearchResult res) {
		boolean isInValidShare = res.isInValidShare();
		if (!isInValidShare) {
			return false;
		}
		boolean canRead = res.canRead();
		if (!canRead) {
			return false;
		}
		boolean isUnshareable;
		try {
			isUnshareable = Configuration.instance().isUnshareableFile(
					new File(ShareManager.instance().getShare(
							res.getShareName()).getFileLocation(), res
							.getFileName()).getCanonicalPath());
		} catch (IOException ioe) {
			isUnshareable = true;
		}
		if (isUnshareable) {
			return false;
		}
		boolean isHidden = res.isHidden();
		if (isHidden) {
			return false;
		}
		return true;
	}