@Path(value="/")
@Consumes(value={"application/json","application/x-www-form-urlencoded"})
@Produces(value="application/json")
@Secured(value={"ROLE_USER","ROLE_ADMIN"})
public class EventsQueryService<E extends AbstractEvent>
extends SecurableService
implements IEventsQueryService<E>
| Modifier and Type | Field and Description |
|---|---|
protected EventsService<E> |
service |
protected static String |
test |
applicationContext, CACHE, NO_CACHE, request, response| Constructor and Description |
|---|
EventsQueryService() |
EventsQueryService(boolean checkAuthFiltered) |
| Modifier and Type | Method and Description |
|---|---|
Long |
count(Query<E> query) |
EventsService<E> |
getService() |
javax.ws.rs.core.Response |
getTestString()
Test method to see if service is up and running
|
E |
load(Long id) |
List<E> |
query(Query<E> query) |
void |
setService(EventsService<E> service) |
checkAuthFilterInvoked, filter, queryfilter, getCacheDef, query@Autowired(required=false) @Qualifier(value="eventsService") protected EventsService<E extends AbstractEvent> service
protected static final String test
public EventsQueryService()
public EventsQueryService(boolean checkAuthFiltered)
@POST @Path(value="count") @Produces(value="text/plain") public Long count(@FormParam(value="query") Query<E> query) throws Exception
count in interface IQueryService<E extends AbstractEvent>count in interface IEventsQueryService<E extends AbstractEvent>Exception@POST @Path(value="queryEvent") public List<E> query(@FormParam(value="query") Query<E> query) throws Exception
query in interface IQueryService<E extends AbstractEvent>query in interface IEventsQueryService<E extends AbstractEvent>Exception@POST
@Path(value="load/{id}")
@Consumes(value={"text/plain","application/x-www-form-urlencoded"})
public E load(@PathParam(value="id")
Long id)
throws Exception
load in interface IQueryService<E extends AbstractEvent>load in interface IEventsQueryService<E extends AbstractEvent>Exception@GET @Path(value="test") @Consumes(value="text/plain") @Produces(value="text/plain") public javax.ws.rs.core.Response getTestString()
getTestString in interface IEventsQueryService<E extends AbstractEvent>getTestString in class AnyWebServicepublic EventsService<E> getService()
public void setService(EventsService<E> service)
Copyright © 2018. All rights reserved.