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
ConstructorsConstructorDescriptionServiceAssembler(Optional<ParameterDataRepository<org.n52.series.db.beans.ServiceEntity>> serviceRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoidclearUnusedForService(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) booleanList<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) org.n52.series.db.beans.ServiceEntitygetOrInsertInstance(org.n52.series.db.beans.ServiceEntity entity) ParameterDataRepository<org.n52.series.db.beans.ServiceEntity>org.n52.series.db.beans.ServiceEntityrefresh(org.n52.series.db.beans.ServiceEntity entity) Collection<org.n52.series.spi.search.SearchResult>Methods 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.InsertAssembler
checkParameter, checkParameterUpdate, checkReferencedEntities, getOrUpdateInstance, updateInstance
-
Constructor Details
-
ServiceAssembler
public ServiceAssembler(Optional<ParameterDataRepository<org.n52.series.db.beans.ServiceEntity>> serviceRepository)
-
-
Method Details
-
getOrInsertInstance
public org.n52.series.db.beans.ServiceEntity getOrInsertInstance(org.n52.series.db.beans.ServiceEntity entity) - Specified by:
getOrInsertInstancein interfaceInsertAssembler<org.n52.series.db.beans.ServiceEntity>
-
getParameterRepository
- Specified by:
getParameterRepositoryin interfaceTransactionalAssembler<org.n52.series.db.beans.ServiceEntity>
-
getAllCondensed
- Specified by:
getAllCondensedin interfaceOutputAssembler<org.n52.io.response.ServiceOutput>
-
getAllExpanded
- Specified by:
getAllExpandedin interfaceOutputAssembler<org.n52.io.response.ServiceOutput>
-
getInstance
- Specified by:
getInstancein interfaceOutputAssembler<org.n52.io.response.ServiceOutput>
-
searchFor
- Specified by:
searchForin interfaceOutputAssembler<org.n52.io.response.ServiceOutput>
-
exists
- Specified by:
existsin interfaceOutputAssembler<org.n52.io.response.ServiceOutput>
-
createPublicPredicate
-
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>
-