Tabnine Logo
SosContentCache.getProceduresForOffering
Code IndexAdd Tabnine to your IDE (free)

How to use
getProceduresForOffering
method
in
org.n52.sos.cache.SosContentCache

Best Java code snippets using org.n52.sos.cache.SosContentCache.getProceduresForOffering (Showing top 7 results out of 315)

origin: 52North/SOS

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());
}
origin: org.n52.sensorweb.sos/aqd-v10

/**
 * checks if the passed offeringId is supported
 *
 * @param offeringIds
 *            the offeringId to be checked
 *
 *
 * @throws OwsExceptionReport
 *             if the passed offeringId is not supported
 */
private void checkOfferingId(final List<String> offeringIds) throws OwsExceptionReport {
  if (offeringIds != null) {
    final Set<String> offerings = getCache().getOfferings();
    final CompositeOwsException exceptions = new CompositeOwsException();
    for (final String offeringId : offeringIds) {
      if (offeringId == null || offeringId.isEmpty()) {
        exceptions.add(new MissingOfferingParameterException());
      } else if (offeringId.contains(SosConstants.SEPARATOR_4_OFFERINGS)) {
        final String[] offArray = offeringId.split(SosConstants.SEPARATOR_4_OFFERINGS);
        if (!offerings.contains(offArray[0])
            || !getCache().getProceduresForOffering(offArray[0]).contains(offArray[1])) {
          exceptions.add(new InvalidOfferingParameterException(offeringId));
        }
      } else if (!offerings.contains(offeringId)) {
        exceptions.add(new InvalidOfferingParameterException(offeringId));
      }
    }
    exceptions.throwIfNotEmpty();
  }
}
origin: 52North/SOS

/**
 * checks if the passed offeringId is supported
 *
 * @param offeringIds
 *            the offeringId to be checked
 *
 *
 * @throws OwsExceptionReport
 *             if the passed offeringId is not supported
 */
private void checkOfferingId(final List<String> offeringIds) throws OwsExceptionReport {
  if (offeringIds != null) {
    final Set<String> offerings = getCache().getOfferings();
    final CompositeOwsException exceptions = new CompositeOwsException();
    for (final String offeringId : offeringIds) {
      if (offeringId == null || offeringId.isEmpty()) {
        exceptions.add(new MissingOfferingParameterException());
      } else if (offeringId.contains(SosConstants.SEPARATOR_4_OFFERINGS)) {
        final String[] offArray = offeringId.split(SosConstants.SEPARATOR_4_OFFERINGS);
        if (!offerings.contains(offArray[0])
            || !getCache().getProceduresForOffering(offArray[0]).contains(offArray[1])) {
          exceptions.add(new InvalidOfferingParameterException(offeringId));
        }
      } else if (!offerings.contains(offeringId)) {
        exceptions.add(new InvalidOfferingParameterException(offeringId));
      }
    }
    exceptions.throwIfNotEmpty();
  }
}
origin: org.n52.sensorweb.sos/core-v20

/**
 * checks if the passed offeringId is supported
 *
 * @param offeringIds
 *            the offeringId to be checked
 *
 *
 * @throws OwsExceptionReport
 *             if the passed offeringId is not supported
 */
private void checkOfferingId(final List<String> offeringIds) throws OwsExceptionReport {
  if (offeringIds != null) {
    Set<String> offerings = getCache().getOfferings();
    CompositeOwsException exceptions = new CompositeOwsException();
    offeringIds.forEach((offeringId) -> {
      if (offeringId == null || offeringId.isEmpty()) {
        exceptions.add(new MissingOfferingParameterException());
      } else if (offeringId.contains(SosConstants.SEPARATOR_4_OFFERINGS)) {
        final String[] offArray = offeringId.split(SosConstants.SEPARATOR_4_OFFERINGS);
        if (!offerings.contains(offArray[0])
          || !getCache().getProceduresForOffering(offArray[0]).contains(offArray[1])) {
          exceptions.add(new InvalidOfferingParameterException(offeringId));
        }
      } else if (!offerings.contains(offeringId)) {
        exceptions.add(new InvalidOfferingParameterException(offeringId));
      }
    });
    exceptions.throwIfNotEmpty();
  }
}
origin: 52North/SOS

/**
 * checks if the passed offeringId is supported
 *
 * @param offeringIds
 *            the offeringId to be checked
 *
 *
 * @throws OwsExceptionReport
 *             if the passed offeringId is not supported
 */
private void checkOfferingId(final List<String> offeringIds) throws OwsExceptionReport {
  if (offeringIds != null) {
    Set<String> offerings = getCache().getOfferings();
    CompositeOwsException exceptions = new CompositeOwsException();
    offeringIds.forEach((offeringId) -> {
      if (offeringId == null || offeringId.isEmpty()) {
        exceptions.add(new MissingOfferingParameterException());
      } else if (offeringId.contains(SosConstants.SEPARATOR_4_OFFERINGS)) {
        final String[] offArray = offeringId.split(SosConstants.SEPARATOR_4_OFFERINGS);
        if (!offerings.contains(offArray[0])
          || !getCache().getProceduresForOffering(offArray[0]).contains(offArray[1])) {
          exceptions.add(new InvalidOfferingParameterException(offeringId));
        }
      } else if (!offerings.contains(offeringId)) {
        exceptions.add(new InvalidOfferingParameterException(offeringId));
      }
    });
    exceptions.throwIfNotEmpty();
  }
}
origin: org.n52.sensorweb.sos/extensions-v20

/**
 * checks if the passed offeringId is supported
 *
 * @param offeringIds
 *            the offeringId to be checked
 *
 *
 * @throws OwsExceptionReport
 *             if the passed offeringId is not supported
 */
private void checkOfferingId(final Set<String> offeringIds) throws OwsExceptionReport {
  if (offeringIds != null) {
    final Set<String> offerings = getCache().getOfferings();
    final CompositeOwsException exceptions = new CompositeOwsException();
    for (final String offeringId : offeringIds) {
      if (offeringId == null || offeringId.isEmpty()) {
        exceptions.add(new MissingOfferingParameterException());
      } else if (offeringId.contains(SosConstants.SEPARATOR_4_OFFERINGS)) {
        final String[] offArray = offeringId.split(SosConstants.SEPARATOR_4_OFFERINGS);
        if (!offerings.contains(offArray[0])
            || !getCache().getProceduresForOffering(offArray[0]).contains(offArray[1])) {
          exceptions.add(new InvalidOfferingParameterException(offeringId));
        }
      } else if (!offerings.contains(offeringId)) {
        exceptions.add(new InvalidOfferingParameterException(offeringId));
      }
    }
    exceptions.throwIfNotEmpty();
  }
}
origin: 52North/SOS

/**
 * checks if the passed offeringId is supported
 *
 * @param offeringIds
 *            the offeringId to be checked
 *
 *
 * @throws OwsExceptionReport
 *             if the passed offeringId is not supported
 */
private void checkOfferingId(final Set<String> offeringIds) throws OwsExceptionReport {
  if (offeringIds != null) {
    final Set<String> offerings = getCache().getOfferings();
    final CompositeOwsException exceptions = new CompositeOwsException();
    for (final String offeringId : offeringIds) {
      if (offeringId == null || offeringId.isEmpty()) {
        exceptions.add(new MissingOfferingParameterException());
      } else if (offeringId.contains(SosConstants.SEPARATOR_4_OFFERINGS)) {
        final String[] offArray = offeringId.split(SosConstants.SEPARATOR_4_OFFERINGS);
        if (!offerings.contains(offArray[0])
            || !getCache().getProceduresForOffering(offArray[0]).contains(offArray[1])) {
          exceptions.add(new InvalidOfferingParameterException(offeringId));
        }
      } else if (!offerings.contains(offeringId)) {
        exceptions.add(new InvalidOfferingParameterException(offeringId));
      }
    }
    exceptions.throwIfNotEmpty();
  }
}
org.n52.sos.cacheSosContentCachegetProceduresForOffering

Javadoc

Get the procedures associated with the specified offering.

Popular methods of SosContentCache

  • getOfferings
  • getObservableProperties
  • getFeatureOfInterestTypes
  • getObservationTypes
  • hasObservableProperty
  • hasOffering
  • getAllowedObservationTypesForOffering
  • getChildProcedures
    Returns collection containing child procedures for the passed procedures, optionally navigating the
  • getEpsgCodes
  • getOfferingsForProcedure
  • getProcedures
  • getPublishedObservableProperties
  • getProcedures,
  • getPublishedObservableProperties,
  • getPublishedOfferings,
  • hasResultTemplate,
  • getAllObservationTypesForOffering,
  • getCompositePhenomenonsForOffering,
  • getEnvelopeForOffering,
  • getFeaturesOfInterest,
  • getFeaturesOfInterestForOffering

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JComboBox (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now