@Override public AttributeDescriptor[] describeRecord(DescribeRecordType request) throws ServiceException { checkStore(); return new DescribeRecord(this.csw, store).run(request); }
@Override public List<File> directDownload(DirectDownloadType request) throws ServiceException { checkStore(); return new DirectDownload(getServiceInfo(), this.store).run(request); }
@Override public CloseableIterator<String> getDomain(GetDomainType request) throws ServiceException { checkStore(); return new GetDomain(this.csw, this.store).run(request); }
protected CSWInfo createServiceFromScratch(GeoServer gs) { CSWInfoImpl csw = new CSWInfoImpl(); csw.setName("CSW"); csw.setId(getServiceId()); csw.setGeoServer(gs); return csw; }
@Override public CapabilitiesType getCapabilities(GetCapabilitiesType request) throws ServiceException { checkStore(); CapabilitiesType caps = new GetCapabilities(getServiceInfo(), this.store, context).run(request); // check for decorator extensions for (CapabilitiesDecorator decorator : GeoServerExtensions.extensions(CapabilitiesDecorator.class)) { caps = decorator.decorate(caps, this.store); } return caps; }
@Override public RepositoryItem getRepositoryItem(GetRepositoryItemType request) throws ServiceException { checkStore(); return new GetRepositoryItem(getServiceInfo(), this.store).run(request); }
@Override public AttributeDescriptor[] describeRecord(DescribeRecordType request) throws ServiceException { checkStore(); return new DescribeRecord(getServiceInfo(), store).run(request); }
@Override public CloseableIterator<String> getDomain(GetDomainType request) throws ServiceException { checkStore(); return new GetDomain(getServiceInfo(), this.store).run(request); }
@Override public CSWRecordsResult getRecords(GetRecordsType request) throws ServiceException { checkStore(); List<RecordDescriptor> descriptors = GeoServerExtensions.extensions(RecordDescriptor.class, context); return new GetRecords(getServiceInfo(), store, descriptors).run(request); }
@Override public CSWRecordsResult getRecordById(GetRecordByIdType request) throws ServiceException { checkStore(); List<RecordDescriptor> descriptors = GeoServerExtensions.extensions(RecordDescriptor.class, context); return new GetRecordById(getServiceInfo(), store, descriptors).run(request); }
@Override public RepositoryItem getRepositoryItem(GetRepositoryItemType request) throws ServiceException { checkStore(); return new GetRepositoryItem(this.csw, this.store).run(request); }
public void testParseValidRequest() throws Exception { params.put("service", "csw"); params.put("VERSION", "2.0.2"); params.put("id", "foo"); GetRepositoryItemType request = getRequest(params); assertEquals("2.0.2", request.getVersion()); assertEquals("csw", request.getService()); assertEquals("foo", request.getId()); } }
@Override public CSWRecordsResult getRecords(GetRecordsType request) throws ServiceException { checkStore(); List<RecordDescriptor> descriptors = GeoServerExtensions.extensions(RecordDescriptor.class, context); return new GetRecords(this.csw, store, descriptors).run(request); }
@Override public CSWRecordsResult getRecordById(GetRecordByIdType request) throws ServiceException { checkStore(); List<RecordDescriptor> descriptors = GeoServerExtensions.extensions(RecordDescriptor.class, context); return new GetRecordById(this.csw, store, descriptors).run(request); }
@Override public <T> T create(Class<T> clazz) { return (T) new CSWInfoImpl(); }
public DirectDownload(CSWInfo csw, CatalogStore store) { this.csw = csw; this.store = store; this.geoserver = csw.getGeoServer(); }
/** * From CITE compliance, throw an error if a non spatial property is used in a spatial filter * @throws Exception */ @Test public void testSpatialFilterNonGeomProperty() throws Exception { String request = "csw?service=CSW&version=2.0.2&request=GetRecords&typeNames=csw:Record&resultType=results" + "&elementName=dc:identifier,ows:BoundingBox&constraint=BBOX(dct:spatial, 47.0, -4.5, 52.0, 1.0)"; Document d = getAsDOM(request); // print(d); checkOws10Exception(d); }
protected CSWInfo createServiceFromScratch(GeoServer gs) { CSWInfoImpl csw = new CSWInfoImpl(); csw.setName("CSW"); csw.setId(getServiceId()); csw.setGeoServer(gs); return csw; }
@Override public CapabilitiesType getCapabilities(GetCapabilitiesType request) throws ServiceException { checkStore(); CapabilitiesType caps = new GetCapabilities(this.csw, this.store, context).run(request); // check for decorator extensions for(CapabilitiesDecorator decorator : GeoServerExtensions.extensions(CapabilitiesDecorator.class)) { caps = decorator.decorate(caps, this.store); } return caps; }
@Override public <T> T create(Class<T> clazz) { return (T) new CSWInfoImpl(); } }