public void testSort3() {
   Filter filter = Predicates.acceptAll();
   StringBuilder build =
       QueryBuilder.forIds(dialect, WorkspaceInfo.class, dbMappings)
           .filter(filter)
           .sortOrder(Predicates.asc("foo"), Predicates.desc("bar"), Predicates.asc("baz"))
           .build();
 }
Example #2
0
 private CloseableIterator<DataStoreInfo> getDataStores() {
   Catalog catalog = getGeoServer().getCatalog();
   Filter filter = Predicates.acceptAll();
   CloseableIterator<DataStoreInfo> stores = catalog.list(DataStoreInfo.class, filter);
   return stores;
 }
Example #3
0
 @Override
 public int fullSize() {
   Filter filter = Predicates.acceptAll();
   int count = getCatalog().count(LayerInfo.class, filter);
   return count;
 }