@Override protected boolean isValid(SosContentCache cache, String id) { return cache.hasOffering(id); }
@Override protected boolean isValid(SosContentCache cache, String id) { return cache.hasOffering(id); }
protected void checkOfferingName(String offering) throws NoSuchOfferingException { if (!getCache().hasOffering(offering)) { throw new NoSuchOfferingException(offering); } }
private void checkOffering(final String offering) throws NoSuchOfferingException { if (!getCache().hasOffering(offering)) { throw new NoSuchOfferingException(offering); } }
private void checkObservedPropertyOfferingPairs(DeleteResultTemplateRequest request, CompositeOwsException exceptions) { if (request.isSetObservedPropertyOfferingPairs()) { for (Map.Entry<String, String> propertyOfferingPair : request.getObservedPropertyOfferingPairs()) { if (!getCache().hasOffering(propertyOfferingPair.getValue())) { exceptions.add(new InvalidParameterValueException( DeleteResultTemplateConstants.PARAMETERS.offering, propertyOfferingPair.getValue())); } if (!getCache().hasObservableProperty(propertyOfferingPair.getKey())) { exceptions.add(new InvalidParameterValueException( DeleteResultTemplateConstants.PARAMETERS.observableProperty, propertyOfferingPair.getKey())); } } } }
private void checkObservedPropertyOfferingPairs(DeleteResultTemplateRequest request, CompositeOwsException exceptions) { if (request.isSetObservedPropertyOfferingPairs()) { for (Map.Entry<String, String> propertyOfferingPair : request.getObservedPropertyOfferingPairs()) { if (!getCache().hasOffering(propertyOfferingPair.getValue())) { exceptions.add(new InvalidParameterValueException( DeleteResultTemplateConstants.PARAMETERS.offering, propertyOfferingPair.getValue())); } if (!getCache().hasObservableProperty(propertyOfferingPair.getKey())) { exceptions.add(new InvalidParameterValueException( DeleteResultTemplateConstants.PARAMETERS.observableProperty, propertyOfferingPair.getKey())); } } } }