public class HibernateObservationUtilities extends Object
Modifier | Constructor and Description |
---|---|
private |
HibernateObservationUtilities() |
@Deprecated public static ObservationConstellation getFirstObservationConstellation(Procedure p, ObservableProperty op, Collection<Offering> o, org.hibernate.Session s)
@Deprecated public static List<ObservationConstellation> getObservationConstellations(Procedure p, ObservableProperty op, Collection<Offering> o, org.hibernate.Session s)
@Deprecated public static List<OmObservation> createSosObservationsFromObservations(Collection<AbstractObservation> o, Map<Long,AbstractSpatialFilteringProfile> spf, String v, String rm, org.hibernate.Session s) throws OwsExceptionReport, ConverterException
o
- List of Observation objectsspf
- Map with spatial filtering profile entities, key observation
entity idv
- Service versionrm
- Requested result models
- Hibernate sessionOwsExceptionReport
- If an error occursConverterException
- If procedure creation failspublic static List<OmObservation> createSosObservationsFromObservations(Collection<AbstractObservation> o, String v, String rm, org.hibernate.Session s) throws OwsExceptionReport, ConverterException
OwsExceptionReport
ConverterException
@Deprecated public static OmObservation createSosObservationFromObservation(AbstractObservation o, AbstractSpatialFilteringProfile spf, String v, String rm, org.hibernate.Session s) throws OwsExceptionReport, ConverterException
OwsExceptionReport
ConverterException
public static OmObservation createSosObservationFromObservation(AbstractObservation o, String v, String rm, org.hibernate.Session s) throws OwsExceptionReport, ConverterException
OwsExceptionReport
ConverterException
public static Collection<? extends OmObservation> createSosObservationFromObservationConstellation(ObservationConstellation oc, List<String> fois, String version, org.hibernate.Session session) throws OwsExceptionReport, ConverterException
oc
- ObservationConstellation objectfois
- List of featureOfInterest identifiersversion
- Service versionsession
- Hibernate sessionOwsExceptionReport
- If an error occursConverterException
- If procedure creation failspublic static Collection<? extends OmObservation> createSosObservationFromSeries(Series series, String version, org.hibernate.Session session) throws OwsExceptionReport, ConverterException
series
- Series objectversion
- Service versionsession
- Hibernate sessionOwsExceptionReport
- If an error occursConverterException
- If procedure creation failspublic static List<OmObservation> unfoldObservation(OmObservation o) throws OwsExceptionReport
o
- OmObservation to unfoldOwsExceptionReport
- If unfolding failspublic static Set<Long> getObservationIds(Collection<AbstractObservation> observations)
observations
- Collection of observation objectsCopyright © 2012-2014 52north.org. All Rights Reserved.