public FeatureCollection<T, F> sort(SortBy order) { // attributes should have been shaved already final FeatureCollection<T, F> fc = delegate.sort(order); if (fc == null) return null; else return (FeatureCollection) SecuredObjects.secure(fc, policy); }
public FeatureCollection<T, F> sort(SortBy order) { return delegate.sort(order); }
public SimpleFeatureCollection sort(SortBy order) { return new SimpleFeatureCollectionBridge(collection.sort(order)); }
public FeatureCollection<T, F> sort(SortBy order) { return delegate.sort(order); }
public FeatureCollection<FeatureType, Feature> sort(SortBy order) { return fc.sort(order); }
@Override public FeatureCollection<FeatureType, Feature> sort(SortBy order) { FeatureCollection sorted = delegate.sort(order); return new RetypingFeatureCollection(sorted, properties); }
@Override public SimpleFeatureCollection sort(SortBy order) { return new SimpleTimeoutCollection(timeoutVerifier, delegate.sort(order)); } }
@Override public FeatureCollection<FeatureType, Feature> sort(SortBy order) { FeatureCollection sorted = delegate.sort(order); return new RetypingFeatureCollection(sorted, properties); }
public SimpleFeatureCollection sort(SortBy order) { return new SimpleFeatureCollectionBridge( collection.sort(order) ); }
@Override public FeatureCollection<T, F> sort(SortBy order) { timeoutVerifier.checkTimeout(); return new TimeoutFeatureCollection<>(timeoutVerifier, delegate.sort(order)); }
@Test public void testReadOnly() throws Exception { SecuredFeatureStore ro = new SecuredFeatureStore(store, WrapperPolicy.readOnlyHide(null)); // let's check the iterator, should allow read but not remove FeatureCollection rofc = ro.getFeatures(); FeatureIterator roit = rofc.features(); roit.hasNext(); roit.next(); // check derived collections are still read only and share the same // challenge policy SecuredFeatureCollection sorted = (SecuredFeatureCollection) rofc.sort(SortBy.NATURAL_ORDER); assertEquals(ro.policy, sorted.policy); SecuredFeatureCollection sub = (SecuredFeatureCollection) rofc.subCollection(Filter.INCLUDE); assertEquals(ro.policy, sorted.policy); }
(SecuredFeatureCollection) rofc.sort(SortBy.NATURAL_ORDER); assertEquals(ro.policy, sorted.policy); SecuredFeatureCollection sub =