Class ServiceAssembler
- java.lang.Object
-
- org.n52.sensorweb.server.db.assembler.core.ServiceAssembler
-
- All Implemented Interfaces:
ClearAssembler<org.n52.series.db.beans.ServiceEntity>,InsertAssembler<org.n52.series.db.beans.ServiceEntity>,TransactionalAssembler<org.n52.series.db.beans.ServiceEntity>,OutputAssembler<org.n52.io.response.ServiceOutput>
@Component @Transactional public class ServiceAssembler extends Object implements OutputAssembler<org.n52.io.response.ServiceOutput>, InsertAssembler<org.n52.series.db.beans.ServiceEntity>, ClearAssembler<org.n52.series.db.beans.ServiceEntity>
-
-
Constructor Summary
Constructors Constructor Description ServiceAssembler(Optional<ParameterDataRepository<org.n52.series.db.beans.ServiceEntity>> serviceRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearUnusedForService(org.n52.series.db.beans.ServiceEntity service)protected org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.ServiceEntity>createFilterPredicate(DbQuery query)org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.ServiceEntity>createPublicPredicate(String id, DbQuery query)booleanexists(String id, DbQuery query)List<org.n52.io.response.ServiceOutput>getAllCondensed(DbQuery query)List<org.n52.io.response.ServiceOutput>getAllExpanded(DbQuery query)org.n52.io.response.ServiceOutputgetInstance(String id, DbQuery query)ParameterDataRepository<org.n52.series.db.beans.ServiceEntity>getParameterRepository()org.n52.series.db.beans.ServiceEntityrefresh(org.n52.series.db.beans.ServiceEntity entity)Collection<org.n52.series.spi.search.SearchResult>searchFor(DbQuery query)-
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.InsertAssembler
checkParameter, getOrInsertInstance, updateInstance
-
-
-
-
Constructor Detail
-
ServiceAssembler
public ServiceAssembler(Optional<ParameterDataRepository<org.n52.series.db.beans.ServiceEntity>> serviceRepository)
-
-
Method Detail
-
getParameterRepository
public ParameterDataRepository<org.n52.series.db.beans.ServiceEntity> getParameterRepository()
- Specified by:
getParameterRepositoryin interfaceTransactionalAssembler<org.n52.series.db.beans.ServiceEntity>
-
getAllCondensed
public List<org.n52.io.response.ServiceOutput> getAllCondensed(DbQuery query)
- Specified by:
getAllCondensedin interfaceOutputAssembler<org.n52.io.response.ServiceOutput>
-
getAllExpanded
public List<org.n52.io.response.ServiceOutput> getAllExpanded(DbQuery query)
- Specified by:
getAllExpandedin interfaceOutputAssembler<org.n52.io.response.ServiceOutput>
-
getInstance
public org.n52.io.response.ServiceOutput getInstance(String id, DbQuery query)
- Specified by:
getInstancein interfaceOutputAssembler<org.n52.io.response.ServiceOutput>
-
searchFor
public Collection<org.n52.series.spi.search.SearchResult> searchFor(DbQuery query)
- Specified by:
searchForin interfaceOutputAssembler<org.n52.io.response.ServiceOutput>
-
exists
public boolean exists(String id, DbQuery query)
- Specified by:
existsin interfaceOutputAssembler<org.n52.io.response.ServiceOutput>
-
createPublicPredicate
public org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.ServiceEntity> createPublicPredicate(String id, DbQuery query)
-
createFilterPredicate
protected org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.ServiceEntity> createFilterPredicate(DbQuery query)
-
clearUnusedForService
public void clearUnusedForService(org.n52.series.db.beans.ServiceEntity service)
- Specified by:
clearUnusedForServicein interfaceClearAssembler<org.n52.series.db.beans.ServiceEntity>
-
refresh
public org.n52.series.db.beans.ServiceEntity refresh(org.n52.series.db.beans.ServiceEntity entity)
- Specified by:
refreshin interfaceInsertAssembler<org.n52.series.db.beans.ServiceEntity>
-
-