Package org.n52.series.db.old.da
Class ServiceAssembler
java.lang.Object
org.n52.series.db.old.da.SessionAwareAssembler
org.n52.series.db.old.da.ParameterAssembler<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput>
org.n52.series.db.old.da.ServiceAssembler
- All Implemented Interfaces:
TimeOutputCreator,OutputAssembler<org.n52.io.response.ServiceOutput>,SearchableAssembler,org.springframework.beans.factory.InitializingBean
public class ServiceAssembler
extends ParameterAssembler<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput>
-
Field Summary
Fields inherited from class org.n52.series.db.old.da.SessionAwareAssembler
dbQueryFactory, mapperFactory, serviceEntityFactoryFields inherited from interface org.n52.sensorweb.server.db.TimeOutputCreator
OFFSET_REGEX -
Constructor Summary
ConstructorsConstructorDescriptionServiceAssembler(EntityCounter counter, org.n52.io.handler.DefaultIoFactory<org.n52.io.response.dataset.DatasetOutput<org.n52.io.response.dataset.AbstractValue<?>>, org.n52.io.response.dataset.AbstractValue<?>> ioFactoryCreator, HibernateSessionStore sessionStore, DbQueryFactory dbQueryFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.n52.io.response.ServiceOutputcreateCondensed(org.n52.series.db.beans.ServiceEntity entity, DbQuery query, org.hibernate.Session session) protected ServiceDaocreateDao(org.hibernate.Session session) protected org.n52.series.spi.search.SearchResultcreateEmptySearchResult(String id, String label, String baseUrl) protected org.n52.io.response.ServiceOutputcreateExpanded(org.n52.series.db.beans.ServiceEntity entity, DbQuery query, org.hibernate.Session session) protected SearchableDao<org.n52.series.db.beans.ServiceEntity>createSearchableDao(org.hibernate.Session session) booleanprotected List<org.n52.series.db.beans.ServiceEntity>getAllInstances(DbQuery parameters, org.hibernate.Session session) protected Optional<org.n52.series.db.beans.ServiceEntity>getEntity(Long id, AbstractDao<org.n52.series.db.beans.ServiceEntity> dao, DbQuery query) protected ParameterOutputSearchResultMapper<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput> getOutputMapper(DbQuery query) protected org.n52.io.response.ServiceOutputCollection<org.n52.series.spi.search.SearchResult>Methods inherited from class org.n52.series.db.old.da.ParameterAssembler
convertToSearchResults, createCondensed, createExpanded, getAllCondensed, getAllExpanded, getInstance, getInstanceMethods inherited from class org.n52.series.db.old.da.SessionAwareAssembler
afterPropertiesSet, createCondensed, createDatasetParameters, createGeometry, createTimeOutput, createTimeOutput, getCondensedCategory, getCondensedFeature, getCondensedOffering, getCondensedPhenomenon, getCondensedPlatform, getCondensedProcedure, getCondensedService, getCondensedTag, getCondensedTags, getCrsUtils, getDbQuery, getGeometry, getMapperFactory, getOriginTimeZone, getServiceEntity, getServiceEntity, getSession, getSessionStore, parseId, returnSessionMethods 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.TimeOutputCreator
createTimeOutput
-
Constructor Details
-
ServiceAssembler
public ServiceAssembler(EntityCounter counter, org.n52.io.handler.DefaultIoFactory<org.n52.io.response.dataset.DatasetOutput<org.n52.io.response.dataset.AbstractValue<?>>, org.n52.io.response.dataset.AbstractValue<?>> ioFactoryCreator, HibernateSessionStore sessionStore, DbQueryFactory dbQueryFactory)
-
-
Method Details
-
prepareEmptyParameterOutput
protected org.n52.io.response.ServiceOutput prepareEmptyParameterOutput()- Specified by:
prepareEmptyParameterOutputin classParameterAssembler<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput>
-
createEmptySearchResult
protected org.n52.series.spi.search.SearchResult createEmptySearchResult(String id, String label, String baseUrl) - Specified by:
createEmptySearchResultin classParameterAssembler<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput>
-
createDao
- Specified by:
createDaoin classParameterAssembler<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput>
-
createSearchableDao
protected SearchableDao<org.n52.series.db.beans.ServiceEntity> createSearchableDao(org.hibernate.Session session) - Specified by:
createSearchableDaoin classParameterAssembler<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput>
-
exists
- Specified by:
existsin interfaceOutputAssembler<org.n52.io.response.ServiceOutput>- Overrides:
existsin classParameterAssembler<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput>
-
searchFor
- Specified by:
searchForin interfaceOutputAssembler<org.n52.io.response.ServiceOutput>- Specified by:
searchForin interfaceSearchableAssembler- Overrides:
searchForin classParameterAssembler<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput>
-
getAllInstances
protected List<org.n52.series.db.beans.ServiceEntity> getAllInstances(DbQuery parameters, org.hibernate.Session session) - Overrides:
getAllInstancesin classParameterAssembler<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput>
-
getEntity
protected Optional<org.n52.series.db.beans.ServiceEntity> getEntity(Long id, AbstractDao<org.n52.series.db.beans.ServiceEntity> dao, DbQuery query) - Overrides:
getEntityin classParameterAssembler<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput>
-
createCondensed
protected org.n52.io.response.ServiceOutput createCondensed(org.n52.series.db.beans.ServiceEntity entity, DbQuery query, org.hibernate.Session session) - Specified by:
createCondensedin classParameterAssembler<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput>
-
createExpanded
protected org.n52.io.response.ServiceOutput createExpanded(org.n52.series.db.beans.ServiceEntity entity, DbQuery query, org.hibernate.Session session) - Specified by:
createExpandedin classParameterAssembler<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput>
-
getOutputMapper
protected ParameterOutputSearchResultMapper<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput> getOutputMapper(DbQuery query) - Specified by:
getOutputMapperin classParameterAssembler<org.n52.series.db.beans.ServiceEntity,org.n52.io.response.ServiceOutput>
-