@Override
@CatalogCacheable(cacheName="coursesCatalog")
public long countUpdatedCourses(Date from, Boolean reglated) {
ArrayList<GaeFilter> filters = new ArrayList<GaeFilter>();
if(from != null) {
GaeFilter filter = new GaeFilter("updated", FilterOperator.GREATER_THAN_OR_EQUAL, from);
filters.add(filter);
}
if(reglated != null) {
GaeFilter filter = new GaeFilter("regulated", FilterOperator.EQUAL, reglated);
filters.add(filter);
}
return this.DAO.count(Course.class, filters);
}