@Override public CatalogStoreCapabilities getCapabilities() { return new CatalogStoreCapabilities(descriptorByType); }
@Test public void testCapabilities() throws Exception { CatalogStoreCapabilities capabilities = store.getCapabilities(); assertFalse(capabilities.supportsTransactions()); Name cswRecordName = CSWRecordDescriptor.RECORD_DESCRIPTOR.getName(); assertTrue(capabilities.supportsGetRepositoryItem(cswRecordName)); assertTrue(capabilities.getQueriables(cswRecordName).contains(new NameImpl(CSW.NAMESPACE, "AnyText"))); assertTrue(capabilities.getDomainQueriables(cswRecordName).contains(new NameImpl(DC.NAMESPACE, "title"))); }
public GetDomain(CSWInfo csw, CatalogStore store) { this.csw = csw; this.store = store; try { for (RecordDescriptor rd : store.getRecordDescriptors()) { for (Name prop : store.getCapabilities().getDomainQueriables(rd.getFeatureDescriptor().getName())) { attributeTypeMap.put(prop, rd.getFeatureDescriptor().getName()); Enumeration declaredPrefixes = rd.getNamespaceSupport().getDeclaredPrefixes(); while (declaredPrefixes.hasMoreElements()) { String prefix = (String) declaredPrefixes.nextElement(); String uri = rd.getNamespaceSupport().getURI(prefix); ns.declarePrefix(prefix, uri); } } } } catch (IOException e) { throw new ServiceException(e, "Failed to retrieve the domain values", ServiceException.NO_APPLICABLE_CODE); } }
for (RecordDescriptor rd : store.getRecordDescriptors()) { List<Name> queriables = store.getCapabilities().getQueriables(rd.getFeatureDescriptor().getName()); if (queriables != null && queriables.size() > 0) { DomainType dt = owsf.createDomainType();
OperationMetadata_GetRecords(owsf, baseUrl, operationsMetadata); OperationMetadata_GetRecordById(owsf, baseUrl, operationsMetadata); if (store.getCapabilities().supportsTransactions()) { OperationMetadata_Transaction(owsf, baseUrl, operationsMetadata);
public GetDomain(CSWInfo csw, CatalogStore store) { this.csw = csw; this.store = store; try { for (RecordDescriptor rd : store.getRecordDescriptors()) { for (Name prop : store.getCapabilities() .getDomainQueriables(rd.getFeatureDescriptor().getName())) { attributeTypeMap.put(prop, rd.getFeatureDescriptor().getName()); Enumeration declaredPrefixes = rd.getNamespaceSupport().getDeclaredPrefixes(); while (declaredPrefixes.hasMoreElements()) { String prefix = (String) declaredPrefixes.nextElement(); String uri = rd.getNamespaceSupport().getURI(prefix); ns.declarePrefix(prefix, uri); } } } } catch (IOException e) { throw new ServiceException( e, "Failed to retrieve the domain values", ServiceException.NO_APPLICABLE_CODE); } }
List<Name> queriables = store.getCapabilities().getQueriables(rd.getFeatureDescriptor().getName() ); if(queriables != null && queriables.size() > 0) { DomainType dt = owsf.createDomainType();
OperationMetadata_GetRecords(owsf, baseUrl, operationsMetadata); OperationMetadata_GetRecordById(owsf, baseUrl, operationsMetadata); if (store.getCapabilities().supportsTransactions()) { OperationMetadata_Transaction(owsf, baseUrl, operationsMetadata);
Set<String> summary = new HashSet<String>(); for (RecordDescriptor rd : store.getRecordDescriptors()) { List<Name> queriables = store.getCapabilities().getDomainQueriables(rd.getFeatureDescriptor().getName());
List<Name> queriables = store.getCapabilities() .getDomainQueriables(rd.getFeatureDescriptor().getName());