congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
SosContentCache.getOfferingsForProcedure
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: 52North/SOS

private Set<String> getParentOfferings(ProcedureEntity hProcedure) {
  Set<String> parentOfferings = new HashSet<>();
  if (hProcedure.hasParents()) {
    for (ProcedureEntity proc : hProcedure.getParents()) {
      parentOfferings.addAll(getCache().getOfferingsForProcedure(proc.getIdentifier()));
    }
  }
  return parentOfferings;
}
origin: 52North/SOS

private Set<String> getAllParentOfferings(ProcedureEntity hProcedure) {
  Set<String> parentOfferings = new HashSet<>();
  if (hProcedure.hasParents()) {
    for (ProcedureEntity proc : hProcedure.getParents()) {
      parentOfferings.addAll(getCache().getOfferingsForProcedure(proc.getIdentifier()));
      parentOfferings.addAll(getParentOfferings(hProcedure));
    }
  }
  return parentOfferings;
}
origin: 52North/SOS

private void addOfferings(Set<String> keywords) {
  if (procedureSettings().isEnrichWithOfferings()) {
    for (String offering : getCache()
        .getOfferingsForProcedure(getIdentifier())) {
      if (getCache().getPublishedOfferings().contains(offering)) {
        keywords.add(offering);
      }
    }
  }
}
origin: org.n52.sensorweb.sos/hibernate-common

private OmObservationConstellation getObservationConstellation(SosProcedureDescription<?> procedure,
    OmObservableProperty obsProp, AbstractFeature feature) {
  OmObservationConstellation obsConst = new OmObservationConstellation(procedure, obsProp, null, feature, null);
  /* get the offerings to find the templates */
  if (obsConst.getOfferings() == null) {
    obsConst.setOfferings(Sets.newHashSet(getCache().getOfferingsForProcedure(
        obsConst.getProcedure().getIdentifier())));
  }
  return obsConst;
}
origin: 52North/SOS

private OmObservationConstellation getObservationConstellation(SosProcedureDescription<?> procedure,
    OmObservableProperty obsProp, AbstractFeature feature) {
  OmObservationConstellation obsConst = new OmObservationConstellation(procedure, obsProp, null, feature, null);
  /* get the offerings to find the templates */
  if (obsConst.getOfferings() == null) {
    obsConst.setOfferings(Sets.newHashSet(getCache().getOfferingsForProcedure(
        obsConst.getProcedure().getIdentifier())));
  }
  return obsConst;
}
origin: 52North/SOS

/**
 * 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());
}
origin: 52North/SOS

@VisibleForTesting
public Collection<SosOffering> getSosOfferings()
    throws CodedException {
  Collection<String> identifiers = getCache().getOfferingsForProcedure(getIdentifier());
  Collection<SosOffering> offerings = Lists.newArrayListWithCapacity(identifiers.size());
  for (String offering : identifiers) {
    SosOffering sosOffering = new SosOffering(offering, false);
    // add offering name
    I18NHelper.addOfferingNames(getCache(), sosOffering, getLocale(), getLocale(),
        getProcedureCreationContext().isShowAllLanguageValues());
    // add offering description
    I18NHelper.addOfferingDescription(sosOffering, getLocale(), getLocale(), getCache());
    // add to list
    offerings.add(sosOffering);
  }
  return offerings;
}
org.n52.sos.cacheSosContentCachegetOfferingsForProcedure

Javadoc

Get the offerings associated with the specified procedure.

Popular methods of SosContentCache

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

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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