Class QueryResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.client.impl.query.QueryResource
- All Implemented Interfaces:
RestResource
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionQueryResource
(Context context, PersistenceService persistenceService, SearchFilterLoadingService searchFilterService, OrderParser orderParser) -
Method Summary
Modifier and TypeMethodDescriptionch.tocco.nice2.rest.client.impl.query.QueryResource.JoinedQuery
buildQuery
(String model, ch.tocco.nice2.rest.client.impl.query.QueryResource.QueryParameter parameter) ch.tocco.nice2.rest.client.impl.query.QueryResource.QueryValidation
validateQuery
(String model, ch.tocco.nice2.rest.client.impl.query.QueryResource.ConditionParameter parameter) PersistenceService.compileQuery(String)
andPersistenceService.CompiledQuery.findPrimaryKeys()
simply throw an exception when it fails, and the resulting query doesn't actually interest us, only if it succeedsMethods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
QueryResource
public QueryResource(Context context, PersistenceService persistenceService, SearchFilterLoadingService searchFilterService, OrderParser orderParser)
-
-
Method Details
-
validateQuery
@POST @Path("/validation") @Consumes("application/json") @Produces("application/json") public ch.tocco.nice2.rest.client.impl.query.QueryResource.QueryValidation validateQuery(@PathParam("model") String model, ch.tocco.nice2.rest.client.impl.query.QueryResource.ConditionParameter parameter) PersistenceService.compileQuery(String)
andPersistenceService.CompiledQuery.findPrimaryKeys()
simply throw an exception when it fails, and the resulting query doesn't actually interest us, only if it succeeds -
buildQuery
@POST @Path("/build") @Consumes("application/json") @Produces("application/json") public ch.tocco.nice2.rest.client.impl.query.QueryResource.JoinedQuery buildQuery(@PathParam("model") String model, ch.tocco.nice2.rest.client.impl.query.QueryResource.QueryParameter parameter)
-