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
Constructors Constructor Description PlatformAssembler(PlatformRepository platformRepository, DatasetRepository datasetRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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>createSearchFilterPredicate(DbQuery query)protected ParameterOutputSearchResultMapper<org.n52.series.db.beans.PlatformEntity,org.n52.io.response.PlatformOutput>getMapper(DbQuery query)protected org.n52.io.response.PlatformOutputprepareEmptyOutput()protected org.n52.series.spi.search.PlatformSearchResultprepareEmptySearchResult()-
Methods inherited from class org.n52.sensorweb.server.db.assembler.ParameterOutputAssembler
exists, findAllSearch, getAllCondensed, getAllExpanded, getDatasetRepository, getInstance, getOutputMapperFactory, searchFor
-
Methods inherited from class org.n52.sensorweb.server.db.assembler.ParameterAssembler
checkParameter, checkParameter, checkUnit, count, findAll, findAll, getDatasetQuerySpecification, getEntityManager, getFormat, getFormatAssembler, getOrInsertUnit, getParameterRepository, merge, refresh
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.sensorweb.server.db.assembler.ClearAssembler
clearUnusedForService
-
Methods inherited from interface org.n52.sensorweb.server.db.assembler.InsertAssembler
checkParameterUpdate, getOrInsertInstance, getOrUpdateInstance, updateInstance
-
-
-
-
Constructor Detail
-
PlatformAssembler
public PlatformAssembler(PlatformRepository platformRepository, DatasetRepository datasetRepository)
-
-
Method Detail
-
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)
-
-