@Path(value="/")
@Consumes(value={"application/json","application/text","text/html","application/x-www-form-urlencoded"})
@Produces(value="application/json;charset=utf-8")
@Secured(value={"ROLE_USER","ROLE_ADMIN"})
public class OrderQueryService<T extends Order<I>,I extends OrderItem>
extends SiteAuthorizableSecurableService
implements IQueryService<Order>
Order Database| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.collections.Transformer |
orderTransformer
A
Transformer that accepts a Order and can return a any Object back. |
protected OrderService |
service |
authorizationModuleapplicationContext, CACHE, NO_CACHE, request, response| Constructor and Description |
|---|
OrderQueryService() |
OrderQueryService(boolean checkAuthFiltered) |
| Modifier and Type | Method and Description |
|---|---|
Long |
count(Query<Order> query) |
org.apache.commons.collections.Transformer |
getOrderTransformer() |
OrderService<T,I> |
getService() |
Order |
load(Long id) |
List<Order> |
query(Query<Order> query) |
Object |
query(String contextNameId,
String queryNameId,
String json)
|
void |
setOrderTransformer(org.apache.commons.collections.Transformer productTransformer) |
void |
setService(OrderService<T,I> service) |
adminCheck, getAuthorizableIdAssignable, getAuthorizableService, getAuthorizationModule, getCurrentUserAuths, getModuleName, getUser, getUserAuths, isAdmin, isUser, setAuthorizationModulefilter, getAuthorizableId, getAuthorizations, setAuthorizableId, setAuthorizationscheckAuthFilterInvoked, queryfilter, getCacheDef, getTestString, queryprotected transient OrderService service
protected transient org.apache.commons.collections.Transformer orderTransformer
Transformer that accepts a Order and can return a any Object back.
and applies a filter one last time before its sent out.
public OrderQueryService()
public OrderQueryService(boolean checkAuthFiltered)
@POST @Path(value="queryListSize") @Produces(value="text/plain") public Long count(@FormParam(value="query") Query<Order> query) throws Exception
count in interface IQueryService<Order>Exception@POST @Path(value="queryList") public List<Order> query(@FormParam(value="query") Query<Order> query) throws Exception
query in interface IQueryService<Order>Exception@GET
@Path(value="load/{id}")
@Consumes(value={"text/plain","application/x-www-form-urlencoded"})
public Order load(@PathParam(value="id")
Long id)
throws Exception
load in interface IQueryService<Order>Exception@GET
@Path(value="namedQuery/{contextNameId}/{queryNameId}")
@Produces(value="application/json")
public Object query(@PathParam(value="contextNameId")
String contextNameId,
@PathParam(value="queryNameId")
String queryNameId,
@QueryParam(value="p")
String json)
throws Exception
contextNameId - as String; a classification for the manner in which the Query is called. Can allow for better and custom security or context related aspects.queryNameId - as String (should match a Spring Transformer bean id that accepts an Object array as params)p - as JSON Array String @nullable trueExceptionpublic OrderService<T,I> getService()
public void setService(OrderService<T,I> service)
public org.apache.commons.collections.Transformer getOrderTransformer()
public void setOrderTransformer(org.apache.commons.collections.Transformer productTransformer)
Copyright © 2018. All rights reserved.