private boolean isHiddenChildProcedureObservableProperty(String offering, Set<String> proceduresForObservableProperty) { return getCache().getHiddenChildProceduresForOffering(offering).stream() .anyMatch(proceduresForObservableProperty::contains); }
protected Collection<String> getProceduresForOffering(String offering, String version) throws OwsExceptionReport { Collection<String> procedures =new HashSet<>(getCache().getProceduresForOffering(offering)); if (version.equals(Sos1Constants.SERVICEVERSION)) { procedures.addAll(getCache().getHiddenChildProceduresForOffering(offering)); } return procedures.stream() .filter(getCache().getPublishedProcedures()::contains) .collect(toSet()); }
/** * Get featureOfInterests for procedure and version * * @return Collection with featureOfInterests * * @throws OwsExceptionReport If an error occurs */ private Collection<String> getFeatureOfInterestIDs() throws OwsExceptionReport { Set<String> features = Sets.newHashSet(); // add cache map for proc/fois and get fois for proc for (String offering : getCache().getOfferingsForProcedure(getIdentifier())) { // don't include features for offerings which this procedure is a // hidden child of if (!getCache().getHiddenChildProceduresForOffering(offering).contains(getIdentifier())) { features.addAll(getCache().getFeaturesOfInterestForOffering(offering)); } } return SosHelper.getFeatureIDs(features, getVersion()); }