@Path(value="/") @Consumes(value={"application/json","application/x-www-form-urlencoded"}) @Produces(value="application/json") @Secured(value={"ROLE_USER","ROLE_ADMIN"}) public class GenericObjectQueryService extends SecurableService implements IQueryService<GenericObject>
Modifier and Type | Field and Description |
---|---|
protected static String |
test |
applicationContext, CACHE, NO_CACHE, request, response
Constructor and Description |
---|
GenericObjectQueryService() |
GenericObjectQueryService(boolean checkAuthFiltered) |
Modifier and Type | Method and Description |
---|---|
Long |
count(Query<GenericObject> query) |
javax.ws.rs.core.Response |
getTestString()
Test method to see if service is up and running
|
GenericObject |
load(Long id) |
List<GenericObject> |
query(Query<GenericObject> query) |
List |
query(String ql) |
Page |
query(String ql,
PageInfo pageInfo) |
checkAuthFilterInvoked, filter, query
filter, getCacheDef, query
protected static final String test
public GenericObjectQueryService()
public GenericObjectQueryService(boolean checkAuthFiltered)
@POST @Path(value="count") @Produces(value="text/plain") public Long count(@FormParam(value="query") Query<GenericObject> query) throws Exception
count
in interface IQueryService<GenericObject>
Exception
@POST @Path(value="queryGenericObject") public List<GenericObject> query(@FormParam(value="query") Query<GenericObject> query) throws Exception
query
in interface IQueryService<GenericObject>
Exception
@POST @Path(value="load/{id}") @Consumes(value={"text/plain","application/x-www-form-urlencoded"}) public GenericObject load(@PathParam(value="id") Long id) throws Exception
load
in interface IQueryService<GenericObject>
Exception
@GET @Path(value="freeQuery") public List query(@QueryParam(value="query") String ql) throws Exception
Exception
@GET @Path(value="freeQueryPage") public Page query(@QueryParam(value="query") String ql, @QueryParam(value="pageInfo") PageInfo pageInfo) throws Exception
Exception
@GET @Path(value="test") @Consumes(value="text/plain") @Produces(value="text/plain") public javax.ws.rs.core.Response getTestString()
getTestString
in class AnyWebService
Copyright © 2018. All rights reserved.