migration_id
stringclasses 994
values | ver1_file_path
stringlengths 25
222
⌀ | ver2_file_path
stringlengths 28
222
⌀ | ver1_tree_path
stringlengths 1
111
⌀ | ver2_tree_path
stringlengths 1
105
⌀ | ver1_signature
stringlengths 5
3.53k
⌀ | ver2_signature
stringlengths 5
3.53k
⌀ | method_ver1
stringlengths 8
336k
⌀ | method_ver2
stringlengths 8
171k
⌀ |
---|---|---|---|---|---|---|---|---|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeProceduresForObservableProperty__(final String observableProperty)
|
removeProceduresForObservableProperty__(String observableProperty)
|
@Override
public void removeProceduresForObservableProperty(final String observableProperty) {
notNullOrEmpty(OBSERVABLE_PROPERTY, observableProperty);
LOG.trace("Removing procedures for observableProperty {}", observableProperty);
this.proceduresForObservableProperties.remove(observableProperty);
}
|
@Override
public void removeProceduresForObservableProperty(String observableProperty) {
CacheValidation.notNullOrEmpty(OBSERVABLE_PROPERTY, observableProperty);
LOG.trace("Removing procedures for observableProperty {}", observableProperty);
this.proceduresForObservableProperties.remove(observableProperty);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeProceduresForOffering__(final String offering)
|
removeProceduresForOffering__(String offering)
|
@Override
public void removeProceduresForOffering(final String offering) {
notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing procedures for offering {}", offering);
this.proceduresForOfferings.remove(offering);
}
|
@Override
public void removeProceduresForOffering(String offering) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing procedures for offering {}", offering);
this.proceduresForOfferings.remove(offering);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeRelatedFeaturesForOffering__(final String offering)
|
removeRelatedFeaturesForOffering__(String offering)
|
@Override
public void removeRelatedFeaturesForOffering(final String offering) {
notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing RelatedFeatures for offering {}", offering);
this.relatedFeaturesForOfferings.remove(offering);
}
|
@Override
public void removeRelatedFeaturesForOffering(String offering) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing RelatedFeatures for offering {}", offering);
this.relatedFeaturesForOfferings.remove(offering);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeResultTemplatesForOffering__(final String offering)
|
removeResultTemplatesForOffering__(String offering)
|
@Override
public void removeResultTemplatesForOffering(final String offering) {
notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing ResultTemplates for offering {}", offering);
this.resultTemplatesForOfferings.remove(offering);
}
|
@Override
public void removeResultTemplatesForOffering(String offering) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing ResultTemplates for offering {}", offering);
this.resultTemplatesForOfferings.remove(offering);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeRolesForRelatedFeature__(final String relatedFeature)
|
removeRolesForRelatedFeature__(String relatedFeature)
|
@Override
public void removeRolesForRelatedFeature(final String relatedFeature) {
notNullOrEmpty(RELATED_FEATURE, relatedFeature);
LOG.trace("Removing roles for relatedFeature {}", relatedFeature);
this.rolesForRelatedFeatures.remove(relatedFeature);
}
|
@Override
public void removeRolesForRelatedFeature(String relatedFeature) {
CacheValidation.notNullOrEmpty(RELATED_FEATURE, relatedFeature);
LOG.trace("Removing roles for relatedFeature {}", relatedFeature);
this.rolesForRelatedFeatures.remove(relatedFeature);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeRolesForRelatedFeatureNotIn__(final Collection<String> relatedFeatures)
|
removeRolesForRelatedFeatureNotIn__(Collection<String> relatedFeatures)
|
@Override
public void removeRolesForRelatedFeatureNotIn(final Collection<String> relatedFeatures) {
notNull(RELATED_FEATURES, relatedFeatures);
final Iterator<String> iter = this.rolesForRelatedFeatures.keySet().iterator();
while (iter.hasNext()) {
if (!relatedFeatures.contains(iter.next())) {
iter.remove();
}
}
}
|
@Override
public void removeRolesForRelatedFeatureNotIn(Collection<String> relatedFeatures) {
Objects.requireNonNull(relatedFeatures, RELATED_FEATURES);
final Iterator<String> iter = this.rolesForRelatedFeatures.keySet().iterator();
while (iter.hasNext()) {
if (!relatedFeatures.contains(iter.next())) {
iter.remove();
}
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
setAllowedObservationTypeForOffering__(final String offering,
final Collection<String> allowedObservationType)
|
setAllowedObservationTypeForOffering__(String offering, Collection<String> observationTypes)
|
@Override
public void setAllowedObservationTypeForOffering(final String offering,
final Collection<String> allowedObservationType) {
notNullOrEmpty(OFFERING, offering);
final Set<String> newValue = newSynchronizedSet(allowedObservationType);
LOG.trace("Setting allowedObservationTypes for offering {} to {}", offering, newValue);
this.allowedObservationTypeForOfferings.put(offering, newValue);
}
|
@Override
public void setAllowedObservationTypeForOffering(String offering, Collection<String> observationTypes) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
final Set<String> newValue = newSynchronizedSet(observationTypes);
LOG.trace("Setting allowedObservationTypes for offering {} to {}", offering, newValue);
this.allowedObservationTypeForOfferings.put(offering, newValue);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
setAllowedFeatureOfInterestTypeForOffering__(final String offering,
final Collection<String> allowedFeatureOfInterestType)
|
setAllowedFeatureOfInterestTypeForOffering__(String offering, Collection<String> featureTypes)
|
@Override
public void setAllowedFeatureOfInterestTypeForOffering(final String offering,
final Collection<String> allowedFeatureOfInterestType) {
notNullOrEmpty(OFFERING, offering);
final Set<String> newValue = newSynchronizedSet(allowedFeatureOfInterestType);
LOG.trace("Setting allowedFeatureOfInterestTypes for offering {} to {}", offering, newValue);
this.allowedFeatureOfInterestTypeForOfferings.put(offering, newValue);
}
|
@Override
public void setAllowedFeatureOfInterestTypeForOffering(String offering, Collection<String> featureTypes) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
final Set<String> newValue = newSynchronizedSet(featureTypes);
LOG.trace("Setting allowedFeatureOfInterestTypes for offering {} to {}", offering, newValue);
this.allowedFeatureOfInterestTypeForOfferings.put(offering, newValue);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
setFeaturesOfInterestForOffering__(final String offering, final Collection<String> featureOfInterest)
|
setFeaturesOfInterestForOffering__(String offering, Collection<String> featureOfInterest)
|
@Override
public void setFeaturesOfInterestForOffering(final String offering, final Collection<String> featureOfInterest) {
notNullOrEmpty(OFFERING, offering);
final Set<String> newValue = newSynchronizedSet(featureOfInterest);
LOG.trace("Setting featureOfInterest for offering {} to {}", offering, newValue);
this.featuresOfInterestForOfferings.put(offering, newValue);
}
|
@Override
public void setFeaturesOfInterestForOffering(String offering, Collection<String> featureOfInterest) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
final Set<String> newValue = newSynchronizedSet(featureOfInterest);
LOG.trace("Setting featureOfInterest for offering {} to {}", offering, newValue);
this.featuresOfInterestForOfferings.put(offering, newValue);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
setGlobalEnvelope__(final SosEnvelope globalEnvelope)
|
setGlobalEnvelope__(ReferencedEnvelope globalEnvelope)
|
@Override
public void setGlobalEnvelope(final SosEnvelope globalEnvelope) {
LOG.trace("Global envelope now: '{}'", this.globalEnvelope);
if (globalEnvelope == null) {
setGlobalSpatialEnvelope(new SosEnvelope(null, getDefaultEPSGCode()));
} else {
setGlobalSpatialEnvelope(globalEnvelope);
}
LOG.trace("Global envelope updated to '{}' with '{}'", this.globalEnvelope, globalEnvelope);
}
|
@Override
public void setGlobalEnvelope(ReferencedEnvelope globalEnvelope) {
LOG.trace("Global envelope now: '{}'", this.globalEnvelope);
if (globalEnvelope == null) {
setGlobalSpatialEnvelope(new ReferencedEnvelope(new Envelope(), getDefaultEPSGCode()));
} else {
setGlobalSpatialEnvelope(globalEnvelope);
}
LOG.trace("Global envelope updated to '{}' with '{}'", this.globalEnvelope, globalEnvelope);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
setMaxPhenomenonTime__(final DateTime maxEventTime)
|
setMaxPhenomenonTime__(DateTime maxEventTime)
|
@Override
public void setMaxPhenomenonTime(final DateTime maxEventTime) {
LOG.trace("Setting Maximal EventTime to {}", maxEventTime);
this.globalPhenomenonTimeEnvelope.setEnd(DateTimeHelper.toUTC(maxEventTime));
}
|
@Override
public void setMaxPhenomenonTime(DateTime maxEventTime) {
LOG.trace("Setting Maximal EventTime to {}", maxEventTime);
this.globalPhenomenonTimeEnvelope.setEnd(DateTimeHelper.toUTC(maxEventTime));
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
setMinPhenomenonTime__(final DateTime minEventTime)
|
setMinPhenomenonTime__(DateTime minEventTime)
|
@Override
public void setMinPhenomenonTime(final DateTime minEventTime) {
LOG.trace("Setting Minimal EventTime to {}", minEventTime);
this.globalPhenomenonTimeEnvelope.setStart(DateTimeHelper.toUTC(minEventTime));
}
|
@Override
public void setMinPhenomenonTime(DateTime minEventTime) {
LOG.trace("Setting Minimal EventTime to {}", minEventTime);
this.globalPhenomenonTimeEnvelope.setStart(DateTimeHelper.toUTC(minEventTime));
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
setObservablePropertiesForResultTemplate__(final String resultTemplate,
final Collection<String> observableProperties)
|
setObservablePropertiesForResultTemplate__(String resultTemplate,
Collection<String> observableProperties)
|
@Override
public void setObservablePropertiesForResultTemplate(final String resultTemplate,
final Collection<String> observableProperties) {
notNullOrEmpty(RESULT_TEMPLATE, resultTemplate);
final Set<String> newValue = newSynchronizedSet(observableProperties);
LOG.trace("Setting observableProperties for resultTemplate {} to {}", resultTemplate, newValue);
this.observedPropertiesForResultTemplates.put(resultTemplate, newValue);
}
|
@Override
public void setObservablePropertiesForResultTemplate(String resultTemplate,
Collection<String> observableProperties) {
CacheValidation.notNullOrEmpty(RESULT_TEMPLATE, resultTemplate);
final Set<String> newValue = newSynchronizedSet(observableProperties);
LOG.trace("Setting observableProperties for resultTemplate {} to {}", resultTemplate, newValue);
this.observedPropertiesForResultTemplates.put(resultTemplate, newValue);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
updateEnvelopeForOffering__(final String offering, final Envelope envelope)
|
updateEnvelopeForOffering__(final String offering, final Envelope envelope)
|
@Override
public void updateEnvelopeForOffering(final String offering, final Envelope envelope) {
notNullOrEmpty(OFFERING, offering);
notNull(ENVELOPE, envelope);
if (hasEnvelopeForOffering(offering)) {
final SosEnvelope offeringEnvelope = this.envelopeForOfferings.get(offering);
LOG.trace("Expanding envelope {} for offering {} to include {}", offeringEnvelope, offering, envelope);
offeringEnvelope.expandToInclude(envelope);
} else {
setEnvelopeForOffering(offering, new SosEnvelope(envelope, getDefaultEPSGCode()));
}
}
|
@Override
public void updateEnvelopeForOffering(final String offering, final Envelope envelope) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
Objects.requireNonNull(envelope, ENVELOPE);
if (hasEnvelopeForOffering(offering)) {
final ReferencedEnvelope offeringEnvelope = this.envelopeForOfferings.get(offering);
LOG.trace("Expanding envelope {} for offering {} to include {}", offeringEnvelope, offering, envelope);
offeringEnvelope.expandToInclude(envelope);
} else {
setEnvelopeForOffering(offering, new ReferencedEnvelope(envelope, getDefaultEPSGCode()));
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
updateGlobalEnvelope__(final Envelope envelope)
|
updateGlobalEnvelope__(Envelope envelope)
|
@Override
public void updateGlobalEnvelope(final Envelope envelope) {
notNull(ENVELOPE, envelope);
if (hasGlobalEnvelope()) {
LOG.trace("Expanding envelope {} to include {}", this.globalEnvelope, envelope);
this.globalEnvelope.expandToInclude(envelope);
} else {
setGlobalEnvelope(new SosEnvelope(new Envelope(envelope), getDefaultEPSGCode()));
}
}
|
@Override
public void updateGlobalEnvelope(Envelope envelope) {
Objects.requireNonNull(envelope, ENVELOPE);
if (hasGlobalEnvelope()) {
LOG.trace("Expanding envelope {} to include {}", this.globalEnvelope, envelope);
this.globalEnvelope.expandToInclude(envelope);
} else {
setGlobalEnvelope(new ReferencedEnvelope(new Envelope(envelope), getDefaultEPSGCode()));
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
recalculateGlobalEnvelope__()
|
recalculateGlobalEnvelope__()
|
@Override
public void recalculateGlobalEnvelope() {
LOG.trace("Recalculating global spatial envelope based on offerings");
SosEnvelope globalEnvelope = null;
if (!getOfferings().isEmpty()) {
for (final String offering : getOfferings()) {
final SosEnvelope e = getEnvelopeForOffering(offering);
if (e != null) {
if (globalEnvelope == null) {
if (e.isSetEnvelope()) {
globalEnvelope = new SosEnvelope(new Envelope(e.getEnvelope()), e.getSrid());
LOG.trace("First envelope '{}' used as starting point", globalEnvelope);
}
} else {
globalEnvelope.getEnvelope().expandToInclude(e.getEnvelope());
LOG.trace("Envelope expanded to include '{}' resulting in '{}'", e, globalEnvelope);
}
}
}
if (globalEnvelope == null) {
LOG.error("Global envelope could not be resetted");
}
} else {
globalEnvelope = new SosEnvelope(null, getDefaultEPSGCode());
}
setGlobalEnvelope(globalEnvelope);
LOG.trace("Spatial envelope finally set to '{}'", getGlobalEnvelope());
}
|
@Override
public void recalculateGlobalEnvelope() {
LOG.trace("Recalculating global spatial envelope based on offerings");
ReferencedEnvelope envelope = new ReferencedEnvelope(new Envelope(), defaultEpsgCode);
this.offerings.stream().map(this::getEnvelopeForOffering).filter(Objects::nonNull)
.map(ReferencedEnvelope::getEnvelope).filter(e -> !e.isNull()).forEach(e -> {
envelope.expandToInclude(e);
LOG.trace("Envelope expanded to include '{}' resulting in '{}'", e, envelope);
});
setGlobalEnvelope(envelope);
LOG.trace("Spatial envelope finally set to '{}'", getGlobalEnvelope());
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
recalculatePhenomenonTime__()
|
recalculatePhenomenonTime__()
|
@Override
public void recalculatePhenomenonTime() {
LOG.trace("Recalculating global phenomenon time based on offerings");
DateTime globalMax = null;
DateTime globalMin = null;
if (!getOfferings().isEmpty()) {
for (final String offering : getOfferings()) {
if (hasMaxPhenomenonTimeForOffering(offering)) {
final DateTime offeringMax = getMaxPhenomenonTimeForOffering(offering);
if (globalMax == null || offeringMax.isAfter(globalMax)) {
globalMax = offeringMax;
}
}
if (hasMinPhenomenonTimeForOffering(offering)) {
final DateTime offeringMin = getMinPhenomenonTimeForOffering(offering);
if (globalMin == null || offeringMin.isBefore(globalMin)) {
globalMin = offeringMin;
}
}
}
if (globalMin == null || globalMax == null) {
LOG.error("Error in cache! Reset of global temporal bounding box failed. Max: '{}'; Min: '{}'",
globalMax, globalMin);
}
}
setPhenomenonTime(globalMin, globalMax);
LOG.trace("Global temporal bounding box reset done. Min: '{}'; Max: '{}'", getMinPhenomenonTime(),
getMaxPhenomenonTime());
}
|
@Override
public void recalculatePhenomenonTime() {
LOG.trace("Recalculating global phenomenon time based on offerings");
MinMax<DateTime> minMax = this.offerings.stream()
.map(offering -> new MinMax<>(getMinPhenomenonTimeForOffering(offering),
getMaxPhenomenonTimeForOffering(offering)))
.reduce(Functions.mergeLeft((a, b) -> a.extend(b, Comparator.naturalOrder()))).orElseGet(MinMax::new);
if (!getOfferings().isEmpty() && minMax.getMinimum() == null || minMax.getMaximum() == null) {
LOG.error("Error in cache! Reset of global temporal bounding box failed. Max: '{}'; Min: '{}'",
minMax.getMaximum(), minMax.getMinimum());
}
setPhenomenonTime(minMax.getMinimum(), minMax.getMaximum());
LOG.trace("Global temporal bounding box reset done. Min: '{}'; Max: '{}'", getMinPhenomenonTime(),
getMaxPhenomenonTime());
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeMaxResultTimeForOffering__(final String offering)
|
removeMaxResultTimeForOffering__(String offering)
|
@Override
public void removeMaxResultTimeForOffering(final String offering) {
notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing maxResultTime for offering {}", offering);
this.maxResultTimeForOfferings.remove(offering);
}
|
@Override
public void removeMaxResultTimeForOffering(String offering) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing maxResultTime for offering {}", offering);
this.maxResultTimeForOfferings.remove(offering);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeMinResultTimeForOffering__(final String offering)
|
removeMinResultTimeForOffering__(String offering)
|
@Override
public void removeMinResultTimeForOffering(final String offering) {
notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing minResultTime for offering {}", offering);
this.minResultTimeForOfferings.remove(offering);
}
|
@Override
public void removeMinResultTimeForOffering(String offering) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing minResultTime for offering {}", offering);
this.minResultTimeForOfferings.remove(offering);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
recalculateResultTime__()
|
recalculateResultTime__()
|
@Override
public void recalculateResultTime() {
LOG.trace("Recalculating global result time based on offerings");
DateTime globalMax = null;
DateTime globalMin = null;
if (!getOfferings().isEmpty()) {
for (final String offering : getOfferings()) {
if (hasMaxResultTimeForOffering(offering)) {
final DateTime offeringMax = getMaxResultTimeForOffering(offering);
if (globalMax == null || offeringMax.isAfter(globalMax)) {
globalMax = offeringMax;
}
}
if (hasMinResultTimeForOffering(offering)) {
final DateTime offeringMin = getMinResultTimeForOffering(offering);
if (globalMin == null || offeringMin.isBefore(globalMin)) {
globalMin = offeringMin;
}
}
}
}
setResultTime(globalMin, globalMax);
LOG.trace("Global result time bounding box reset done. Min: '{}'); Max: '{}'", getMinResultTime(),
getMaxResultTime());
}
|
@Override
public void recalculateResultTime() {
LOG.trace("Recalculating global result time based on offerings");
DateTime globalMax = null;
DateTime globalMin = null;
if (!getOfferings().isEmpty()) {
for (String offering : getOfferings()) {
if (hasMaxResultTimeForOffering(offering)) {
final DateTime offeringMax = getMaxResultTimeForOffering(offering);
if (globalMax == null || offeringMax.isAfter(globalMax)) {
globalMax = offeringMax;
}
}
if (hasMinResultTimeForOffering(offering)) {
final DateTime offeringMin = getMinResultTimeForOffering(offering);
if (globalMin == null || offeringMin.isBefore(globalMin)) {
globalMin = offeringMin;
}
}
}
}
setResultTime(globalMin, globalMax);
LOG.trace("Global result time bounding box reset done. Min: '{}'); Max: '{}'", getMinResultTime(),
getMaxResultTime());
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
setMaxResultTime__(final DateTime maxResultTime)
|
setMaxResultTime__(DateTime maxResultTime)
|
@Override
public void setMaxResultTime(final DateTime maxResultTime) {
LOG.trace("Setting Maximal ResultTime to {}", maxResultTime);
this.globalResultTimeEnvelope.setEnd(DateTimeHelper.toUTC(maxResultTime));
}
|
@Override
public void setMaxResultTime(DateTime maxResultTime) {
LOG.trace("Setting Maximal ResultTime to {}", maxResultTime);
this.globalResultTimeEnvelope.setEnd(DateTimeHelper.toUTC(maxResultTime));
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
setMaxResultTimeForOffering__(final String offering, final DateTime maxTime)
|
setMaxResultTimeForOffering__(String offering, DateTime maxTime)
|
@Override
public void setMaxResultTimeForOffering(final String offering, final DateTime maxTime) {
notNullOrEmpty(OFFERING, offering);
LOG.trace("Setting maximal ResultTime for Offering {} to {}", offering, maxTime);
if (maxTime == null) {
this.maxResultTimeForOfferings.remove(offering);
} else {
this.maxResultTimeForOfferings.put(offering, DateTimeHelper.toUTC(maxTime));
}
}
|
@Override
public void setMaxResultTimeForOffering(String offering, DateTime maxTime) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
LOG.trace("Setting maximal ResultTime for Offering {} to {}", offering, maxTime);
if (maxTime == null) {
this.maxResultTimeForOfferings.remove(offering);
} else {
this.maxResultTimeForOfferings.put(offering, DateTimeHelper.toUTC(maxTime));
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
setMinResultTime__(final DateTime minResultTime)
|
setMinResultTime__(DateTime minResultTime)
|
@Override
public void setMinResultTime(final DateTime minResultTime) {
LOG.trace("Setting Minimal ResultTime to {}", minResultTime);
this.globalResultTimeEnvelope.setStart(DateTimeHelper.toUTC(minResultTime));
}
|
@Override
public void setMinResultTime(DateTime minResultTime) {
LOG.trace("Setting Minimal ResultTime to {}", minResultTime);
this.globalResultTimeEnvelope.setStart(DateTimeHelper.toUTC(minResultTime));
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
setMinResultTimeForOffering__(final String offering, final DateTime minTime)
|
setMinResultTimeForOffering__(String offering, DateTime minTime)
|
@Override
public void setMinResultTimeForOffering(final String offering, final DateTime minTime) {
notNullOrEmpty(OFFERING, offering);
LOG.trace("Setting minimal ResultTime for Offering {} to {}", offering, minTime);
if (minTime == null) {
this.minResultTimeForOfferings.remove(offering);
} else {
this.minResultTimeForOfferings.put(offering, DateTimeHelper.toUTC(minTime));
}
}
|
@Override
public void setMinResultTimeForOffering(String offering, DateTime minTime) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
LOG.trace("Setting minimal ResultTime for Offering {} to {}", offering, minTime);
if (minTime == null) {
this.minResultTimeForOfferings.remove(offering);
} else {
this.minResultTimeForOfferings.put(offering, DateTimeHelper.toUTC(minTime));
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
clearI18nNamesForOfferings__()
|
clearI18nNamesForOfferings__()
|
@Override
public void clearI18nNamesForOfferings() {
LOG.trace("Clearing i18n names for offerings");
this.i18nNameForOfferings.clear();
}
|
@Override
public void clearI18nNamesForOfferings() {
LOG.trace("Clearing i18n names for offerings");
this.i18nNameForOfferings.clear();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addOffering__(final String offering)
|
addOffering__(String offering)
|
@Override
public void addOffering(final String offering) {
notNullOrEmpty(OFFERING, offering);
LOG.trace("Adding offering {}", offering);
this.offerings.add(offering);
}
|
@Override
public void addOffering(String offering) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
LOG.trace("Adding offering {}", offering);
this.offerings.add(offering);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeOffering__(final String offering)
|
removeOffering__(String offering)
|
@Override
public void removeOffering(final String offering) {
notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing Offering {}", offering);
this.offerings.remove(offering);
}
|
@Override
public void removeOffering(String offering) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing Offering {}", offering);
this.offerings.remove(offering);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
setHiddenChildProceduresForOffering__(final String offering, final Collection<String> procedures)
|
setHiddenChildProceduresForOffering__(String offering, Collection<String> procedures)
|
@Override
public void setHiddenChildProceduresForOffering(final String offering, final Collection<String> procedures) {
final Set<String> newValue = newSynchronizedSet(procedures);
LOG.trace("Setting hidden child Procedures for Offering {} to {}", offering, newValue);
this.hiddenChildProceduresForOfferings.put(offering, newValue);
}
|
@Override
public void setHiddenChildProceduresForOffering(String offering, Collection<String> procedures) {
final Set<String> newValue = newSynchronizedSet(procedures);
LOG.trace("Setting hidden child Procedures for Offering {} to {}", offering, newValue);
this.hiddenChildProceduresForOfferings.put(offering, newValue);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeSpatialFilteringProfileEnvelopeForOffering__(String offering)
|
removeSpatialFilteringProfileEnvelopeForOffering__(String offering)
|
@Override
public void removeSpatialFilteringProfileEnvelopeForOffering(String offering) {
notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing Spatial Filtering Profile envelope for offering {}", offering);
this.spatialFilteringProfileEnvelopeForOfferings.remove(offering);
}
|
@Override
public void removeSpatialFilteringProfileEnvelopeForOffering(String offering) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing Spatial Filtering Profile envelope for offering {}", offering);
this.spatialFilteringProfileEnvelopeForOfferings.remove(offering);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
setSpatialFilteringProfileEnvelopeForOffering__(String offering, SosEnvelope envelope)
|
setSpatialFilteringProfileEnvelopeForOffering__(String offering, ReferencedEnvelope envelope)
|
@Override
public void setSpatialFilteringProfileEnvelopeForOffering(String offering, SosEnvelope envelope) {
LOG.trace("Setting Spatial Filtering Profile Envelope for Offering {} to {}", offering, envelope);
this.spatialFilteringProfileEnvelopeForOfferings.put(offering, copyOf(envelope));
}
|
@Override
public void setSpatialFilteringProfileEnvelopeForOffering(String offering, ReferencedEnvelope envelope) {
LOG.trace("Setting Spatial Filtering Profile Envelope for Offering {} to {}", offering, envelope);
this.spatialFilteringProfileEnvelopeForOfferings.put(offering, copyOf(envelope));
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
updateSpatialFilteringProfileEnvelopeForOffering__(String offering, Envelope envelope)
|
updateSpatialFilteringProfileEnvelopeForOffering__(String offering, Envelope envelope)
|
@Override
public void updateSpatialFilteringProfileEnvelopeForOffering(String offering, Envelope envelope) {
notNullOrEmpty(OFFERING, offering);
notNull(ENVELOPE, envelope);
if (hasSpatialFilteringProfileEnvelopeForOffering(offering)) {
final SosEnvelope offeringEnvelope = this.spatialFilteringProfileEnvelopeForOfferings.get(offering);
LOG.trace("Expanding Spatial Filtering Profile envelope {} for offering {} to include {}",
offeringEnvelope, offering, envelope);
offeringEnvelope.expandToInclude(envelope);
} else {
setSpatialFilteringProfileEnvelopeForOffering(offering, new SosEnvelope(envelope, getDefaultEPSGCode()));
}
}
|
@Override
public void updateSpatialFilteringProfileEnvelopeForOffering(String offering, Envelope envelope) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
Objects.requireNonNull(envelope, ENVELOPE);
if (hasSpatialFilteringProfileEnvelopeForOffering(offering)) {
final ReferencedEnvelope offeringEnvelope = this.spatialFilteringProfileEnvelopeForOfferings.get(offering);
LOG.trace("Expanding Spatial Filtering Profile envelope {} for offering {} to include {}",
offeringEnvelope, offering, envelope);
offeringEnvelope.expandToInclude(envelope);
} else {
setSpatialFilteringProfileEnvelopeForOffering(offering,
new ReferencedEnvelope(envelope, getDefaultEPSGCode()));
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addFeatureOfInterestTypesForOffering__(String offering, String featureOfInterestType)
|
addFeatureOfInterestTypesForOffering__(String offering, String featureOfInterestType)
|
@Override
public void addFeatureOfInterestTypesForOffering(String offering, String featureOfInterestType) {
notNullOrEmpty(OFFERING, offering);
notNullOrEmpty(FEATURE_OF_INTEREST_TYPE, featureOfInterestType);
LOG.trace("Adding observationType {} to offering {}", featureOfInterestType, offering);
this.featureOfInterestTypesForOfferings.add(offering, featureOfInterestType);
}
|
@Override
public void addFeatureOfInterestTypesForOffering(String offering, String featureOfInterestType) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
CacheValidation.notNullOrEmpty(FEATURE_OF_INTEREST_TYPE, featureOfInterestType);
LOG.trace("Adding featureOfInterestType {} to offering {}", featureOfInterestType, offering);
this.featureOfInterestTypesForOfferings.computeIfAbsent(offering, createSynchronizedSet())
.add(featureOfInterestType);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeFeatureOfInterestTypeForOffering__(String offering, String featureOfInterestType)
|
removeFeatureOfInterestTypeForOffering__(String offering, String featureOfInterestType)
|
@Override
public void removeFeatureOfInterestTypeForOffering(String offering, String featureOfInterestType) {
notNullOrEmpty(OFFERING, offering);
notNullOrEmpty(FEATURE_OF_INTEREST_TYPE, featureOfInterestType);
LOG.trace("Removing observationType {} from offering {}", featureOfInterestType, offering);
this.featureOfInterestTypesForOfferings.removeWithKey(offering, featureOfInterestType);
}
|
@Override
public void removeFeatureOfInterestTypeForOffering(String offering, String featureOfInterestType) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
CacheValidation.notNullOrEmpty(FEATURE_OF_INTEREST_TYPE, featureOfInterestType);
LOG.trace("Removing featureOfInterestType {} from offering {}", featureOfInterestType, offering);
this.featureOfInterestTypesForOfferings.getOrDefault(offering, Collections.emptySet())
.remove(featureOfInterestType);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeFeatureOfInterestTypesForOffering__(String offering)
|
removeFeatureOfInterestTypesForOffering__(String offering)
|
@Override
public void removeFeatureOfInterestTypesForOffering(String offering) {
notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing featureOfInterestTypes for offering {}", offering);
this.featureOfInterestTypesForOfferings.remove(offering);
}
|
@Override
public void removeFeatureOfInterestTypesForOffering(String offering) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
LOG.trace("Removing featureOfInterestTypes for offering {}", offering);
this.featureOfInterestTypesForOfferings.remove(offering);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addAllowedFeatureOfInterestTypeForOffering__(String offering, String allowedFeatureOfInterestType)
|
addAllowedFeatureOfInterestTypeForOffering__(String offering, String allowedFeatureOfInterestType)
|
@Override
public void addAllowedFeatureOfInterestTypeForOffering(String offering, String allowedFeatureOfInterestType) {
notNullOrEmpty(OFFERING, offering);
notNullOrEmpty(ALLOWED_FEATURE_OF_INTEREST_TYPE, allowedFeatureOfInterestType);
LOG.trace("Adding AllowedFeatureOfInterestType {} to Offering {}", allowedFeatureOfInterestType, offering);
this.allowedFeatureOfInterestTypeForOfferings.add(offering, allowedFeatureOfInterestType);
}
|
@Override
public void addAllowedFeatureOfInterestTypeForOffering(String offering, String allowedFeatureOfInterestType) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
CacheValidation.notNullOrEmpty(ALLOWED_FEATURE_OF_INTEREST_TYPE, allowedFeatureOfInterestType);
LOG.trace("Adding AllowedFeatureOfInterestType {} to Offering {}", allowedFeatureOfInterestType, offering);
this.allowedFeatureOfInterestTypeForOfferings.computeIfAbsent(offering, createSynchronizedSet())
.add(allowedFeatureOfInterestType);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addAllowedFeatureOfInterestTypesForOffering__(String offering,
Collection<String> allowedFeatureOfInterestTypes)
|
addAllowedFeatureOfInterestTypesForOffering__(String offering,
Collection<String> allowedFeatureOfInterestTypes)
|
@Override
public void addAllowedFeatureOfInterestTypesForOffering(String offering,
Collection<String> allowedFeatureOfInterestTypes) {
notNullOrEmpty(OFFERING, offering);
noNullValues(ALLOWED_FEATURE_OF_INTEREST_TYPES, allowedFeatureOfInterestTypes);
LOG.trace("Adding AllowedFeatureOfInterestTypes {} to Offering {}", allowedFeatureOfInterestTypes, offering);
this.allowedFeatureOfInterestTypeForOfferings.addAll(offering, allowedFeatureOfInterestTypes);
}
|
@Override
public void addAllowedFeatureOfInterestTypesForOffering(String offering,
Collection<String> allowedFeatureOfInterestTypes) {
CacheValidation.notNullOrEmpty(OFFERING, offering);
CacheValidation.noNullValues(ALLOWED_FEATURE_OF_INTEREST_TYPES, allowedFeatureOfInterestTypes);
LOG.trace("Adding AllowedFeatureOfInterestTypes {} to Offering {}", allowedFeatureOfInterestTypes, offering);
this.allowedFeatureOfInterestTypeForOfferings.computeIfAbsent(offering, createSynchronizedSet())
.addAll(allowedFeatureOfInterestTypes);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addSupportedLanguage__(Locale language)
|
addSupportedLanguage__(Locale language)
|
@Override
public void addSupportedLanguage(Locale language){
notNull(SUPPORTED_LANGUAGE, language);
LOG.trace("Adding Language {}", language);
this.supportedLanguages.add(language);
}
|
@Override
public void addSupportedLanguage(Locale language) {
Objects.requireNonNull(language, SUPPORTED_LANGUAGE);
LOG.trace("Adding Language {}", language);
this.supportedLanguages.add(language);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addFeatureOfInterestIdentifierHumanReadableName__(String identifier, String humanReadableName)
|
addFeatureOfInterestIdentifierHumanReadableName__(String identifier, String humanReadableName)
|
@Override
public void addFeatureOfInterestIdentifierHumanReadableName(String identifier, String humanReadableName) {
if (StringHelper.isNotEmpty(identifier) && StringHelper.isNotEmpty(humanReadableName)) {
if (!featureOfInterestIdentifierForHumanReadableName.containsKey(humanReadableName)) {
featureOfInterestIdentifierForHumanReadableName.put(humanReadableName, identifier);
}
if (!featureOfInterestHumanReadableNameForIdentifier.containsKey(identifier)) {
featureOfInterestHumanReadableNameForIdentifier.put(identifier, humanReadableName);
}
}
}
|
@Override
public void addFeatureOfInterestIdentifierHumanReadableName(String identifier, String humanReadableName) {
if (!Strings.isNullOrEmpty(identifier) && !Strings.isNullOrEmpty(humanReadableName)) {
try {
featureOfInterestIdentifierHumanReadableName.put(identifier, humanReadableName);
} catch (IllegalArgumentException iae) {
LOG.warn("Duplicate entry for feature with identifier '{}' and humanReadableName '{}'!", identifier,
humanReadableName);
}
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addObservablePropertyIdentifierHumanReadableName__(String identifier, String humanReadableName)
|
addObservablePropertyIdentifierHumanReadableName__(String identifier, String humanReadableName)
|
@Override
public void addObservablePropertyIdentifierHumanReadableName(String identifier, String humanReadableName) {
if (StringHelper.isNotEmpty(identifier) && StringHelper.isNotEmpty(humanReadableName)) {
if (!observablePropertyIdentifierForHumanReadableName.containsKey(humanReadableName)) {
observablePropertyIdentifierForHumanReadableName.put(humanReadableName, identifier);
}
if (!observablePropertyHumanReadableNameForIdentifier.containsKey(humanReadableName)) {
observablePropertyHumanReadableNameForIdentifier.put(identifier, humanReadableName);
}
}
}
|
@Override
public void addObservablePropertyIdentifierHumanReadableName(String identifier, String humanReadableName) {
if (!Strings.isNullOrEmpty(identifier) && !Strings.isNullOrEmpty(humanReadableName)) {
try {
observablePropertyIdentifierHumanReadableName.put(identifier, humanReadableName);
} catch (IllegalArgumentException iae) {
LOG.warn("Duplicate entry for observableProperty with identifier '{}' and humanReadableName '{}'!",
identifier, humanReadableName);
}
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addProcedureIdentifierHumanReadableName__(String identifier, String humanReadableName)
|
addProcedureIdentifierHumanReadableName__(String identifier, String humanReadableName)
|
@Override
public void addProcedureIdentifierHumanReadableName(String identifier, String humanReadableName) {
if (StringHelper.isNotEmpty(identifier) && StringHelper.isNotEmpty(humanReadableName)) {
if (!procedureIdentifierForHumanReadableName.containsKey(humanReadableName)) {
procedureIdentifierForHumanReadableName.put(humanReadableName, identifier);
}
if (!procedureHumanReadableNameForIdentifier.containsKey(humanReadableName)) {
procedureHumanReadableNameForIdentifier.put(identifier, humanReadableName);
}
}
}
|
@Override
public void addProcedureIdentifierHumanReadableName(String identifier, String humanReadableName) {
if (!Strings.isNullOrEmpty(identifier) && !Strings.isNullOrEmpty(humanReadableName)) {
try {
procedureIdentifierHumanReadableName.put(identifier, humanReadableName);
} catch (IllegalArgumentException iae) {
LOG.warn("Duplicate entry for procedure with identifier '{}' and humanReadableName '{}'!", identifier,
humanReadableName);
}
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addOfferingIdentifierHumanReadableName__(String identifier, String humanReadableName)
|
addOfferingIdentifierHumanReadableName__(String identifier, String humanReadableName)
|
@Override
public void addOfferingIdentifierHumanReadableName(String identifier, String humanReadableName) {
if (StringHelper.isNotEmpty(identifier) && StringHelper.isNotEmpty(humanReadableName)) {
if (!offeringIdentifierForHumanReadableName.containsKey(humanReadableName)) {
offeringIdentifierForHumanReadableName.put(humanReadableName, identifier);
}
if (!offeringHumanReadableNameForIdentifier.containsKey(humanReadableName)) {
offeringHumanReadableNameForIdentifier.put(identifier, humanReadableName);
}
}
}
|
@Override
public void addOfferingIdentifierHumanReadableName(String identifier, String humanReadableName) {
if (!Strings.isNullOrEmpty(identifier) && !Strings.isNullOrEmpty(humanReadableName)) {
try {
offeringIdentifierHumanReadableName.put(identifier, humanReadableName);
} catch (IllegalArgumentException iae) {
LOG.warn("Duplicate entry for offering with identifier '{}' and humanReadableName '{}'!", identifier,
humanReadableName);
}
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeFeatureOfInterestIdentifierForHumanReadableName__(String humanReadableName)
|
removeFeatureOfInterestIdentifierForHumanReadableName__(String humanReadableName)
|
@Override
public void removeFeatureOfInterestIdentifierForHumanReadableName(String humanReadableName) {
notNullOrEmpty(FEATURE_OF_INTEREST_NAME, humanReadableName);
LOG.trace("Removing featuresOfInterest identifier for humanReadableName {}", humanReadableName);
featureOfInterestIdentifierForHumanReadableName.remove(humanReadableName);
}
|
@Override
public void removeFeatureOfInterestIdentifierForHumanReadableName(String humanReadableName) {
CacheValidation.notNullOrEmpty(FEATURE_OF_INTEREST_NAME, humanReadableName);
LOG.trace("Removing featuresOfInterest identifier for humanReadableName {}", humanReadableName);
featureOfInterestIdentifierHumanReadableName.inverse().remove(humanReadableName);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeFeatureOfInterestHumanReadableNameForIdentifier__(String identifier)
|
removeFeatureOfInterestHumanReadableNameForIdentifier__(String identifier)
|
@Override
public void removeFeatureOfInterestHumanReadableNameForIdentifier(String identifier) {
notNullOrEmpty(FEATURE_OF_INTEREST, identifier);
LOG.trace("Removing featuresOfInterest human readable name for identifier {}", identifier);
featureOfInterestHumanReadableNameForIdentifier.remove(identifier);
}
|
@Override
public void removeFeatureOfInterestHumanReadableNameForIdentifier(String identifier) {
CacheValidation.notNullOrEmpty(FEATURE_OF_INTEREST, identifier);
LOG.trace("Removing featuresOfInterest human readable name for identifier {}", identifier);
featureOfInterestIdentifierHumanReadableName.remove(identifier);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeObservablePropertyIdentifierForHumanReadableName__(String humanReadableName)
|
removeObservablePropertyIdentifierForHumanReadableName__(String humanReadableName)
|
@Override
public void removeObservablePropertyIdentifierForHumanReadableName(String humanReadableName) {
notNullOrEmpty(OBSERVABLE_PROPERTY_NAME, humanReadableName);
LOG.trace("Removing featuresOfInterest identifier for humanReadableName {}", humanReadableName);
observablePropertyIdentifierForHumanReadableName.remove(humanReadableName);
}
|
@Override
public void removeObservablePropertyIdentifierForHumanReadableName(String humanReadableName) {
CacheValidation.notNullOrEmpty(OBSERVABLE_PROPERTY_NAME, humanReadableName);
LOG.trace("Removing observableProperty identifier for humanReadableName {}", humanReadableName);
observablePropertyIdentifierHumanReadableName.inverse().remove(humanReadableName);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeObservablePropertyHumanReadableNameForIdentifier__(String identifier)
|
removeObservablePropertyHumanReadableNameForIdentifier__(String identifier)
|
@Override
public void removeObservablePropertyHumanReadableNameForIdentifier(String identifier) {
notNullOrEmpty(OBSERVABLE_PROPERTY, identifier);
LOG.trace("Removing observableProperty human readable name for identifier {}", identifier);
observablePropertyHumanReadableNameForIdentifier.remove(identifier);
}
|
@Override
public void removeObservablePropertyHumanReadableNameForIdentifier(String identifier) {
CacheValidation.notNullOrEmpty(OBSERVABLE_PROPERTY, identifier);
LOG.trace("Removing observableProperty human readable name for identifier {}", identifier);
observablePropertyIdentifierHumanReadableName.remove(identifier);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeProcedureIdentifierForHumanReadableName__(String humanReadableName)
|
removeProcedureIdentifierForHumanReadableName__(String humanReadableName)
|
@Override
public void removeProcedureIdentifierForHumanReadableName(String humanReadableName) {
notNullOrEmpty(PROCEDURE_NAME, humanReadableName);
LOG.trace("Removing procedure identifier for humanReadableName {}", humanReadableName);
procedureIdentifierForHumanReadableName.remove(humanReadableName);
}
|
@Override
public void removeProcedureIdentifierForHumanReadableName(String humanReadableName) {
CacheValidation.notNullOrEmpty(PROCEDURE_NAME, humanReadableName);
LOG.trace("Removing procedure identifier for humanReadableName {}", humanReadableName);
procedureIdentifierHumanReadableName.inverse().remove(humanReadableName);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeProcedureHumanReadableNameForIdentifier__(String identifier)
|
removeProcedureHumanReadableNameForIdentifier__(String identifier)
|
@Override
public void removeProcedureHumanReadableNameForIdentifier(String identifier) {
notNullOrEmpty(PROCEDURE, identifier);
LOG.trace("Removing procedure human readable name for identifier {}", identifier);
procedureHumanReadableNameForIdentifier.remove(identifier);
}
|
@Override
public void removeProcedureHumanReadableNameForIdentifier(String identifier) {
CacheValidation.notNullOrEmpty(PROCEDURE, identifier);
LOG.trace("Removing procedure human readable name for identifier {}", identifier);
procedureIdentifierHumanReadableName.remove(identifier);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeOfferingIdentifierForHumanReadableName__(String humanReadableName)
|
removeOfferingIdentifierForHumanReadableName__(String humanReadableName)
|
@Override
public void removeOfferingIdentifierForHumanReadableName(String humanReadableName) {
notNullOrEmpty(OFFERING_NAME, humanReadableName);
LOG.trace("Removing offering identifier for humanReadableName {}", humanReadableName);
offeringIdentifierForHumanReadableName.remove(humanReadableName);
}
|
@Override
public void removeOfferingIdentifierForHumanReadableName(String humanReadableName) {
CacheValidation.notNullOrEmpty(OFFERING_NAME, humanReadableName);
LOG.trace("Removing offering identifier for humanReadableName {}", humanReadableName);
offeringIdentifierHumanReadableName.inverse().remove(humanReadableName);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeOfferingHumanReadableNameForIdentifier__(String identifier)
|
removeOfferingHumanReadableNameForIdentifier__(String identifier)
|
@Override
public void removeOfferingHumanReadableNameForIdentifier(String identifier) {
notNullOrEmpty(OFFERING, identifier);
LOG.trace("Removing offering human readable name for identifier {}", identifier);
offeringHumanReadableNameForIdentifier.remove(identifier);
}
|
@Override
public void removeOfferingHumanReadableNameForIdentifier(String identifier) {
CacheValidation.notNullOrEmpty(OFFERING, identifier);
LOG.trace("Removing offering human readable name for identifier {}", identifier);
offeringIdentifierHumanReadableName.remove(identifier);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
clearFeatureOfInterestIdentifierHumanReadableNameMaps__()
|
clearFeatureOfInterestIdentifierHumanReadableNameMaps__()
|
@Override
public void clearFeatureOfInterestIdentifierHumanReadableNameMaps() {
featureOfInterestIdentifierForHumanReadableName.clear();
featureOfInterestHumanReadableNameForIdentifier.clear();
}
|
@Override
public void clearFeatureOfInterestIdentifierHumanReadableNameMaps() {
featureOfInterestIdentifierHumanReadableName.clear();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
clearObservablePropertyIdentifierHumanReadableNameMaps__()
|
clearObservablePropertyIdentifierHumanReadableNameMaps__()
|
@Override
public void clearObservablePropertyIdentifierHumanReadableNameMaps() {
observablePropertyIdentifierForHumanReadableName.clear();
observablePropertyHumanReadableNameForIdentifier.clear();
}
|
@Override
public void clearObservablePropertyIdentifierHumanReadableNameMaps() {
observablePropertyIdentifierHumanReadableName.clear();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
clearProcedureIdentifierHumanReadableNameMaps__()
|
clearProcedureIdentifierHumanReadableNameMaps__()
|
@Override
public void clearProcedureIdentifierHumanReadableNameMaps() {
procedureIdentifierForHumanReadableName.clear();
procedureHumanReadableNameForIdentifier.clear();
}
|
@Override
public void clearProcedureIdentifierHumanReadableNameMaps() {
procedureIdentifierHumanReadableName.clear();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
clearOfferingIdentifierHumanReadableNameMaps__()
|
clearOfferingIdentifierHumanReadableNameMaps__()
|
@Override
public void clearOfferingIdentifierHumanReadableNameMaps() {
offeringIdentifierForHumanReadableName.clear();
offeringHumanReadableNameForIdentifier.clear();
}
|
@Override
public void clearOfferingIdentifierHumanReadableNameMaps() {
offeringIdentifierHumanReadableName.clear();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
isCompositePhenomenonForOffering__(String offering, String observableProperty)
|
isCompositePhenomenonForOffering__(String offering, String observableProperty)
|
@Override
public boolean isCompositePhenomenonForOffering(String offering, String observableProperty) {
return this.compositePhenomenonsForOffering.containsKey(offering) &&
this.compositePhenomenonsForOffering.get(offering).contains(observableProperty);
}
|
@Override
public boolean isCompositePhenomenonForOffering(String offering, String observableProperty) {
return this.compositePhenomenonsForOffering.containsKey(offering)
&& this.compositePhenomenonsForOffering.get(offering).contains(observableProperty);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
getObservablePropertiesForCompositePhenomenon__(String compositePhenomenon)
|
getObservablePropertiesForCompositePhenomenon__(String compositePhenomenon)
|
@Override
public Set<String> getObservablePropertiesForCompositePhenomenon(String compositePhenomenon) {
return copyOf(this.observablePropertiesForCompositePhenomenon.get(compositePhenomenon));
}
|
@Override
public Set<String> getObservablePropertiesForCompositePhenomenon(String compositePhenomenon) {
return copyOf(this.observablePropertiesForCompositePhenomenons.get(compositePhenomenon));
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
isObservablePropertyOfCompositePhenomenon__(String compositePhenomenon, String observableProperty)
|
isObservablePropertyOfCompositePhenomenon__(String compositePhenomenon, String observableProperty)
|
@Override
public boolean isObservablePropertyOfCompositePhenomenon(String compositePhenomenon, String observableProperty) {
return this.observablePropertiesForCompositePhenomenon.containsKey(compositePhenomenon) &&
this.observablePropertiesForCompositePhenomenon.get(compositePhenomenon).contains(observableProperty);
}
|
@Override
public boolean isObservablePropertyOfCompositePhenomenon(String compositePhenomenon, String observableProperty) {
return this.observablePropertiesForCompositePhenomenons.containsKey(compositePhenomenon)
&& this.observablePropertiesForCompositePhenomenons.get(compositePhenomenon)
.contains(observableProperty);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
getCompositePhenomenonForObservableProperty__(String observableProperty)
|
getCompositePhenomenonForObservableProperty__(String observableProperty)
|
@Override
public Set<String> getCompositePhenomenonForObservableProperty(String observableProperty) {
return copyOf(this.compositePhenomenonForObservableProperty.get(observableProperty));
}
|
@Override
public Set<String> getCompositePhenomenonForObservableProperty(String observableProperty) {
return copyOf(this.compositePhenomenonsForObservableProperty.get(observableProperty));
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
isCompositePhenomenonComponent__(String observableProperty)
|
isCompositePhenomenonComponent__(String observableProperty)
|
@Override
public boolean isCompositePhenomenonComponent(String observableProperty) {
return this.compositePhenomenonForObservableProperty.containsKey(observableProperty) &&
!this.compositePhenomenonForObservableProperty.get(observableProperty).isEmpty();
}
|
@Override
public boolean isCompositePhenomenonComponent(String observableProperty) {
return this.compositePhenomenonsForObservableProperty.containsKey(observableProperty)
&& !this.compositePhenomenonsForObservableProperty.get(observableProperty).isEmpty();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addCompositePhenomenon__(String compositePhenomenon)
|
addCompositePhenomenon__(String compositePhenomenon)
|
@Override
public void addCompositePhenomenon(String compositePhenomenon) {
notNullOrEmpty(COMPOSITE_PHENOMENON, compositePhenomenon);
LOG.trace("Adding composite phenomenon {}", compositePhenomenon);
this.compositePhenomenons.add(compositePhenomenon);
}
|
@Override
public void addCompositePhenomenon(String compositePhenomenon) {
CacheValidation.notNullOrEmpty(COMPOSITE_PHENOMENON, compositePhenomenon);
LOG.trace("Adding composite phenomenon {}", compositePhenomenon);
this.compositePhenomenons.add(compositePhenomenon);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addCompositePhenomenon__(Collection<String> compositePhenomenon)
|
addCompositePhenomenon__(Collection<String> compositePhenomenon)
|
@Override
public void addCompositePhenomenon(Collection<String> compositePhenomenon) {
noNullOrEmptyValues(COMPOSITE_PHENOMENON, compositePhenomenon);
LOG.trace("Adding composite phenomenon {}", compositePhenomenon);
this.compositePhenomenons.addAll(compositePhenomenon);
}
|
@Override
public void addCompositePhenomenon(Collection<String> compositePhenomenon) {
CacheValidation.noNullOrEmptyValues(COMPOSITE_PHENOMENON, compositePhenomenon);
LOG.trace("Adding composite phenomenons {}", compositePhenomenon);
this.compositePhenomenons.addAll(compositePhenomenon);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
clearObservablePropertiesForCompositePhenomenon__(String compositePhenomenon)
|
clearObservablePropertiesForCompositePhenomenon__(String compositePhenomenon)
|
@Override
public void clearObservablePropertiesForCompositePhenomenon(String compositePhenomenon) {
LOG.trace("Clearing observable properties for composite phenomenon {}", compositePhenomenon);
this.observablePropertiesForCompositePhenomenon.remove(compositePhenomenon);
}
|
@Override
public void clearObservablePropertiesForCompositePhenomenon(String compositePhenomenon) {
LOG.trace("Clearing observable properties for composite phenomenon {}", compositePhenomenon);
this.observablePropertiesForCompositePhenomenons.remove(compositePhenomenon);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
clearObservablePropertiesForCompositePhenomenon__()
|
clearObservablePropertiesForCompositePhenomenon__()
|
@Override
public void clearObservablePropertiesForCompositePhenomenon() {
LOG.trace("Clearing observable properties for composite phenomenon");
this.observablePropertiesForCompositePhenomenon.clear();
}
|
@Override
public void clearObservablePropertiesForCompositePhenomenon() {
LOG.trace("Clearing observable properties for composite phenomenon");
this.observablePropertiesForCompositePhenomenons.clear();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
clearCompositePhenomenonsForObservableProperty__()
|
clearCompositePhenomenonsForObservableProperty__()
|
@Override
public void clearCompositePhenomenonsForObservableProperty() {
LOG.trace("Clearing composite phenomenon for observable properties");
this.compositePhenomenonForObservableProperty.clear();
}
|
@Override
public void clearCompositePhenomenonsForObservableProperty() {
LOG.trace("Clearing composite phenomenon for observable properties");
this.compositePhenomenonsForObservableProperty.clear();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
clearCompositePhenomenonsForObservableProperty__(String observableProperty)
|
clearCompositePhenomenonsForObservableProperty__(String observableProperty)
|
@Override
public void clearCompositePhenomenonsForObservableProperty(String observableProperty) {
LOG.trace("Clearing composite phenomenon for observable property {}", observableProperty);
this.compositePhenomenonForObservableProperty.remove(observableProperty);
}
|
@Override
public void clearCompositePhenomenonsForObservableProperty(String observableProperty) {
LOG.trace("Clearing composite phenomenon for observable property {}", observableProperty);
this.compositePhenomenonsForObservableProperty.remove(observableProperty);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
getRequestableProcedureDescriptionFormat__()
|
getRequestableProcedureDescriptionFormat__()
|
@Override
public Set<String> getRequestableProcedureDescriptionFormat() {
return this.requestableProcedureDescriptionFormats;
}
|
@Override
public Set<String> getRequestableProcedureDescriptionFormat() {
return copyOf(this.requestableProcedureDescriptionFormats);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
setRequestableProcedureDescriptionFormat__(Collection<String> formats)
|
setRequestableProcedureDescriptionFormat__(Collection<String> formats)
|
@Override
public void setRequestableProcedureDescriptionFormat(Collection<String> formats) {
LOG.trace("Adding requestable procedureDescriptionFormat");
getRequestableProcedureDescriptionFormat().addAll(formats);
}
|
@Override
public void setRequestableProcedureDescriptionFormat(Collection<String> formats) {
LOG.trace("Adding requestable procedureDescriptionFormat");
this.requestableProcedureDescriptionFormats.addAll(formats);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
getTransactionalObservationProcedures__()
|
getTransactionalObservationProcedures__()
|
@SuppressWarnings("unchecked")
@Override
public Set<String> getTransactionalObservationProcedures() {
return CollectionHelper.union(
CollectionHelper.union(copyOf(hiddenChildProceduresForOfferings.values())),
CollectionHelper.union(copyOf(proceduresForOfferings.values())));
}
|
@Override
public Set<String> getTransactionalObservationProcedures() {
return CollectionHelper.union(CollectionHelper.union(copyOf(hiddenChildProceduresForOfferings.values())),
CollectionHelper.union(copyOf(proceduresForOfferings.values())));
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
getInstancesForProcedure__(String identifier)
|
getInstancesForProcedure__(String identifier)
|
@Override
public Set<String> getInstancesForProcedure(String identifier) {
return copyOf(typeOfProcedures.get(identifier));
}
|
@Override
public Set<String> getInstancesForProcedure(String identifier) {
return copyOf(typeOfProceduresMap.get(identifier));
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
hasInstancesForProcedure__(String identifier)
|
hasInstancesForProcedure__(String identifier)
|
@Override
public boolean hasInstancesForProcedure(String identifier) {
return typeOfProcedures.containsKey(identifier);
}
|
@Override
public boolean hasInstancesForProcedure(String identifier) {
return typeOfProceduresMap.containsKey(identifier);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addTypeInstanceProcedure__(TypeInstance typeInstance, String identifier)
|
addTypeInstanceProcedure__(TypeInstance typeInstance, String identifier)
|
@Override
public void addTypeInstanceProcedure(TypeInstance typeInstance, String identifier) {
notNullOrEmpty(TYPE_PROCEDURE, identifier);
logAdding(TYPE_PROCEDURE, identifier);
if (typeInstanceProcedures.containsKey(typeInstance)) {
typeInstanceProcedures.get(typeInstance).add(identifier);
} else {
typeInstanceProcedures.put(typeInstance, Sets.newHashSet(identifier));
}
}
|
@Override
public void addTypeInstanceProcedure(TypeInstance typeInstance, String identifier) {
CacheValidation.notNullOrEmpty(TYPE_PROCEDURE, identifier);
logAdding(TYPE_PROCEDURE, identifier);
if (typeInstanceProcedures.containsKey(typeInstance)) {
typeInstanceProcedures.get(typeInstance).add(identifier);
} else {
typeInstanceProcedures.put(typeInstance, Sets.newHashSet(identifier));
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeTypeInstanceProcedure__(String identifier)
|
removeTypeInstanceProcedure__(String identifier)
|
@Override
public void removeTypeInstanceProcedure(String identifier) {
notNullOrEmpty(TYPE_PROCEDURE, identifier);
logRemoving(TYPE_PROCEDURE, identifier);
removeValue(typeInstanceProcedures, identifier);
}
|
@Override
public void removeTypeInstanceProcedure(String identifier) {
CacheValidation.notNullOrEmpty(TYPE_PROCEDURE, identifier);
logRemoving(TYPE_PROCEDURE, identifier);
removeValue(typeInstanceProcedures, identifier);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addComponentAggregationProcedure__(ComponentAggregation componentAggregation, String identifier)
|
addComponentAggregationProcedure__(ComponentAggregation componentAggregation, String identifier)
|
@Override
public void addComponentAggregationProcedure(ComponentAggregation componentAggregation, String identifier) {
notNullOrEmpty(AGGREGATED_PROCEDURE, identifier);
logAdding(AGGREGATED_PROCEDURE, identifier);
if (componentAggregationProcedures.containsKey(componentAggregation)) {
componentAggregationProcedures.get(componentAggregation).add(identifier);
} else {
componentAggregationProcedures.put(componentAggregation, Sets.newHashSet(identifier));
}
}
|
@Override
public void addComponentAggregationProcedure(ComponentAggregation componentAggregation, String identifier) {
CacheValidation.notNullOrEmpty(AGGREGATED_PROCEDURE, identifier);
logAdding(AGGREGATED_PROCEDURE, identifier);
if (componentAggregationProcedures.containsKey(componentAggregation)) {
componentAggregationProcedures.get(componentAggregation).add(identifier);
} else {
componentAggregationProcedures.put(componentAggregation, Sets.newHashSet(identifier));
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeComponentAggregationProcedure__(String identifier)
|
removeComponentAggregationProcedure__(String identifier)
|
@Override
public void removeComponentAggregationProcedure(String identifier) {
notNullOrEmpty(AGGREGATED_PROCEDURE, identifier);
logRemoving(AGGREGATED_PROCEDURE, identifier);
removeValue(componentAggregationProcedures, identifier);
}
|
@Override
public void removeComponentAggregationProcedure(String identifier) {
CacheValidation.notNullOrEmpty(AGGREGATED_PROCEDURE, identifier);
logRemoving(AGGREGATED_PROCEDURE, identifier);
removeValue(componentAggregationProcedures, identifier);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addTypeOfProcedure__(String type , String instance)
|
addTypeOfProcedure__(String type, String instance)
|
@Override
public void addTypeOfProcedure(String type , String instance) {
notNullOrEmpty(TYPE_PROCEDURE, type);
notNullOrEmpty(PROCEDURE_INSTANCE, instance);
LOG.trace("Adding instance '{}' to type '{}'", instance, type);
if (hasInstancesForProcedure(type)) {
typeOfProcedures.get(type).add(instance);
} else {
typeOfProcedures.put(type, Sets.newHashSet(instance));
}
}
|
@Override
public void addTypeOfProcedure(String type, String instance) {
CacheValidation.notNullOrEmpty(TYPE_PROCEDURE, type);
CacheValidation.notNullOrEmpty(PROCEDURE_INSTANCE, instance);
LOG.trace("Adding instance '{}' to type '{}'", instance, type);
if (hasInstancesForProcedure(type)) {
typeOfProceduresMap.get(type).add(instance);
} else {
typeOfProceduresMap.put(type, Sets.newHashSet(instance));
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
addTypeOfProcedure__(String type, Set<String> instances)
|
addTypeOfProcedure__(String type, Set<String> instances)
|
@Override
public void addTypeOfProcedure(String type, Set<String> instances) {
notNullOrEmpty(TYPE_PROCEDURE, type);
noNullValues(PROCEDURE_INSTANCES, instances);
LOG.trace("Adding instances {} to type '{}'", instances, type);
if (hasInstancesForProcedure(type)) {
typeOfProcedures.get(type).addAll(instances);
} else {
typeOfProcedures.put(type, instances);
}
}
|
@Override
public void addTypeOfProcedure(String type, Set<String> instances) {
CacheValidation.notNullOrEmpty(TYPE_PROCEDURE, type);
CacheValidation.noNullValues(PROCEDURE_INSTANCES, instances);
LOG.trace("Adding instances {} to type '{}'", instances, type);
if (hasInstancesForProcedure(type)) {
typeOfProceduresMap.get(type).addAll(instances);
} else {
typeOfProceduresMap.put(type, instances);
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeTypeOfProcedure__(String type)
|
removeTypeOfProcedure__(String type)
|
@Override
public void removeTypeOfProcedure(String type) {
notNullOrEmpty(TYPE_PROCEDURE, type);
LOG.trace("Removing type '{}'", type);
if (hasInstancesForProcedure(type)) {
typeOfProcedures.remove(type);
}
// check for values
removeValue(typeOfProcedures, type);
}
|
@Override
public void removeTypeOfProcedure(String type) {
CacheValidation.notNullOrEmpty(TYPE_PROCEDURE, type);
LOG.trace("Removing type '{}'", type);
if (hasInstancesForProcedure(type)) {
typeOfProceduresMap.remove(type);
}
// check for values
removeValue(typeOfProceduresMap, type);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
removeTypeOfProcedure__(String type, String instance)
|
removeTypeOfProcedure__(String type, String instance)
|
@Override
public void removeTypeOfProcedure(String type, String instance) {
notNullOrEmpty(TYPE_PROCEDURE, type);
notNullOrEmpty(PROCEDURE_INSTANCE, instance);
LOG.trace("Removing instance '{}' of type '{}'", type);
if (hasInstancesForProcedure(type)) {
typeOfProcedures.get(type).remove(instance);
}
}
|
@Override
public void removeTypeOfProcedure(String type, String instance) {
CacheValidation.notNullOrEmpty(TYPE_PROCEDURE, type);
CacheValidation.notNullOrEmpty(PROCEDURE_INSTANCE, instance);
logRemoving(type, instance);
if (hasInstancesForProcedure(type)) {
typeOfProceduresMap.get(type).remove(instance);
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
core/cache/src/main/java/org/n52/sos/cache/InMemoryCacheImpl.java
|
InMemoryCacheImpl
|
InMemoryCacheImpl
|
clearTypeOfProcedure__()
|
clearTypeOfProcedure__()
|
@Override
public void clearTypeOfProcedure() {
logClearing("Clearing type instance procedure map");
typeOfProcedures.clear();
}
|
@Override
public void clearTypeOfProcedure() {
logClearing("Clearing type instance procedure map");
typeOfProceduresMap.clear();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
JsonCapabilitiesExtensionService
|
JsonCapabilitiesExtensionService
|
getOfferingExtensions__()
|
getOfferingExtensions__()
|
@Override
public Map<String, List<OfferingExtension>> getOfferingExtensions() {
readLock().lock();
try {
return offeringExtensionStream()
.collect(groupingBy(OfferingExtension::getOfferingName, toList()));
} finally {
readLock().unlock();
}
}
|
@Override
public Map<String, List<SosObservationOfferingExtension>> getOfferingExtensions() {
readLock().lock();
try {
return offeringExtensionStream()
.collect(groupingBy(SosObservationOfferingExtension::getOfferingName, toList()));
} finally {
readLock().unlock();
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
JsonCapabilitiesExtensionService
|
JsonCapabilitiesExtensionService
|
getActiveOfferingExtensions__()
|
getActiveOfferingExtensions__()
|
@Override
public Map<String, List<OfferingExtension>> getActiveOfferingExtensions() {
readLock().lock();
try {
return offeringExtensionStream()
.filter(ce -> !ce.isDisabled())
.collect(groupingBy(OfferingExtension::getOfferingName, toList()));
} finally {
readLock().unlock();
}
}
|
@Override
public Map<String, List<SosObservationOfferingExtension>> getActiveOfferingExtensions() {
readLock().lock();
try {
return offeringExtensionStream()
.filter(ce -> !ce.isDisabled())
.collect(groupingBy(SosObservationOfferingExtension::getOfferingName, toList()));
} finally {
readLock().unlock();
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
JsonCapabilitiesExtensionService
|
JsonCapabilitiesExtensionService
|
saveOfferingExtension__(String offering, String identifier,
String value)
|
saveOfferingExtension__(String offering, String identifier, String value)
|
@Override
public void saveOfferingExtension(String offering, String identifier,
String value)
throws NoSuchOfferingException {
writeLock().lock();
try {
checkOfferingName(offering);
getConfiguration()
.with(JsonConstants.OFFERING_EXTENSIONS)
.with(offering)
.with(identifier)
.put(JsonConstants.EXTENSION, value);
} finally {
writeLock().unlock();
}
configuration().scheduleWrite();
}
|
@Override
public void saveOfferingExtension(String offering, String identifier, String value)
throws NoSuchOfferingException {
writeLock().lock();
try {
checkOfferingName(offering);
getConfiguration()
.with(JsonConstants.OFFERING_EXTENSIONS)
.with(offering)
.with(identifier)
.put(JsonConstants.EXTENSION, value);
} finally {
writeLock().unlock();
}
configuration().scheduleWrite();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
JsonCapabilitiesExtensionService
|
JsonCapabilitiesExtensionService
|
disableOfferingExtension__(String offering, String identifier, boolean disabled)
|
disableOfferingExtension__(String offering, String identifier, boolean disabled)
|
@Override
public void disableOfferingExtension(String offering, String identifier, boolean disabled) throws NoSuchExtensionException, NoSuchOfferingException {
writeLock().lock();
try {
checkOfferingName(offering);
ObjectNode extensions = getConfiguration()
.with(JsonConstants.OFFERING_EXTENSIONS)
.with(offering);
if (!extensions.has(identifier)) {
throw new NoSuchExtensionException(identifier);
}
extensions.with(identifier).put(JsonConstants.DISABLED, disabled);
} finally {
writeLock().unlock();
}
configuration().scheduleWrite();
}
|
@Override
public void disableOfferingExtension(String offering, String identifier, boolean disabled)
throws NoSuchExtensionException, NoSuchOfferingException {
writeLock().lock();
try {
checkOfferingName(offering);
ObjectNode extensions = getConfiguration()
.with(JsonConstants.OFFERING_EXTENSIONS)
.with(offering);
if (!extensions.has(identifier)) {
throw new NoSuchExtensionException(identifier);
}
extensions.with(identifier).put(JsonConstants.DISABLED, disabled);
} finally {
writeLock().unlock();
}
configuration().scheduleWrite();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
JsonCapabilitiesExtensionService
|
JsonCapabilitiesExtensionService
|
offeringExtensionStream__()
|
offeringExtensionStream__()
|
private Stream<OfferingExtension> offeringExtensionStream() {
return createEntryStream(getConfiguration().with(JsonConstants.OFFERING_EXTENSIONS))
.flatMap(entry -> {
return createEntryStream(entry.getValue())
.map(this::decodeOfferingExtension)
.map(oe -> {
oe.setOfferingName(entry.getKey());
return oe;
});
});
}
|
private Stream<SosObservationOfferingExtension> offeringExtensionStream() {
return createEntryStream(getConfiguration().with(JsonConstants.OFFERING_EXTENSIONS))
.flatMap(entry -> createEntryStream(entry.getValue())
.map(this::decodeOfferingExtension)
.map(Functions.mutate(Consumers
.currySecond(SosObservationOfferingExtensionImpl::setOfferingName, entry.getKey()))));
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
JsonCapabilitiesExtensionService
|
JsonCapabilitiesExtensionService
|
decodeOfferingExtension__(Entry<String, JsonNode> entry)
|
decodeOfferingExtension__(Entry<String, JsonNode> entry)
|
private OfferingExtensionImpl decodeOfferingExtension(Entry<String, JsonNode> entry) {
String identifier = entry.getKey();
JsonNode n = entry.getValue();
OfferingExtensionImpl oe = new OfferingExtensionImpl();
oe.setIdentifier(identifier);
oe.setDefinition(n.path(JsonConstants.DEFINITION).textValue());
oe.setDisabled(n.path(JsonConstants.DISABLED).booleanValue());
oe.setExtension(n.path(JsonConstants.EXTENSION).textValue());
oe.setNamespace(n.path(JsonConstants.NAMESPACE).textValue());
return oe;
}
|
private SosObservationOfferingExtensionImpl decodeOfferingExtension(Entry<String, JsonNode> entry) {
String identifier = entry.getKey();
JsonNode n = entry.getValue();
SosObservationOfferingExtensionImpl oe = new SosObservationOfferingExtensionImpl();
oe.setIdentifier(identifier);
oe.setDefinition(n.path(JsonConstants.DEFINITION).textValue());
oe.setDisabled(n.path(JsonConstants.DISABLED).booleanValue());
oe.setExtension(n.path(JsonConstants.EXTENSION).textValue());
oe.setNamespace(n.path(JsonConstants.NAMESPACE).textValue());
return oe;
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
JsonCapabilitiesExtensionService
|
JsonCapabilitiesExtensionService
|
getActiveStaticCapabilitiesDocument__()
|
getActiveStaticCapabilitiesDocument__()
|
@Override
public String getActiveStaticCapabilitiesDocument() {
readLock().lock();
try {
String id = getActiveStaticCapabilities();
return id != null ? null : getConfiguration()
.path(JsonConstants.STATIC_CAPABILITIES)
.path(JsonConstants.CAPABILITIES)
.path(id)
.textValue();
} finally {
readLock().unlock();
}
}
|
@Override
public String getActiveStaticCapabilitiesDocument() {
readLock().lock();
try {
String id = getActiveStaticCapabilities();
return id == null ? null : getConfiguration()
.path(JsonConstants.STATIC_CAPABILITIES)
.path(JsonConstants.CAPABILITIES)
.path(id)
.textValue();
} finally {
readLock().unlock();
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
JsonCapabilitiesExtensionService
|
JsonCapabilitiesExtensionService
|
getStaticCapabilities__()
|
getStaticCapabilities__()
|
@Override
public Map<String, StaticCapabilities> getStaticCapabilities() {
readLock().lock();
try {
JsonNode node = getConfiguration().path(JsonConstants.STATIC_CAPABILITIES).path(JsonConstants.CAPABILITIES);
return createEntryStream(node).collect(toMap(Entry::getKey,
e -> new StaticCapabilitiesImpl(e.getKey(), e.getValue().textValue())));
} finally {
readLock().unlock();
}
}
|
@Override
public Map<String, StaticCapabilities> getStaticCapabilities() {
readLock().lock();
try {
JsonNode node =
getConfiguration().path(JsonConstants.STATIC_CAPABILITIES).path(JsonConstants.CAPABILITIES);
return createEntryStream(node).collect(
toMap(Entry::getKey, e -> new StaticCapabilitiesImpl(e.getKey(), e.getValue().textValue())));
} finally {
readLock().unlock();
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
JsonCapabilitiesExtensionService
|
JsonCapabilitiesExtensionService
|
swesExtensionCollector__()
|
swesExtensionCollector__()
|
private static <T extends Extension<?>> Collector<T, ?, Map<String, T>> swesExtensionCollector() {
return toMap(Extension<?>::getIdentifier, Function.identity());
}
|
private static <T extends Extension<?>> Collector<T, ?, Map<String, T>> swesExtensionCollector() {
return toMap(Extension::getIdentifier, Function.identity());
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
JsonCapabilitiesExtensionService.StaticCapabilitiesImpl
|
JsonCapabilitiesExtensionService.StaticCapabilitiesImpl
|
StaticCapabilitiesImpl__(String identifier, String document)
|
StaticCapabilitiesImpl__(String identifier, String document)
|
public StaticCapabilitiesImpl(String identifier, String document) {
this.identifier = identifier;
this.document = document;
}
|
StaticCapabilitiesImpl(String identifier, String document) {
setIdentifier(identifier);
setDocument(document);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
JsonCapabilitiesExtensionService.StaticCapabilitiesImpl
|
JsonCapabilitiesExtensionService.StaticCapabilitiesImpl
|
toStringHelper__()
|
toStringHelper__()
|
protected ToStringHelper toStringHelper() {
return MoreObjects.toStringHelper(this)
.add("identifier", getIdentifier())
.add("document", getDocument());
}
|
protected ToStringHelper toStringHelper() {
return MoreObjects.toStringHelper(this)
.add(IDENTIFIER, getIdentifier())
.add("document", getDocument());
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
JsonCapabilitiesExtensionService.AbstractSwesExtension
|
JsonCapabilitiesExtensionService.AbstractDisableableExtension
|
setExtension__(String extension)
|
setExtension__(String extension)
|
public void setExtension(String extension) {
setValue(extension);
}
|
public AbstractDisableableExtension setExtension(String extension) {
setValue(extension);
return this;
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
core/api/src/main/java/org/n52/sos/config/json/JsonCapabilitiesExtensionService.java
|
JsonCapabilitiesExtensionService.AbstractSwesExtension
|
JsonCapabilitiesExtensionService.AbstractDisableableExtension
|
toStringHelper__()
|
toStringHelper__()
|
protected ToStringHelper toStringHelper() {
return MoreObjects.toStringHelper(this)
.add("identifier", getIdentifier())
.add("namespace", getNamespace())
.add("definition", getDefinition())
.add("extension", getExtension())
.add("disabled", isDisabled());
}
|
protected ToStringHelper toStringHelper() {
return MoreObjects.toStringHelper(this)
.add(IDENTIFIER, getIdentifier())
.add("namespace", getNamespace())
.add("definition", getDefinition())
.add("extension", getExtension())
.add("disabled", isDisabled());
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
spring/admin-controller/src/main/java/org/n52/sos/web/admin/caps/ValidationAjaxEndpoint.java
|
spring/admin-controller/src/main/java/org/n52/sos/web/admin/caps/ValidationAjaxEndpoint.java
|
ValidationAjaxEndpoint
|
ValidationAjaxEndpoint
|
validate__(@RequestBody String xml)
|
validate__(@RequestBody String xml)
|
@ResponseBody
@ResponseStatus(HttpStatus.OK)
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_XML_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
public String validate(@RequestBody String xml) {
LOGGER.trace("Starting validation");
ObjectNode result = JSONUtils.nodeFactory().objectNode();
ArrayNode resultErrors = result.putArray(ERRORS_PROPERTY);
LinkedList<XmlError> xmlErrors = new LinkedList<XmlError>();
XmlOptions options = new XmlOptions().setErrorListener(xmlErrors).setLoadLineNumbers(XmlOptions.LOAD_LINE_NUMBERS_END_ELEMENT);
try {
XmlObject x = XmlObject.Factory.parse(xml, options);
result.put(VALID_PROPERTY, x.validate(options));
} catch (XmlException ex) {
resultErrors.add("Could not parse XML document: "+ ex.getMessage());
}
/*
* TODO Re-do error handling in XMLHelper and remove the next block. Use XMLHelper.validate and not the xmlbeans version
* BLOCK taken from XMLHelper -> needs re-do because the current XMLHelper.validate()
* does not return errors and does not provide any means to access errors after validation
*/
// START of BLOCK
final Iterator<XmlError> iter = xmlErrors.iterator();
final List<XmlError> shouldPassErrors = new LinkedList<XmlError>();
final List<XmlError> errors = new LinkedList<XmlError>();
while (iter.hasNext()) {
final XmlError error = iter.next();
boolean shouldPass = false;
if (error instanceof XmlValidationError) {
for (final LaxValidationCase lvc : LaxValidationCase.values()) {
if (lvc.shouldPass((XmlValidationError) error)) {
shouldPass = true;
LOGGER.debug("Lax validation case found for XML validation error: {}", error);
break;
}
}
}
if (shouldPass) {
shouldPassErrors.add(error);
} else {
errors.add(error);
}
}
if (errors.size() > 0) {
for (XmlError e : errors) {
resultErrors.add(e.toString());
}
} else if (errors.size() == 0) {
result.put(VALID_PROPERTY, true);
}
// END of BLOCK
// uncomment next lines if BLOCK is removed
// for (XmlError e : xmlErrors) {
// resultErrors.put(e.toString());
// }
LOGGER.trace("Finishing validation");
return result.toString();
}
|
@ResponseBody
@ResponseStatus(HttpStatus.OK)
@RequestMapping(method = RequestMethod.POST,
consumes = MediaType.APPLICATION_XML_VALUE,
produces = MediaType.APPLICATION_JSON_VALUE)
public String validate(@RequestBody String xml) {
LOGGER.trace("Starting validation");
ObjectNode result = Json.nodeFactory().objectNode();
ArrayNode resultErrors = result.putArray(ERRORS_PROPERTY);
LinkedList<XmlError> xmlErrors = new LinkedList<>();
XmlOptions options = new XmlOptions().setErrorListener(xmlErrors)
.setLoadLineNumbers(XmlOptions.LOAD_LINE_NUMBERS_END_ELEMENT);
try {
XmlObject x = XmlObject.Factory.parse(xml, options);
result.put(VALID_PROPERTY, x.validate(options));
} catch (XmlException ex) {
resultErrors.add("Could not parse XML document: " + ex.getMessage());
}
/*
* TODO Re-do error handling in XMLHelper and remove the next block. Use
* XMLHelper.validate and not the xmlbeans version BLOCK taken from
* XMLHelper -> needs re-do because the current XMLHelper.validate()
* does not return errors and does not provide any means to access
* errors after validation
*/
// START of BLOCK
Iterator<XmlError> iter = xmlErrors.iterator();
List<XmlError> errors = new LinkedList<>();
while (iter.hasNext()) {
XmlError error = iter.next();
boolean shouldPass = false;
if (error instanceof XmlValidationError) {
for (LaxValidationCase lvc : LaxValidationCase.values()) {
if (lvc.shouldPass((XmlValidationError) error)) {
shouldPass = true;
LOGGER.debug("Lax validation case found for XML validation error: {}", error);
break;
}
}
}
if (!shouldPass) {
errors.add(error);
}
}
if (!errors.isEmpty()) {
errors.stream().map(XmlError::toString).forEach(resultErrors::add);
} else {
result.put(VALID_PROPERTY, true);
}
// END of BLOCK
// uncomment next lines if BLOCK is removed
// for (XmlError e : xmlErrors) {
// resultErrors.put(e.toString());
// }
LOGGER.trace("Finishing validation");
return result.toString();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
hibernate/dao/src/main/java/org/n52/sos/ds/hibernate/admin/HibernateProcedureFormatDAO.java
|
hibernate/handler/src/main/java/org/n52/sos/ds/hibernate/admin/HibernateProcedureFormatDAO.java
|
HibernateProcedureFormatDAO
|
HibernateProcedureFormatDAO
|
getProcedureFormatMap__()
|
getProcedureFormatMap__()
|
@Override
public Map<String, String> getProcedureFormatMap() throws OwsExceptionReport {
Session session = null;
Map<String,String> procedureFormatMap = null;
try {
session = this.sessionHolder.getSession();
procedureFormatMap = new ProcedureDAO().getProcedureFormatMap(session);
} finally {
this.sessionHolder.returnSession(session);
}
return procedureFormatMap;
}
|
@Override
public Map<String, String> getProcedureFormatMap() throws OwsExceptionReport {
Session session = null;
Map<String, String> procedureFormatMap = null;
try {
session = this.sessionHolder.getSession();
procedureFormatMap = daoFactory.getProcedureDAO().getProcedureFormatMap(session);
} finally {
this.sessionHolder.returnSession(session);
}
return procedureFormatMap;
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
core/cache/src/main/java/org/n52/sos/cache/ctrl/action/ResultInsertionUpdate.java
|
core/cache/src/main/java/org/n52/sos/cache/ctrl/action/ResultInsertionUpdate.java
|
ResultInsertionUpdate
|
ResultInsertionUpdate
|
execute__()
|
execute__()
|
@Override
public void execute() {
// TODO remove not required updates and adjust test accordingly
final InMemoryCacheImpl cache = (InMemoryCacheImpl) getCache();
final String observationType = observation.getObservationConstellation().getObservationType();
final String procedure = observation.getObservationConstellation().getProcedure().getIdentifier();
final String observableProperty = observation.getObservationConstellation().getObservableProperty().getIdentifier();
final Time phenomenonTime = observation.getPhenomenonTime();
final Time resultTime = observation.getResultTime();
cache.updatePhenomenonTime(phenomenonTime);
cache.updateResultTime(resultTime);
cache.addProcedure(procedure);
cache.updatePhenomenonTimeForProcedure(procedure, phenomenonTime);
cache.addProcedureForObservableProperty(observableProperty, procedure);
cache.addObservablePropertyForResultTemplate(templateIdentifier, observableProperty);
cache.addObservablePropertyForProcedure(procedure, observableProperty);
List<SamplingFeature> observedFeatures =
sosFeaturesToList(observation.getObservationConstellation().getFeatureOfInterest());
final Envelope envelope = createEnvelopeFrom(observedFeatures);
cache.updateGlobalEnvelope(envelope);
for (SamplingFeature sosSamplingFeature : observedFeatures) {
final String featureOfInterest = sosSamplingFeature.getIdentifierCodeWithAuthority().getValue();
cache.addFeatureOfInterest(featureOfInterest);
cache.addFeatureOfInterestForResultTemplate(templateIdentifier, featureOfInterest);
cache.addProcedureForFeatureOfInterest(featureOfInterest, procedure);
for (String offering : observation.getObservationConstellation().getOfferings()) {
cache.addFeatureOfInterestForOffering(offering, featureOfInterest);
}
}
for (String offering : observation.getObservationConstellation().getOfferings()) {
cache.addOffering(offering);
if (!cache.getHiddenChildProceduresForOffering(offering).contains(procedure)) {
cache.addProcedureForOffering(offering, procedure);
}
cache.addOfferingForProcedure(procedure, offering);
cache.updateEnvelopeForOffering(offering, envelope);
cache.updatePhenomenonTimeForOffering(offering, phenomenonTime);
cache.updateResultTimeForOffering(offering, resultTime);
// observable property
cache.addOfferingForObservableProperty(observableProperty, offering);
cache.addObservablePropertyForOffering(offering, observableProperty);
// observation type
cache.addObservationTypesForOffering(offering, observationType);
}
}
|
@Override
public void execute() {
// TODO remove not required updates and adjust test accordingly
final InMemoryCacheImpl cache = (InMemoryCacheImpl) getCache();
for (OmObservation observation : observations) {
final String observationType = observation.getObservationConstellation().getObservationType();
final String procedure = observation.getObservationConstellation().getProcedure().getIdentifier();
final String observableProperty =
observation.getObservationConstellation().getObservableProperty().getIdentifier();
final Time phenomenonTime = observation.getPhenomenonTime();
final Time resultTime = observation.getResultTime();
cache.updatePhenomenonTime(phenomenonTime);
cache.updateResultTime(resultTime);
cache.addProcedure(procedure);
cache.updatePhenomenonTimeForProcedure(procedure, phenomenonTime);
cache.addProcedureForObservableProperty(observableProperty, procedure);
cache.addObservablePropertyForResultTemplate(templateIdentifier, observableProperty);
cache.addObservablePropertyForProcedure(procedure, observableProperty);
List<AbstractSamplingFeature> observedFeatures =
sosFeaturesToList(observation.getObservationConstellation().getFeatureOfInterest());
Envelope envelope = createEnvelopeFrom(observedFeatures);
cache.updateGlobalEnvelope(envelope);
observedFeatures.stream().map(AbstractSamplingFeature::getIdentifier).forEach(featureOfInterest -> {
cache.addFeatureOfInterest(featureOfInterest);
cache.addFeatureOfInterestForResultTemplate(templateIdentifier, featureOfInterest);
cache.addProcedureForFeatureOfInterest(featureOfInterest, procedure);
observation.getObservationConstellation().getOfferings()
.forEach(offering -> cache.addFeatureOfInterestForOffering(offering, featureOfInterest));
});
observation.getObservationConstellation().getOfferings().stream().forEach(offering -> {
cache.addOffering(offering);
if (!cache.getHiddenChildProceduresForOffering(offering).contains(procedure)) {
cache.addProcedureForOffering(offering, procedure);
}
cache.addOfferingForProcedure(procedure, offering);
cache.updateEnvelopeForOffering(offering, envelope);
cache.updatePhenomenonTimeForOffering(offering, phenomenonTime);
cache.updateResultTimeForOffering(offering, resultTime);
// observable property
cache.addOfferingForObservableProperty(observableProperty, offering);
cache.addObservablePropertyForOffering(offering, observableProperty);
// observation type
cache.addObservationTypesForOffering(offering, observationType);
});
}
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
coding/netcdf/coding/src/main/java/org/n52/sos/encode/AbstractNetcdfEncoder.java
|
coding/netcdf/coding/src/main/java/org/n52/sos/encode/AbstractNetcdfEncoder.java
|
AbstractNetcdfEncoder
|
AbstractNetcdfEncoder
|
getConformanceClasses__(String service, String version)
|
getConformanceClasses__(String service, String version)
|
@Override
public Set<String> getConformanceClasses(String service, String version) {
if(SosConstants.SOS.equals(service) && Sos2Constants.SERVICEVERSION.equals(version)) {
return Collections.unmodifiableSet(CONFORMANCE_CLASSES);
}
return Collections.emptySet();
}
|
@Override
public Set<String> getConformanceClasses(String service, String version) {
if (SosConstants.SOS.equals(service) && Sos2Constants.SERVICEVERSION.equals(version)) {
return Collections.unmodifiableSet(CONFORMANCE_CLASSES);
}
return Collections.emptySet();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
coding/netcdf/coding/src/main/java/org/n52/sos/encode/AbstractNetcdfEncoder.java
|
coding/netcdf/coding/src/main/java/org/n52/sos/encode/AbstractNetcdfEncoder.java
|
AbstractNetcdfEncoder
|
AbstractNetcdfEncoder
|
encode__(Object element)
|
encode__(Object element)
|
@Override
public BinaryAttachmentResponse encode(Object element) throws OwsExceptionReport {
return encode(element, new EnumMap<HelperValues, String>(HelperValues.class));
}
|
@Override
public BinaryAttachmentResponse encode(Object element) throws EncodingException {
return encode(element, EncodingContext.empty());
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
coding/netcdf/coding/src/main/java/org/n52/sos/encode/AbstractNetcdfEncoder.java
|
coding/netcdf/coding/src/main/java/org/n52/sos/encode/AbstractNetcdfEncoder.java
|
AbstractNetcdfEncoder
|
AbstractNetcdfEncoder
|
encode__(Object objectToEncode, Map<HelperValues, String> additionalValues)
|
encode__(Object objectToEncode, EncodingContext additionalValues)
|
@Override
public BinaryAttachmentResponse encode(Object objectToEncode, Map<HelperValues, String> additionalValues)
throws OwsExceptionReport {
if (objectToEncode instanceof AbstractObservationResponse) {
AbstractObservationResponse aor = (AbstractObservationResponse) objectToEncode;
Version version = getVersion(aor);
return encodeGetObsResponse(aor.getObservationCollection(), version);
}
throw new UnsupportedEncoderInputException(this, objectToEncode);
}
|
@Override
public BinaryAttachmentResponse encode(Object objectToEncode, EncodingContext additionalValues)
throws EncodingException {
if (objectToEncode instanceof AbstractObservationResponse) {
AbstractObservationResponse aor = (AbstractObservationResponse) objectToEncode;
Version version = getVersion(aor);
return encodeGetObsResponse(aor.getObservationCollection(), version);
}
throw new UnsupportedEncoderInputException(this, objectToEncode);
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
coding/netcdf/coding/src/main/java/org/n52/sos/encode/AbstractNetcdfEncoder.java
|
coding/netcdf/coding/src/main/java/org/n52/sos/encode/AbstractNetcdfEncoder.java
|
AbstractNetcdfEncoder
|
AbstractNetcdfEncoder
|
getVersion__(AbstractObservationResponse aor)
|
getVersion__(AbstractObservationResponse aor)
|
private Version getVersion(AbstractObservationResponse aor) {
MediaType contentType = getBestFitContentType(aor);
if (contentType != null && contentType.hasParameter(NetcdfConstants.PARAM_VERSION)) {
List<String> parameter = contentType.getParameter(NetcdfConstants.PARAM_VERSION);
if (parameter.contains("3")) {
return Version.netcdf3;
} else if (parameter.contains("4")) {
return Version.netcdf4;
}
}
return getDefaultVersion();
}
|
private Version getVersion(AbstractObservationResponse aor) {
MediaType contentType = getBestFitContentType(aor);
if (contentType != null && contentType.hasParameter(NetcdfConstants.PARAM_VERSION)) {
Collection<String> parameter = contentType.getParameter(NetcdfConstants.PARAM_VERSION);
if (parameter.contains("3")) {
return Version.netcdf3;
} else if (parameter.contains("4")) {
return Version.netcdf4;
}
}
return getDefaultVersion();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
coding/netcdf/coding/src/main/java/org/n52/sos/encode/AbstractNetcdfEncoder.java
|
coding/netcdf/coding/src/main/java/org/n52/sos/encode/AbstractNetcdfEncoder.java
|
AbstractNetcdfEncoder
|
AbstractNetcdfEncoder
|
getDefaultVersion__()
|
getDefaultVersion__()
|
protected Version getDefaultVersion() {
return NetcdfHelper.getInstance().getNetcdfVersion();
}
|
protected Version getDefaultVersion() {
return getNetcdfHelper().getNetcdfVersion();
}
|
52North_SOS__520cc60fd93dbfb6e48d75f23765d72556ef7fa1__c92d475de8a1b1cf5cb71462302fc510d7a69446
|
coding/netcdf/coding/src/main/java/org/n52/sos/encode/AbstractNetcdfEncoder.java
|
coding/netcdf/coding/src/main/java/org/n52/sos/encode/AbstractNetcdfEncoder.java
|
AbstractNetcdfEncoder
|
AbstractNetcdfEncoder
|
encodeNetCDFObsToNetcdf__(List<NetCDFObservation> netCDFSosObsList,
Version version)
|
encodeNetCDFObsToNetcdf__(List<NetCDFObservation> netCDFSosObsList,
Version version)
|
protected abstract BinaryAttachmentResponse encodeNetCDFObsToNetcdf(List<NetCDFObservation> netCDFSosObsList,
Version version) throws OwsExceptionReport;
|
protected abstract BinaryAttachmentResponse encodeNetCDFObsToNetcdf(List<NetCDFObservation> netCDFSosObsList,
Version version) throws EncodingException, IOException;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.