Class ParameterOutputSearchResultMapper<E extends org.n52.series.db.beans.DescribableEntity,O extends org.n52.io.response.ParameterOutput>
java.lang.Object
org.n52.sensorweb.server.db.assembler.mapper.ParameterOutputSearchResultMapper<E,O>
- All Implemented Interfaces:
OutputMapper<E,,O> TimeOutputCreator
- Direct Known Subclasses:
CategoryOutputMapper,DatasetOutputMapper,FeatureOutputMapper,HierarchicalOutputMapper,MeasuringProgramOutputMapper,PlatformOutputMapper,SamplingOutputMapper,ServiceOutputMapper,TagOutputMapper
public abstract class ParameterOutputSearchResultMapper<E extends org.n52.series.db.beans.DescribableEntity,O extends org.n52.io.response.ParameterOutput>
extends Object
implements OutputMapper<E,O>, TimeOutputCreator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CategoryOutputMapperprotected FeatureOutputMapperprotected OfferingOutputMapperprotected PhenomenonOutputMapperprotected PlatformOutputMapperprotected ProcedureOutputMapperprotected ServiceOutputMapperFields inherited from interface org.n52.sensorweb.server.db.TimeOutputCreator
OFFSET_REGEX -
Constructor Summary
ConstructorsConstructorDescriptionParameterOutputSearchResultMapper(DbQuery query, OutputMapperFactory outputMapperFactory, boolean subMapper) -
Method Summary
Modifier and TypeMethodDescriptionaddExpandedValues(E entity, O output) protected OaddService(E entity, O output) createCondensed(E entity, O output) createCondensed(Collection<E> entities) protected <V extends org.n52.io.response.ParameterOutput>
VcreateCondensedMinimal(V result, org.n52.series.db.beans.DescribableEntity entity, DbQuery query) org.locationtech.jts.geom.GeometrycreateGeometry(org.n52.series.db.beans.AbstractFeatureEntity<?> featureEntity) <R extends org.n52.series.spi.search.SearchResult>
RcreateSearchResult(E entity, R result) protected org.n52.io.response.dataset.DatasetParameterscreateTimeseriesOutput(org.n52.series.db.beans.DatasetEntity dataset, DbQuery parameters) protected org.n52.io.response.CategoryOutputgetCategoryOutput(org.n52.series.db.beans.CategoryEntity entity) protected org.n52.io.response.dataset.DatasetOutput<org.n52.io.response.dataset.AbstractValue<?>>getDatasetOutput(org.n52.series.db.beans.DatasetEntity datasetEntity, DbQuery query) protected DbQueryprotected org.n52.io.response.FeatureOutputgetFeatureOutput(org.n52.series.db.beans.AbstractFeatureEntity<?> entity) org.locationtech.jts.geom.GeometrygetGeometry(org.n52.series.db.beans.GeometryEntity geometryEntity) org.slf4j.Loggerprotected org.n52.io.response.OfferingOutputgetOfferingOutput(org.n52.series.db.beans.OfferingEntity entity) protected OutputMapperFactoryprotected org.n52.io.response.PhenomenonOutputgetPhenomenonOutput(org.n52.series.db.beans.PhenomenonEntity entity) protected org.n52.io.response.PlatformOutputgetPlatformOutput(org.n52.series.db.beans.PlatformEntity entity) protected org.n52.io.response.ProcedureOutputgetProcedureOutput(org.n52.series.db.beans.ProcedureEntity entity) protected org.n52.io.response.sampling.SamplingOutputgetSamplingOutput(org.n52.series.db.beans.sampling.SamplingEntity entity, DbQuery query) protected org.n52.io.response.ServiceOutputgetServiceOutput(org.n52.series.db.beans.ServiceEntity entity) protected org.n52.io.response.TagOutputgetTagOutput(org.n52.series.db.beans.TagEntity entity, DbQuery query) booleanprotected voidinitSubMapper(DbQuery query) protected voidinitSubSelect(DbQuery query, String... subs) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.sensorweb.server.db.assembler.mapper.OutputMapper
addAll, addDomainId, addHref, addLabel, addSelected, checkSelected, checkSubSelected, createCondensed, createExpanded, createExpanded, createLabel, getCollectionName, getParameterOuput, getSubSelection, isSelected, isSubSelected, logMethods inherited from interface org.n52.sensorweb.server.db.TimeOutputCreator
createTimeOutput, createTimeOutput, getOriginTimeZone
-
Field Details
-
serviceMapper
-
featureMapper
-
offeringMapper
-
procedureMapper
-
phenomenonMapper
-
categoryMapper
-
platformMapper
-
-
Constructor Details
-
ParameterOutputSearchResultMapper
public ParameterOutputSearchResultMapper(DbQuery query, OutputMapperFactory outputMapperFactory, boolean subMapper)
-
-
Method Details
-
initSubMapper
-
initSubSelect
-
createCondensed
- Specified by:
createCondensedin interfaceOutputMapper<E extends org.n52.series.db.beans.DescribableEntity,O extends org.n52.io.response.ParameterOutput>
-
createCondensed
-
addExpandedValues
- Specified by:
addExpandedValuesin interfaceOutputMapper<E extends org.n52.series.db.beans.DescribableEntity,O extends org.n52.io.response.ParameterOutput>
-
createSearchResult
-
addService
-
createGeometry
public org.locationtech.jts.geom.Geometry createGeometry(org.n52.series.db.beans.AbstractFeatureEntity<?> featureEntity) -
getGeometry
public org.locationtech.jts.geom.Geometry getGeometry(org.n52.series.db.beans.GeometryEntity geometryEntity) -
getOutputMapperFactory
-
getDbQuery
-
createCondensedMinimal
protected <V extends org.n52.io.response.ParameterOutput> V createCondensedMinimal(V result, org.n52.series.db.beans.DescribableEntity entity, DbQuery query) -
getDatasetOutput
protected org.n52.io.response.dataset.DatasetOutput<org.n52.io.response.dataset.AbstractValue<?>> getDatasetOutput(org.n52.series.db.beans.DatasetEntity datasetEntity, DbQuery query) -
getFeatureOutput
protected org.n52.io.response.FeatureOutput getFeatureOutput(org.n52.series.db.beans.AbstractFeatureEntity<?> entity) -
getOfferingOutput
protected org.n52.io.response.OfferingOutput getOfferingOutput(org.n52.series.db.beans.OfferingEntity entity) -
getPhenomenonOutput
protected org.n52.io.response.PhenomenonOutput getPhenomenonOutput(org.n52.series.db.beans.PhenomenonEntity entity) -
getCategoryOutput
protected org.n52.io.response.CategoryOutput getCategoryOutput(org.n52.series.db.beans.CategoryEntity entity) -
getProcedureOutput
protected org.n52.io.response.ProcedureOutput getProcedureOutput(org.n52.series.db.beans.ProcedureEntity entity) -
getPlatformOutput
protected org.n52.io.response.PlatformOutput getPlatformOutput(org.n52.series.db.beans.PlatformEntity entity) -
getServiceOutput
protected org.n52.io.response.ServiceOutput getServiceOutput(org.n52.series.db.beans.ServiceEntity entity) -
getTagOutput
protected org.n52.io.response.TagOutput getTagOutput(org.n52.series.db.beans.TagEntity entity, DbQuery query) -
getSamplingOutput
protected org.n52.io.response.sampling.SamplingOutput getSamplingOutput(org.n52.series.db.beans.sampling.SamplingEntity entity, DbQuery query) -
createTimeseriesOutput
protected org.n52.io.response.dataset.DatasetParameters createTimeseriesOutput(org.n52.series.db.beans.DatasetEntity dataset, DbQuery parameters) -
getLogger
public org.slf4j.Logger getLogger()- Specified by:
getLoggerin interfaceOutputMapper<E extends org.n52.series.db.beans.DescribableEntity,O extends org.n52.io.response.ParameterOutput>
-
getHrefBase
- Specified by:
getHrefBasein interfaceOutputMapper<E extends org.n52.series.db.beans.DescribableEntity,O extends org.n52.io.response.ParameterOutput>
-
hasSelect
public boolean hasSelect()- Specified by:
hasSelectin interfaceOutputMapper<E extends org.n52.series.db.beans.DescribableEntity,O extends org.n52.io.response.ParameterOutput>
-
getSelection
- Specified by:
getSelectionin interfaceOutputMapper<E extends org.n52.series.db.beans.DescribableEntity,O extends org.n52.io.response.ParameterOutput>
-
getSubSelection
- Specified by:
getSubSelectionin interfaceOutputMapper<E extends org.n52.series.db.beans.DescribableEntity,O extends org.n52.io.response.ParameterOutput>
-