private Set<String> checkForPublished(Set<String> ids) { Set<String> obsProps = new HashSet<>(); for (String id : ids) { if (getCache().getPublishedObservableProperties().contains(id)) { obsProps.add(id); } } return obsProps; } }
@VisibleForTesting String[] getObservablePropertiesForProcedure(String identifier) { SortedSet<String> props = new TreeSet<>(); Set<String> obsProps = getCache().getObservablePropertiesForProcedure(identifier); for (String obsProp : obsProps) { if (getCache().getPublishedObservableProperties().contains(obsProp)) { props.add(obsProp); } } return props.toArray(new String[props.size()]); } }
@VisibleForTesting String[] getObservablePropertiesForProcedure(String identifier) { SortedSet<String> props = new TreeSet<>(); Set<String> obsProps = getCache().getObservablePropertiesForProcedure(identifier); for (String obsProp : obsProps) { if (getCache().getPublishedObservableProperties().contains(obsProp)) { props.add(obsProp); } } return props.toArray(new String[props.size()]); } }
protected OwsDomain getPublishedObservablePropertyParameter(String service, String version) { return getObservablePropertyParameter(service, version, getCache().getPublishedObservableProperties()); }
private void addObservableProperties(Set<String> keywords) { for (String obsProp : getCache() .getObservablePropertiesForProcedure(getIdentifier())) { if (getCache().getPublishedObservableProperties().contains(obsProp)) { keywords.add(obsProp); } } }
protected void checkObservedProperty(String observedProperty, String parameterName, boolean insertion) throws OwsExceptionReport { if (observedProperty == null || observedProperty.isEmpty()) { throw new MissingParameterValueException(parameterName); } if (insertion) { if (!getCache().hasObservableProperty(observedProperty)) { throw new InvalidParameterValueException(parameterName, observedProperty); } } else if (isIncludeChildObservableProperties()) { if (getCache().isCompositePhenomenon(observedProperty) || !(getCache().isCompositePhenomenonComponent(observedProperty) || getCache().hasObservableProperty(observedProperty))) { throw new InvalidParameterValueException(parameterName, observedProperty); } } else if (!getCache().getPublishedObservableProperties().contains(observedProperty)) { throw new InvalidParameterValueException(parameterName, observedProperty); } }