public class OfferingCacheUpdateTask extends AbstractThreadableDatasourceCacheUpdate
Modifier and Type | Field and Description |
---|---|
private FeatureOfInterestDAO |
featureDAO |
private boolean |
hasSamplingGeometry |
private static org.slf4j.Logger |
LOGGER |
private boolean |
obsConstSupported |
private Collection<ObservationConstellationInfo> |
observationConstellationInfos |
private Offering |
offering |
private String |
offeringId |
Constructor and Description |
---|
OfferingCacheUpdateTask(Offering offering,
Collection<ObservationConstellationInfo> observationConstellationInfos,
boolean hasSamplingGeometry)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
addHumanReadableIdentifier(String offeringId,
Offering offering,
MultilingualString name) |
protected void |
addOfferingNamesAndDescriptionsToCache(String offeringId,
org.hibernate.Session session) |
protected void |
addSpatialFilteringProfileEnvelopeForOffering(String prefixedOfferingId,
String offeringID,
org.hibernate.Session session)
Get SpatialFilteringProfile envelope if exist and supported
|
void |
execute() |
protected SosEnvelope |
getEnvelopeForOffering(Collection<String> featureOfInterestIdentifiers,
org.hibernate.Session session) |
protected Set<String> |
getFeatureOfInterestTypes(List<String> featureOfInterestIdentifiers,
org.hibernate.Session session) |
protected Set<String> |
getObservablePropertyIdentifier(org.hibernate.Session session) |
protected Set<String> |
getObservationTypes(org.hibernate.Session session) |
private Set<String> |
getObservationTypesFromObservations(org.hibernate.Session session) |
protected void |
getOfferingInformationFromDbAndAddItToCacheMaps(org.hibernate.Session session) |
protected Map<ProcedureFlag,Set<String>> |
getProcedureIdentifier(org.hibernate.Session session) |
protected Collection<String> |
getValidFeaturesOfInterestFrom(Collection<String> featureOfInterestIdentifiers) |
getSession, getSessionFactory, setSessionFactory
setSession
getCache, getErrors, getFeatureQueryHandler, setCache, setErrors, toString
run, setParentCountDownLatch
getStopwatchResult, startStopwatch
private static final org.slf4j.Logger LOGGER
private final FeatureOfInterestDAO featureDAO
private final String offeringId
private final Collection<ObservationConstellationInfo> observationConstellationInfos
private final Offering offering
private boolean obsConstSupported
private boolean hasSamplingGeometry
public OfferingCacheUpdateTask(Offering offering, Collection<ObservationConstellationInfo> observationConstellationInfos, boolean hasSamplingGeometry)
offering
- Offering identifierobservationConstellationInfos
- Observation Constellation info collection, passed in from
parent update if supportedhasSamplingGeometry
- Indicator to execute or not the extent query for the Spatial
Filtering Profileprotected void getOfferingInformationFromDbAndAddItToCacheMaps(org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
protected void addOfferingNamesAndDescriptionsToCache(String offeringId, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
private void addHumanReadableIdentifier(String offeringId, Offering offering, MultilingualString name)
protected Map<ProcedureFlag,Set<String>> getProcedureIdentifier(org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
protected Collection<String> getValidFeaturesOfInterestFrom(Collection<String> featureOfInterestIdentifiers)
protected Set<String> getObservablePropertyIdentifier(org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
protected Set<String> getObservationTypes(org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
private Set<String> getObservationTypesFromObservations(org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
protected Set<String> getFeatureOfInterestTypes(List<String> featureOfInterestIdentifiers, org.hibernate.Session session)
protected SosEnvelope getEnvelopeForOffering(Collection<String> featureOfInterestIdentifiers, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
protected void addSpatialFilteringProfileEnvelopeForOffering(String prefixedOfferingId, String offeringID, org.hibernate.Session session) throws OwsExceptionReport
prefixedOfferingId
- Offering identifier used in requests and responsesofferingID
- Database Offering identifier to get envelope forsession
- Hibernate sessionOwsExceptionReport
- If an error occurspublic void execute()
Copyright © 2012-2015 52north.org. All Rights Reserved.