Skip to content

Commit

Permalink
Revert "change catalog list to use longs"
Browse files Browse the repository at this point in the history
This reverts commit 1db2ff5.
  • Loading branch information
jdeolive committed Jan 18, 2016
1 parent 6c28905 commit 69fb9fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/src/main/java/org/geoserver/catalog/Catalog.java
@@ -1,4 +1,4 @@
/* (c) 2014 Open Source Geospatial Foundation - all rights reserved /* (c) 2014 - 2016 Open Source Geospatial Foundation - all rights reserved
* (c) 2001 - 2013 OpenPlans * (c) 2001 - 2013 OpenPlans
* This code is licensed under the GPL 2.0 license, available at the root * This code is licensed under the GPL 2.0 license, available at the root
* application directory. * application directory.
Expand Down
Expand Up @@ -791,6 +791,6 @@ public <T extends CatalogInfo> CloseableIterator<T> list(final Class<T> of,
* filter * filter
*/ */
public <T extends CatalogInfo> CloseableIterator<T> list(final Class<T> of, public <T extends CatalogInfo> CloseableIterator<T> list(final Class<T> of,
final Filter filter, @Nullable Long offset, @Nullable Long count, final Filter filter, @Nullable Integer offset, @Nullable Integer count,
@Nullable SortBy... sortOrder); @Nullable SortBy... sortOrder);
} }
Expand Up @@ -1790,7 +1790,7 @@ public <T extends CatalogInfo> CloseableIterator<T> list(final Class<T> of,


@Override @Override
public <T extends CatalogInfo> CloseableIterator<T> list(final Class<T> of, public <T extends CatalogInfo> CloseableIterator<T> list(final Class<T> of,
final Filter filter, Long offset, Long count, SortBy sortOrder) { final Filter filter, Integer offset, Integer count, SortBy sortOrder) {
CatalogFacade facade = getFacade(); CatalogFacade facade = getFacade();
if (sortOrder != null && !facade.canSort(of, sortOrder.getPropertyName().getPropertyName())) { if (sortOrder != null && !facade.canSort(of, sortOrder.getPropertyName().getPropertyName())) {
// TODO: use GeoTools' merge-sort code to provide sorting anyways // TODO: use GeoTools' merge-sort code to provide sorting anyways
Expand All @@ -1804,7 +1804,7 @@ public <T extends CatalogInfo> CloseableIterator<T> list(final Class<T> of,
public <T extends CatalogInfo> T get(Class<T> type, Filter filter) public <T extends CatalogInfo> T get(Class<T> type, Filter filter)
throws IllegalArgumentException { throws IllegalArgumentException {


final Long limit = Long.valueOf(2); final Integer limit = Integer.valueOf(2);
CloseableIterator<T> it = list(type, filter, null, limit, null); CloseableIterator<T> it = list(type, filter, null, limit, null);
T result = null; T result = null;
try { try {
Expand Down

0 comments on commit 69fb9fd

Please sign in to comment.