/** * DOCUMENT ME! * * @param filter DOCUMENT ME! * @throws IOException DOCUMENT ME! */ public void unLockFeatures(Filter filter) throws IOException { filter = makeDefinitionFilter(filter); locking().unLockFeatures(filter); }
public void unLockFeatures(Query query) throws IOException { Query writeQuery = getWriteQuery(policy); Query mixed = mixQueries(query, writeQuery); final Filter writeFilter = writeQuery.getFilter(); if (writeFilter == Filter.EXCLUDE) { throw unsupportedOperation(); } else if (writeFilter == Filter.INCLUDE) { lockDelegate.unLockFeatures(query); } else { lockDelegate.unLockFeatures(mixed); } } }
public void unLockFeatures(Filter filter) throws IOException { delegate().unLockFeatures(filter); }
public void unLockFeatures(Query query) throws IOException { delegate().unLockFeatures(query); } }
public void unLockFeatures() throws IOException { delegate().unLockFeatures(); }
public void unLockFeatures() throws IOException { flocking.unLockFeatures(); }
public void unLockFeatures(Query query) throws IOException { wrappedLocking.unLockFeatures(query); }
public void unLockFeatures(Query query) throws IOException { flocking.unLockFeatures(query); }
public void unLockFeatures(Filter filter) throws IOException { flocking.unLockFeatures(filter); }
public void unLockFeatures(Filter filter) throws IOException { wrappedLocking.unLockFeatures(filter); }
public void unLockFeatures() throws IOException { wrappedLocking.unLockFeatures(); }
public void testUnLockFeatures() throws IOException { FeatureLock lock = FeatureLockFactory.generate("test", LOCK_DURATION); FeatureLocking<SimpleFeatureType, SimpleFeature> road = (FeatureLocking<SimpleFeatureType, SimpleFeature>) dataStore.getFeatureSource(tname("road")); road.setFeatureLock(lock); road.lockFeatures(); try { road.unLockFeatures(); fail("unlock should fail due on AUTO_COMMIT"); } catch (IOException expected) { } try (Transaction t = new DefaultTransaction()) { road.setTransaction(t); try { road.unLockFeatures(); fail("unlock should fail due lack of authorization"); } catch (IOException expected) { } t.addAuthorization(lock.getAuthorization()); road.unLockFeatures(); } }
public void testUnLockFeatures() throws IOException { FeatureLock lock = new FeatureLock("test", 3600); @SuppressWarnings("unchecked") FeatureLocking<SimpleFeatureType, SimpleFeature> road = (FeatureLocking<SimpleFeatureType, SimpleFeature>) data.getFeatureSource("road"); road.setFeatureLock(lock); road.lockFeatures(); try { road.unLockFeatures(); fail("unlock should fail due on AUTO_COMMIT"); } catch (IOException expected) { } Transaction t = new DefaultTransaction(); road.setTransaction(t); try { road.unLockFeatures(); fail("unlock should fail due lack of authorization"); } catch (IOException expected) { } t.addAuthorization(lock.getAuthorization()); road.unLockFeatures(); t.close(); }
public void unLockFeatures(Query query) throws IOException { delegate().unLockFeatures(query); }
public void unLockFeatures() throws IOException { delegate().unLockFeatures(); }
public void unLockFeatures(Filter filter) throws IOException { delegate().unLockFeatures(filter); }
road1.unLockFeatures(rd1Filter); fail("need authorization"); } catch (IOException expected) { road1.unLockFeatures(rd2Filter); fail("need correct authorization"); } catch (IOException expected) { road1.unLockFeatures(rd1Filter); assertFalse(isLocked("road", "road.rd1")); assertTrue(isLocked("road", "road.rd2")); road2.unLockFeatures(rd2Filter); assertFalse(isLocked("road", "road.rd1")); assertFalse(isLocked("road", "road.rd2"));
public void testUnLockFeatures() throws IOException { FeatureLock lock = FeatureLockFactory.generate("test", 360000); FeatureLocking<SimpleFeatureType, SimpleFeature> road = (FeatureLocking<SimpleFeatureType, SimpleFeature>) data.getFeatureSource("ROAD"); road.setFeatureLock(lock); road.lockFeatures(); try { road.unLockFeatures(); fail("unlock should fail due on AUTO_COMMIT"); } catch (IOException expected) { } Transaction t = new DefaultTransaction(); road.setTransaction(t); try { road.unLockFeatures(); fail("unlock should fail due lack of authorization"); } catch (IOException expected) { } t.addAuthorization(lock.getAuthorization()); road.unLockFeatures(); }
public void testUnLockFeatures() throws IOException { FeatureLock lock = FeatureLockFactory.generate("test", 360000); FeatureLocking road = (FeatureLocking) data.getFeatureSource("ROAD"); road.setFeatureLock(lock); road.lockFeatures(); try { road.unLockFeatures(); fail("unlock should fail due on AUTO_COMMIT"); } catch (IOException expected) { } Transaction t = new DefaultTransaction(); road.setTransaction(t); try { road.unLockFeatures(); fail("unlock should fail due lack of authorization"); } catch (IOException expected) { } t.addAuthorization(lock.getAuthorization()); road.unLockFeatures(); }
road1.unLockFeatures(td.rd1Filter); fail("need authorization"); } catch (IOException expected) { road1.unLockFeatures(td.rd2Filter); fail("need correct authorization"); } catch (IOException expected) { road1.unLockFeatures(td.rd1Filter); assertFalse(isLocked(tname("road"), tname("road") + "." + (td.initialFidValue))); assertTrue(isLocked(tname("road"), tname("road") + "." + (td.initialFidValue + 1))); road2.unLockFeatures(td.rd2Filter); assertFalse(isLocked(tname("road"), tname("road") + "." + (td.initialFidValue))); assertFalse(isLocked(tname("road"), tname("road") + "." + (td.initialFidValue + 1)));