@Override public List<File> directDownload(DirectDownloadType request) throws ServiceException { checkStore(); return new DirectDownload(getServiceInfo(), this.store).run(request); }
@Override public HarvestResponseType harvest(HarvestType request) throws ServiceException { checkStore(); throw new ServiceException("Harvest operation is not supported by this CSW service"); }
protected void setUp() throws Exception { geoServerImpl = new GeoServerImpl(); List<String> operations = new ArrayList<String>(); csw = new Service("csw", new DefaultWebCatalogService(geoServerImpl), new Version("2.0.2"), operations); params = new HashMap<String, String>(); }
@Override public HarvestResponseType harvest(HarvestType request) throws ServiceException { checkStore(); throw new ServiceException("Harvest operation is not supported by this CSW service"); }
@Override public RepositoryItem getRepositoryItem(GetRepositoryItemType request) throws ServiceException { checkStore(); return new GetRepositoryItem(getServiceInfo(), this.store).run(request); }
@Override public HarvestResponseType transaction(TransactionType request) throws ServiceException { checkStore(); throw new ServiceException("Transactions are not supported by this CSW service"); }
@Override public AttributeDescriptor[] describeRecord(DescribeRecordType request) throws ServiceException { checkStore(); return new DescribeRecord(getServiceInfo(), store).run(request); }
@Override public HarvestResponseType transaction(TransactionType request) throws ServiceException { checkStore(); throw new ServiceException("Transactions are not supported by this CSW service"); }
@Override public CloseableIterator<String> getDomain(GetDomainType request) throws ServiceException { checkStore(); return new GetDomain(getServiceInfo(), this.store).run(request); }
@Override public CloseableIterator<String> getDomain(GetDomainType request) throws ServiceException { checkStore(); return new GetDomain(this.csw, 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 RepositoryItem getRepositoryItem(GetRepositoryItemType request) throws ServiceException { checkStore(); return new GetRepositoryItem(this.csw, this.store).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 AttributeDescriptor[] describeRecord(DescribeRecordType request) throws ServiceException { checkStore(); return new DescribeRecord(this.csw, store).run(request); }
@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 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 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; }