public StoredQueryProvider getStoredQueryProvider() { return new StoredQueryProvider(getCatalog()); }
@Override public ValueCollectionType getPropertyValue(GetPropertyValueType request) throws WFSException { return new GetPropertyValue(getServiceInfo(), getCatalog(), filterFactory).run(request); }
public void releaseLock(String lockId) throws WFSException { new LockFeature(getServiceInfo(), getCatalog()).release(lockId); } }
public ListStoredQueriesResponseType listStoredQueries(ListStoredQueriesType request) throws WFSException { return new ListStoredQueries(getServiceInfo(), getCatalog(), getStoredQueryProvider()) .run(request); }
public FeatureTypeInfo[] describeFeatureType(DescribeFeatureTypeType request) throws WFSException { return new DescribeFeatureType(getServiceInfo(), getCatalog()) .run(new DescribeFeatureTypeRequest.WFS20(request)); }
public TransformerBase getCapabilities(GetCapabilitiesType request) throws WFSException { return new GetCapabilities( getServiceInfo(), getCatalog(), WFSExtensions.findExtendedCapabilitiesProviders(context)) .run(new GetCapabilitiesRequest.WFS20(request)); }
public TransactionResponseType transaction(TransactionType request) throws WFSException { Transaction tx = new Transaction(getServiceInfo(), getCatalog(), context); tx.setFilterFactory(filterFactory); return (TransactionResponseType) tx.transaction(new TransactionRequest.WFS20(request)).getAdaptee(); }
public FeatureCollectionResponse getFeature(GetFeatureType request) throws WFSException { GetFeature gf = new GetFeature(getServiceInfo(), getCatalog()); gf.setFilterFactory(filterFactory); gf.setStoredQueryProvider(getStoredQueryProvider()); return gf.run(new GetFeatureRequest.WFS20(request)); }
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(); } }