public ExecutionStatusType dropStoredQuery(DropStoredQueryType request) throws WFSException { return new DropStoredQuery(getServiceInfo(), getStoredQueryProvider()).run(request); }
public DescribeStoredQueriesResponseType describeStoredQueries( DescribeStoredQueriesType request) throws WFSException { return new DescribeStoredQueries(getServiceInfo(), getStoredQueryProvider()).run(request); }
public CreateStoredQueryResponseType createStoredQuery(CreateStoredQueryType request) throws WFSException { return new CreateStoredQuery(getServiceInfo(), getStoredQueryProvider()).run(request); }
public ListStoredQueriesResponseType listStoredQueries(ListStoredQueriesType request) throws WFSException { return new ListStoredQueries(getServiceInfo(), getCatalog(), getStoredQueryProvider()) .run(request); }
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(); } }