Class PlatformAssembler
java.lang.Object
org.n52.sensorweb.server.db.assembler.ParameterAssembler<E>
org.n52.sensorweb.server.db.assembler.ParameterOutputAssembler<org.n52.series.db.beans.PlatformEntity,org.n52.io.response.PlatformOutput,org.n52.series.spi.search.PlatformSearchResult>
org.n52.sensorweb.server.db.assembler.core.PlatformAssembler
- All Implemented Interfaces:
ClearAssembler<org.n52.series.db.beans.PlatformEntity>,InsertAssembler<org.n52.series.db.beans.PlatformEntity>,TransactionalAssembler<org.n52.series.db.beans.PlatformEntity>,OutputAssembler<org.n52.io.response.PlatformOutput>
@Component
@Transactional
public class PlatformAssembler
extends ParameterOutputAssembler<org.n52.series.db.beans.PlatformEntity,org.n52.io.response.PlatformOutput,org.n52.series.spi.search.PlatformSearchResult>
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformAssembler(PlatformRepository platformRepository, DatasetRepository datasetRepository) -
Method Summary
Modifier and TypeMethodDescriptionorg.n52.series.db.beans.PlatformEntitycheckReferencedEntities(org.n52.series.db.beans.PlatformEntity entity) protected org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.PlatformEntity>createFilterPredicate(DbQuery query) org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.PlatformEntity>createPublicPredicate(String id, DbQuery query) protected org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.PlatformEntity>protected ParameterOutputSearchResultMapper<org.n52.series.db.beans.PlatformEntity,org.n52.io.response.PlatformOutput> protected org.n52.io.response.PlatformOutputprotected org.n52.series.spi.search.PlatformSearchResultMethods 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, getOrInsertInstance, getOrUpdateInstance, updateInstance
-
Constructor Details
-
PlatformAssembler
public PlatformAssembler(PlatformRepository platformRepository, DatasetRepository datasetRepository)
-
-
Method Details
-
prepareEmptyOutput
protected org.n52.io.response.PlatformOutput prepareEmptyOutput()- Specified by:
prepareEmptyOutputin classParameterOutputAssembler<org.n52.series.db.beans.PlatformEntity,org.n52.io.response.PlatformOutput, org.n52.series.spi.search.PlatformSearchResult>
-
prepareEmptySearchResult
protected org.n52.series.spi.search.PlatformSearchResult prepareEmptySearchResult()- Specified by:
prepareEmptySearchResultin classParameterOutputAssembler<org.n52.series.db.beans.PlatformEntity,org.n52.io.response.PlatformOutput, org.n52.series.spi.search.PlatformSearchResult>
-
createSearchFilterPredicate
protected org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.PlatformEntity> createSearchFilterPredicate(DbQuery query) - Specified by:
createSearchFilterPredicatein classParameterOutputAssembler<org.n52.series.db.beans.PlatformEntity,org.n52.io.response.PlatformOutput, org.n52.series.spi.search.PlatformSearchResult>
-
createFilterPredicate
protected org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.PlatformEntity> createFilterPredicate(DbQuery query) - Specified by:
createFilterPredicatein classParameterAssembler<org.n52.series.db.beans.PlatformEntity>
-
createPublicPredicate
public org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.PlatformEntity> createPublicPredicate(String id, DbQuery query) - Specified by:
createPublicPredicatein classParameterOutputAssembler<org.n52.series.db.beans.PlatformEntity,org.n52.io.response.PlatformOutput, org.n52.series.spi.search.PlatformSearchResult>
-
getMapper
protected ParameterOutputSearchResultMapper<org.n52.series.db.beans.PlatformEntity,org.n52.io.response.PlatformOutput> getMapper(DbQuery query) - Specified by:
getMapperin classParameterOutputAssembler<org.n52.series.db.beans.PlatformEntity,org.n52.io.response.PlatformOutput, org.n52.series.spi.search.PlatformSearchResult>
-
checkReferencedEntities
public org.n52.series.db.beans.PlatformEntity checkReferencedEntities(org.n52.series.db.beans.PlatformEntity entity)
-