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

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

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

origin: 52North/SOS

/**
 * Checks whether the specified ObservableProperty is known.
 *
 * @param observableProperty the observable property
 *
 * @return {@code true} if it is contained
 */
default boolean hasObservableProperty(String observableProperty) {
  return getObservableProperties().contains(observableProperty);
}
origin: org.n52.sensorweb.sos/admin-controller

@RequestMapping(method = RequestMethod.GET)
public ModelAndView view() {
  SosContentCache cache = getCache();
  List<String> observableProperties = Lists.newArrayList(cache.getObservableProperties());
  Collections.sort(observableProperties);
  return new ModelAndView(ControllerConstants.Views.ADMIN_RENAME_OBSERVABLE_PROPERTIES,
              "observableProperties", observableProperties);
}
origin: 52North/SOS

@RequestMapping(method = RequestMethod.GET)
public ModelAndView view() {
  SosContentCache cache = getCache();
  List<String> observableProperties = Lists.newArrayList(cache.getObservableProperties());
  Collections.sort(observableProperties);
  return new ModelAndView(ControllerConstants.Views.ADMIN_RENAME_OBSERVABLE_PROPERTIES,
              "observableProperties", observableProperties);
}
origin: org.n52.sensorweb.sos/resultHandling-v20

private void checkObservedProperty(String observedProperty) throws OwsExceptionReport {
  if (observedProperty == null || observedProperty.isEmpty()) {
    throw new MissingObservedPropertyParameterException();
  } else if (!getCache().getObservableProperties().contains(observedProperty)) {
    throw new InvalidObservedPropertyParameterException(observedProperty);
  }
}
origin: 52North/SOS

protected Collection<String> getObservableProperties() {
  Set<String> observableProperties = getCache().getObservableProperties();
  if (isIncludeChildObservableProperties()) {
    Set<String> compositePhenomenons = getCache().getCompositePhenomenons();
    observableProperties.removeAll(compositePhenomenons);
    compositePhenomenons.stream().map(getCache()::getObservablePropertiesForCompositePhenomenon)
        .flatMap(Set::stream).forEach(observableProperties::add);
  }
  return observableProperties;
}
origin: 52North/SOS

private void checkObservedProperty(String observedProperty) throws OwsExceptionReport {
  if (observedProperty == null || observedProperty.isEmpty()) {
    throw new MissingObservedPropertyParameterException();
  } else if (!getCache().getObservableProperties().contains(observedProperty)) {
    throw new InvalidObservedPropertyParameterException(observedProperty);
  }
}
origin: 52North/SOS

@RequestMapping(method = RequestMethod.GET)
public ModelAndView view() {
  Map<String, String> model = new HashMap<>(4);
  SosContentCache cache = getCache();
  model.put(OFFERINGS, asJSONArray(cache.getOfferings()));
  model.put(PROCEDURES, asJSONArray(cache.getProcedures()));
  model.put(FEATURES, asJSONArray(cache.getFeaturesOfInterest()));
  model.put(OBSERVABLE_PROPERTIES, asJSONArray(cache
       .getObservableProperties()));
  return new ModelAndView(ControllerConstants.Views.ADMIN_I18N, model);
}
origin: org.n52.sensorweb.sos/admin-controller

@RequestMapping(method = RequestMethod.GET)
public ModelAndView view() {
  Map<String, String> model = new HashMap<>(4);
  SosContentCache cache = getCache();
  model.put(OFFERINGS, asJSONArray(cache.getOfferings()));
  model.put(PROCEDURES, asJSONArray(cache.getProcedures()));
  model.put(FEATURES, asJSONArray(cache.getFeaturesOfInterest()));
  model.put(OBSERVABLE_PROPERTIES, asJSONArray(cache
       .getObservableProperties()));
  return new ModelAndView(ControllerConstants.Views.ADMIN_I18N, model);
}
origin: org.n52.sensorweb.sos/core-v100

/**
 * checks if mandatory parameter observed property is correct
 *
 * @param observedProperties
 *            List containing the observed properties of the request
 *
 * @throws OwsExceptionReport
 *             if the parameter does not containing any matching
 *             observedProperty for the requested offering
 */
private void checkObservedProperties(List<String> observedProperties) throws OwsExceptionReport {
  if (observedProperties != null) {
    CompositeOwsException exceptions = new CompositeOwsException();
    if (observedProperties.isEmpty()) {
      throw new MissingObservedPropertyParameterException();
    }
    Collection<String> validObservedProperties =
        getCache().getObservableProperties();
    for (String obsProp : observedProperties) {
      if (obsProp.isEmpty()) {
        throw new MissingObservedPropertyParameterException();
      } else {
        if (!validObservedProperties.contains(obsProp)) {
          throw new InvalidObservedPropertyParameterException(obsProp);
        }
      }
    }
    exceptions.throwIfNotEmpty();
  }
}
origin: 52North/SOS

/**
 * checks if mandatory parameter observed property is correct
 *
 * @param observedProperties
 *            List containing the observed properties of the request
 *
 * @throws OwsExceptionReport
 *             if the parameter does not containing any matching
 *             observedProperty for the requested offering
 */
private void checkObservedProperties(List<String> observedProperties) throws OwsExceptionReport {
  if (observedProperties != null) {
    CompositeOwsException exceptions = new CompositeOwsException();
    if (observedProperties.isEmpty()) {
      throw new MissingObservedPropertyParameterException();
    }
    Collection<String> validObservedProperties =
        getCache().getObservableProperties();
    for (String obsProp : observedProperties) {
      if (obsProp.isEmpty()) {
        throw new MissingObservedPropertyParameterException();
      } else {
        if (!validObservedProperties.contains(obsProp)) {
          throw new InvalidObservedPropertyParameterException(obsProp);
        }
      }
    }
    exceptions.throwIfNotEmpty();
  }
}
origin: org.n52.sensorweb.sos/admin-controller

public static Map<String, String> getCacheValues() {
  SosContentCache cache = Configurator.getInstance().getCache();
  Map<String, String> values = new TreeMap<>();
  values.put(LAST_UPDATE_TIME, nullSafeToString(cache.getLastUpdateTime()));
  values.put(MIN_PHENOMENON_TIME, nullSafeToString(cache.getMinPhenomenonTime()));
  values.put(MAX_PHENOMENON_TIME, nullSafeToString(cache.getMaxPhenomenonTime()));
  values.put(MIN_RESULT_TIME, nullSafeToString(cache.getMinResultTime()));
  values.put(MAX_RESULT_TIME, nullSafeToString(cache.getMaxResultTime()));
  values.put(GLOBAL_ENVELOPE, nullSafeToString(cache.getGlobalEnvelope()));
  values.put(NUM_OFFERINGS, nullSafeToString(cache.getOfferings()));
  values.put(NUM_PROCEDURES, nullSafeToString(cache.getProcedures()));
  values.put(NUM_OBSERVABLE_PROPERTIES, nullSafeToString(cache.getObservableProperties()));
  values.put(NUM_FEATURES_OF_INTEREST, nullSafeToString(cache.getFeaturesOfInterest()));
  values.put(NUM_FEATURE_OF_INTEREST_TYPES, nullSafeToString(cache.getFeatureOfInterestTypes()));
  values.put(NUM_OBSERVATION_TYPES, nullSafeToString(cache.getObservationTypes()));
  values.put(NUM_RELATED_FEATURES, nullSafeToString(cache.getRelatedFeatures()));
  values.put(NUM_RESULT_TEMPLATES, nullSafeToString(cache.getResultTemplates()));
  values.put(DEFAULT_EPSG, Integer.toString(cache.getDefaultEPSGCode()));
  values.put(NUM_EPSGS, nullSafeToString(cache.getEpsgCodes()));
  return values;
}
origin: 52North/SOS

public static Map<String, String> getCacheValues() {
  SosContentCache cache = Configurator.getInstance().getCache();
  Map<String, String> values = new TreeMap<>();
  values.put(LAST_UPDATE_TIME, nullSafeToString(cache.getLastUpdateTime()));
  values.put(MIN_PHENOMENON_TIME, nullSafeToString(cache.getMinPhenomenonTime()));
  values.put(MAX_PHENOMENON_TIME, nullSafeToString(cache.getMaxPhenomenonTime()));
  values.put(MIN_RESULT_TIME, nullSafeToString(cache.getMinResultTime()));
  values.put(MAX_RESULT_TIME, nullSafeToString(cache.getMaxResultTime()));
  values.put(GLOBAL_ENVELOPE, nullSafeToString(cache.getGlobalEnvelope()));
  values.put(NUM_OFFERINGS, nullSafeToString(cache.getOfferings()));
  values.put(NUM_PROCEDURES, nullSafeToString(cache.getProcedures()));
  values.put(NUM_OBSERVABLE_PROPERTIES, nullSafeToString(cache.getObservableProperties()));
  values.put(NUM_FEATURES_OF_INTEREST, nullSafeToString(cache.getFeaturesOfInterest()));
  values.put(NUM_FEATURE_OF_INTEREST_TYPES, nullSafeToString(cache.getFeatureOfInterestTypes()));
  values.put(NUM_OBSERVATION_TYPES, nullSafeToString(cache.getObservationTypes()));
  values.put(NUM_RELATED_FEATURES, nullSafeToString(cache.getRelatedFeatures()));
  values.put(NUM_RESULT_TEMPLATES, nullSafeToString(cache.getResultTemplates()));
  values.put(DEFAULT_EPSG, Integer.toString(cache.getDefaultEPSGCode()));
  values.put(NUM_EPSGS, nullSafeToString(cache.getEpsgCodes()));
  return values;
}
origin: 52North/SOS

/**
 * checks if mandatory parameter observed property is correct
 *
 * @param observedProperties
 *            list containing the observed properties of the request
 *
 * @throws OwsExceptionReport
 *             if the parameter does not containing any matching
 *             observedProperty for the requested offering
 */
private void checkObservedProperties(final List<String> observedProperties) throws OwsExceptionReport {
  if (observedProperties != null) {
    final CompositeOwsException exceptions = new CompositeOwsException();
    final Collection<String> validObservedProperties =
        getCache().getObservableProperties();
    for (final String obsProp : observedProperties) {
      if (obsProp.isEmpty()) {
        exceptions.add(new MissingObservedPropertyParameterException());
      } else {
        if (!validObservedProperties.contains(obsProp)) {
          exceptions.add(new InvalidObservedPropertyParameterException(obsProp));
        }
      }
    }
    exceptions.throwIfNotEmpty();
  }
}
origin: org.n52.sensorweb.sos/aqd-v10

/**
 * checks if mandatory parameter observed property is correct
 *
 * @param observedProperties
 *            list containing the observed properties of the request
 *
 * @throws OwsExceptionReport
 *             if the parameter does not containing any matching
 *             observedProperty for the requested offering
 */
private void checkObservedProperties(final List<String> observedProperties) throws OwsExceptionReport {
  if (observedProperties != null) {
    final CompositeOwsException exceptions = new CompositeOwsException();
    final Collection<String> validObservedProperties =
        getCache().getObservableProperties();
    for (final String obsProp : observedProperties) {
      if (obsProp.isEmpty()) {
        exceptions.add(new MissingObservedPropertyParameterException());
      } else {
        if (!validObservedProperties.contains(obsProp)) {
          exceptions.add(new InvalidObservedPropertyParameterException(obsProp));
        }
      }
    }
    exceptions.throwIfNotEmpty();
  }
}
org.n52.sos.cacheSosContentCachegetObservableProperties

Popular methods of SosContentCache

  • getOfferings
  • getFeatureOfInterestTypes
  • getObservationTypes
  • getProceduresForOffering
  • hasObservableProperty
  • hasOffering
  • getAllowedObservationTypesForOffering
  • getChildProcedures
  • getEpsgCodes
  • getOfferingsForProcedure
  • getProcedures
  • getPublishedObservableProperties
  • getProcedures,
  • getPublishedObservableProperties,
  • getPublishedOfferings,
  • hasResultTemplate,
  • getAllObservationTypesForOffering,
  • getCompositePhenomenonsForOffering,
  • getEnvelopeForOffering,
  • getFeaturesOfInterest,
  • getFeaturesOfInterestForOffering

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Sublime Text for Python
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