Class OfferingAssembler
java.lang.Object
org.n52.sensorweb.server.db.assembler.ParameterAssembler<E>
org.n52.sensorweb.server.db.assembler.ParameterOutputAssembler<org.n52.series.db.beans.OfferingEntity,org.n52.io.response.OfferingOutput,org.n52.series.spi.search.OfferingSearchResult>
org.n52.sensorweb.server.db.assembler.core.OfferingAssembler
- All Implemented Interfaces:
ClearAssembler<org.n52.series.db.beans.OfferingEntity>,InsertAssembler<org.n52.series.db.beans.OfferingEntity>,TransactionalAssembler<org.n52.series.db.beans.OfferingEntity>,OutputAssembler<org.n52.io.response.OfferingOutput>
@Component
@Transactional
public class OfferingAssembler
extends ParameterOutputAssembler<org.n52.series.db.beans.OfferingEntity,org.n52.io.response.OfferingOutput,org.n52.series.spi.search.OfferingSearchResult>
-
Constructor Summary
ConstructorsConstructorDescriptionOfferingAssembler(OfferingRepository offeringRepository, DatasetRepository datasetRepository) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.OfferingEntity>createFilterPredicate(DbQuery query) protected org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.OfferingEntity>createPublicPredicate(String id, DbQuery query) protected org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.OfferingEntity>protected ParameterOutputSearchResultMapper<org.n52.series.db.beans.OfferingEntity,org.n52.io.response.OfferingOutput> org.n52.series.db.beans.OfferingEntitygetOrInsertInstance(org.n52.series.db.beans.OfferingEntity entity) protected org.n52.io.response.OfferingOutputprotected org.n52.series.spi.search.OfferingSearchResultMethods inherited from class org.n52.sensorweb.server.db.assembler.ParameterOutputAssembler
exists, findAllSearch, getAllCondensed, getAllExpanded, getDatasetRepository, getInstance, getOutputMapperFactory, searchForMethods inherited from class org.n52.sensorweb.server.db.assembler.ParameterAssembler
checkParameter, checkParameter, checkUnit, count, findAll, findAll, getDatasetQuerySpecification, getEntityManager, getFormat, getFormatAssembler, getOrInsertUnit, getParameterRepository, merge, refreshMethods 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.ClearAssembler
clearUnusedForServiceMethods inherited from interface org.n52.sensorweb.server.db.assembler.InsertAssembler
checkParameterUpdate, checkReferencedEntities, getOrUpdateInstance, updateInstance
-
Constructor Details
-
OfferingAssembler
public OfferingAssembler(OfferingRepository offeringRepository, DatasetRepository datasetRepository)
-
-
Method Details
-
prepareEmptyOutput
protected org.n52.io.response.OfferingOutput prepareEmptyOutput()- Specified by:
prepareEmptyOutputin classParameterOutputAssembler<org.n52.series.db.beans.OfferingEntity,org.n52.io.response.OfferingOutput, org.n52.series.spi.search.OfferingSearchResult>
-
prepareEmptySearchResult
protected org.n52.series.spi.search.OfferingSearchResult prepareEmptySearchResult()- Specified by:
prepareEmptySearchResultin classParameterOutputAssembler<org.n52.series.db.beans.OfferingEntity,org.n52.io.response.OfferingOutput, org.n52.series.spi.search.OfferingSearchResult>
-
createSearchFilterPredicate
protected org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.OfferingEntity> createSearchFilterPredicate(DbQuery query) - Specified by:
createSearchFilterPredicatein classParameterOutputAssembler<org.n52.series.db.beans.OfferingEntity,org.n52.io.response.OfferingOutput, org.n52.series.spi.search.OfferingSearchResult>
-
createFilterPredicate
protected org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.OfferingEntity> createFilterPredicate(DbQuery query) - Specified by:
createFilterPredicatein classParameterAssembler<org.n52.series.db.beans.OfferingEntity>
-
createPublicPredicate
protected org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.OfferingEntity> createPublicPredicate(String id, DbQuery query) - Specified by:
createPublicPredicatein classParameterOutputAssembler<org.n52.series.db.beans.OfferingEntity,org.n52.io.response.OfferingOutput, org.n52.series.spi.search.OfferingSearchResult>
-
getOrInsertInstance
public org.n52.series.db.beans.OfferingEntity getOrInsertInstance(org.n52.series.db.beans.OfferingEntity entity) -
getMapper
protected ParameterOutputSearchResultMapper<org.n52.series.db.beans.OfferingEntity,org.n52.io.response.OfferingOutput> getMapper(DbQuery query) - Specified by:
getMapperin classParameterOutputAssembler<org.n52.series.db.beans.OfferingEntity,org.n52.io.response.OfferingOutput, org.n52.series.spi.search.OfferingSearchResult>
-