public static String generateLink(Integer page, Integer nbRows, String search, String orderBy, String dir) {
		StringBuilder ret = new StringBuilder("dashboard?");

		if(page != null && page != 0)
			ret.append("&page=").append(page);
		
		if(nbRows != null)
			ret.append("&nbrows=").append(nbRows);
		
		if(search != null && search != "")
			ret.append("&search=").append(search);
		
		if(orderBy != null && orderBy != "")
			ret.append("&orderby=").append(orderBy);
		
		if(dir != null && dir != "")
			ret.append("&dir=").append(dir);
		
		return ret.toString();
	}