+ public Pager<Marker> list(User creator, MarkerType markerType,Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {\r
+ Integer numberOfResults = dao.count(creator,markerType);\r
+ \r
+ List<Marker> results = new ArrayList<Marker>();\r
+ if(numberOfResults > 0) { // no point checking again //TODO use AbstractPagerImpl.hasResultsInRange(numberOfResults, pageNumber, pageSize)\r
+ results = dao.list(creator,markerType, pageSize, pageNumber, orderHints, propertyPaths);\r
+ }\r
+ \r
+ return new DefaultPagerImpl<Marker>(pageNumber, numberOfResults, pageSize, results);\r
+ }\r
+\r
+ public int count(User creator, MarkerType markerType) {\r
+ return dao.count(creator,markerType);\r
+ }\r