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
  • getEpsgCodes
  • getProcedures
  • getPublishedObservableProperties
  • getProcedures,
  • getPublishedObservableProperties,
  • getPublishedOfferings,
  • hasResultTemplate,
  • getAllObservationTypesForOffering,
  • getCompositePhenomenonsForOffering,
  • getEnvelopeForOffering,
  • getFeaturesOfInterest,
  • getFeaturesOfInterestForOffering

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JPanel (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Table (org.hibernate.mapping)
    A relational table
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Github Copilot alternatives
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