/** * WFS LockFeatureType operation. * * @param request The lock feature request. * * @return A lock feture response type. * * @throws WFSException An service exceptions. */ public LockFeatureResponseType lockFeature(LockFeatureType request) throws WFSException { LockFeature lockFeature = new LockFeature(wfs, catalog); lockFeature.setFilterFactory(filterFactory); return lockFeature.lockFeature(request); }
void lockRelease(String lockId) throws WFSException { LockFeature lockFeature = new LockFeature(wfs, catalog); lockFeature.release(lockId); }
public void releaseAllLocks() throws WFSException { new LockFeature(wfs, catalog).releaseAll(); }
/** * Implement lockExists. * * @param lockID * @return true if lockID exists * @see org.geotools.data.Data#lockExists(java.lang.String) */ private boolean lockExists(String lockId) throws Exception { LockFeature lockFeature = new LockFeature(wfs, catalog); return lockFeature.exists(lockId); }
/** * Refresh lock by authorization * * <p>Should use your own transaction? * * @param lockID */ private void lockRefresh(String lockId) throws Exception { LockFeature lockFeature = new LockFeature(wfs, catalog); lockFeature.refresh(lockId, false); }
public LockFeatureResponseType lockFeature(LockFeatureType request) throws WFSException { LockFeature lockFeature = new LockFeature(getServiceInfo(), getCatalog(), filterFactory); LockFeatureRequest.WFS20 requestWrapper = new LockFeatureRequest.WFS20(request); if (request.getLockId() != null) { lockFeature.refresh(request.getLockId(), true); LockFeatureResponse response = requestWrapper.createResponse(); response.setLockId(request.getLockId()); return (LockFeatureResponseType) response.getAdaptee(); } else { // Need to perform some of the same Stored Query handling as GetFeature // ... expand eventual stored queries boolean getFeatureById = GetFeature.expandStoredQueries( requestWrapper, request.getAbstractQueryExpression(), getStoredQueryProvider()); // ... expand the typenames from feature id filters (the wrappers will modify the // underlying object List<Query> queries = GetFeatureRequest.WFS20.getQueries(request.getAbstractQueryExpression()); GetFeature.expandTypeNames(requestWrapper, queries, getFeatureById, getCatalog()); // ... lock cannot handle queries with multiple target typenames, need to expand them // into separate queries fixQueriesForLock(request.getAbstractQueryExpression()); // run the lock return (LockFeatureResponseType) lockFeature.lockFeature(requestWrapper).getAdaptee(); } }
fLock = newFeatureLock(request); SimpleFeature feature = (SimpleFeature) reader.next(); FeatureId fid = fid(feature.getID()); Id fidFilter = fidFilter(fid); release(fLock.getAuthorization()); } catch (WFSException e1) {
/** * WFS LockFeatureType operation. * * @param request The lock feature request. * @return A lock feature response type. * @throws WFSException An service exceptions. */ public LockFeatureResponseType lockFeature(LockFeatureType request) throws WFSException { LockFeature lockFeature = new LockFeature(getServiceInfo(), catalog); lockFeature.setFilterFactory(filterFactory); return (LockFeatureResponseType) lockFeature.lockFeature(new LockFeatureRequest.WFS11(request)).getAdaptee(); }
public void releaseLock(String lockId) throws WFSException { new LockFeature(wfs, catalog).release(lockId); }
public void releaseAllLocks() throws WFSException { new LockFeature(getServiceInfo(), catalog).releaseAll(); }
LockFeature lockFeature = new LockFeature(wfs, catalog); lockFeature.setFilterFactory(filterFactory); LockFeatureResponse response = lockFeature.lockFeature(lockRequest); lockId = response.getLockId();
public void releaseLock(String lockId) throws WFSException { new LockFeature(getServiceInfo(), catalog).release(lockId); }
public void releaseLock(String lockId) throws WFSException { new LockFeature(getServiceInfo(), getCatalog()).release(lockId); } }