default void addPublishedObservableProperties(Collection<String> observableProperties) { CacheValidation.noNullValues(PUBLISHED_OBSERVABLE_PROPERTIES, observableProperties); observableProperties.forEach(this::addPublishedObservableProperty); }
/** * Remove the specified procedures. * * @param procedures the procedures */ default void removeProcedures(Collection<String> procedures) { CacheValidation.noNullValues(PROCEDURES, procedures); procedures.forEach(this::removeProcedure); }
/** * Remove the specified offerings. * * @param offerings the offerings */ default void removeOfferings(Collection<String> offerings) { CacheValidation.noNullValues(OFFERINGS, offerings); offerings.forEach(this::removeOffering); }
@Override public void addResultTemplates(Collection<String> resultTemplates) { CacheValidation.noNullValues(RESULT_TEMPLATES, resultTemplates); resultTemplates.forEach(this::addResultTemplate); }
/** * Add the specified procedures. * * @param procedures the procedures */ default void addProcedures(Collection<String> procedures) { CacheValidation.noNullValues(PROCEDURES, procedures); procedures.forEach(this::addProcedure); }
/** * Add the specified offerings. * * @param offerings the offerings */ default void addOfferings(Collection<String> offerings) { CacheValidation.noNullValues(OFFERINGS, offerings); offerings.forEach(this::addOffering); }
@Override public void addResultTemplates(Collection<String> resultTemplates) { CacheValidation.noNullValues(RESULT_TEMPLATES, resultTemplates); resultTemplates.forEach(this::addResultTemplate); }
@Override public void removeFeaturesOfInterest(Collection<String> featuresOfInterest) { CacheValidation.noNullValues(FEATURES_OF_INTEREST, featuresOfInterest); featuresOfInterest.forEach(this::removeFeatureOfInterest); }
/** * Add the specified epsg codes. * * @param epsgCodes the new epsg codes */ default void addEpsgCodes(Collection<Integer> epsgCodes) { CacheValidation.noNullValues(EPSG_CODES, epsgCodes); epsgCodes.forEach(this::addEpsgCode); } }
@Override public void removeFeaturesOfInterest(Collection<String> featuresOfInterest) { CacheValidation.noNullValues(FEATURES_OF_INTEREST, featuresOfInterest); featuresOfInterest.forEach(this::removeFeatureOfInterest); }
/** * Add the specified feature of interest. * * @param featuresOfInterest the feature of interest */ default void addFeaturesOfInterest(Collection<String> featuresOfInterest) { CacheValidation.noNullValues(FEATURES_OF_INTEREST, featuresOfInterest); featuresOfInterest.forEach(this::addFeatureOfInterest); }
/** * Remove the specified epsg codes. * * @param epsgCodes the epsg codes */ default void removeEpsgCodes(Collection<Integer> epsgCodes) { CacheValidation.noNullValues(EPSG_CODES, epsgCodes); epsgCodes.forEach(this::removeEpsgCode); }
/** * Add the specified languages. * * @param languages the new languages */ default void addSupportedLanguage(Collection<Locale> languages) { CacheValidation.noNullValues(SUPPORTED_LANGUAGES, languages); languages.forEach(this::addSupportedLanguage); }
@Override public void addTypeOfProcedure(String type, Set<String> instances) { CacheValidation.notNullOrEmpty(TYPE_PROCEDURE, type); CacheValidation.noNullValues(PROCEDURE_INSTANCES, instances); LOG.trace("Adding instances {} to type '{}'", instances, type); if (hasInstancesForProcedure(type)) { typeOfProceduresMap.get(type).addAll(instances); } else { typeOfProceduresMap.put(type, instances); } }
@Override public void addTypeOfProcedure(String type, Set<String> instances) { CacheValidation.notNullOrEmpty(TYPE_PROCEDURE, type); CacheValidation.noNullValues(PROCEDURE_INSTANCES, instances); LOG.trace("Adding instances {} to type '{}'", instances, type); if (hasInstancesForProcedure(type)) { typeOfProceduresMap.get(type).addAll(instances); } else { typeOfProceduresMap.put(type, instances); } }
@Override public void addRelatedFeaturesForOffering(String offering, Collection<String> relatedFeature) { CacheValidation.notNullOrEmpty(OFFERING, offering); CacheValidation.noNullValues(RELATED_FEATURE, relatedFeature); LOG.trace("Adding relatedFeatures {} to offering {}", relatedFeature, offering); this.relatedFeaturesForOfferings.computeIfAbsent(offering, createSynchronizedSet()).addAll(relatedFeature); }
@Override public void addAllowedObservationTypesForOffering(String offering, Collection<String> allowedObservationTypes) { CacheValidation.notNullOrEmpty(OFFERING, offering); CacheValidation.noNullValues(ALLOWED_OBSERVATION_TYPES, allowedObservationTypes); LOG.trace("Adding AllowedObservationTypes {} to Offering {}", allowedObservationTypes, offering); this.allowedObservationTypeForOfferings.computeIfAbsent(offering, createSynchronizedSet()) .addAll(allowedObservationTypes); }
@Override public void addFeaturesOfInterestForResultTemplate(String resultTemplate, Collection<String> featuresOfInterest) { CacheValidation.notNullOrEmpty(RESULT_TEMPLATE, resultTemplate); CacheValidation.noNullValues(FEATURES_OF_INTEREST, featuresOfInterest); LOG.trace("Adding FeatureOfInterest {} to SosResultTemplate {}", featuresOfInterest, resultTemplate); this.featuresOfInterestForResultTemplates.computeIfAbsent(resultTemplate, createSynchronizedSet()) .addAll(featuresOfInterest); }
@Override public void addAllowedFeatureOfInterestTypesForOffering(String offering, Collection<String> allowedFeatureOfInterestTypes) { CacheValidation.notNullOrEmpty(OFFERING, offering); CacheValidation.noNullValues(ALLOWED_FEATURE_OF_INTEREST_TYPES, allowedFeatureOfInterestTypes); LOG.trace("Adding AllowedFeatureOfInterestTypes {} to Offering {}", allowedFeatureOfInterestTypes, offering); this.allowedFeatureOfInterestTypeForOfferings.computeIfAbsent(offering, createSynchronizedSet()) .addAll(allowedFeatureOfInterestTypes); }
@Override public void addRelatedFeaturesForOffering(String offering, Collection<String> relatedFeature) { CacheValidation.notNullOrEmpty(OFFERING, offering); CacheValidation.noNullValues(RELATED_FEATURE, relatedFeature); LOG.trace("Adding relatedFeatures {} to offering {}", relatedFeature, offering); this.relatedFeaturesForOfferings.computeIfAbsent(offering, createSynchronizedSet()).addAll(relatedFeature); }