Added limit offset request check in query and listing methods
This commit is contained in:
parent
ee8bdefa8b
commit
af48246afa
|
@ -82,6 +82,7 @@ public class Access extends BaseRest {
|
|||
ServerRequestInfo serverRequestInfo = initRequestInfo();
|
||||
serverRequestInfo.setAllMeta(true);
|
||||
serverRequestInfo.checkBooleanQueryParameter(ContextPath.INCLUDE_META_QUERY_PARAMETER);
|
||||
serverRequestInfo.checkLimitOffset();
|
||||
|
||||
ContextManagement contextManagement = new ContextManagement();
|
||||
return contextManagement.all(false);
|
||||
|
@ -318,6 +319,9 @@ public class Access extends BaseRest {
|
|||
*
|
||||
* e.g. GET /access/query?q=SELECT FROM V
|
||||
*
|
||||
* It is responsibility of the client impose manage paginated results
|
||||
* according the SQL syntax (see SKIP and LIMIT parameters in the documentation indicated above)
|
||||
*
|
||||
* @param query Defines the query to send to the backend.
|
||||
* @param raw request a raw response (not a Element based response)
|
||||
* @return The JSON representation of the result
|
||||
|
@ -397,6 +401,7 @@ public class Access extends BaseRest {
|
|||
|
||||
ServerRequestInfo serverRequestInfo = initRequestInfo();
|
||||
serverRequestInfo.checkAllBooleanQueryParameters();
|
||||
serverRequestInfo.checkLimitOffset();
|
||||
|
||||
JsonQuery jsonQueryManager = new JsonQuery();
|
||||
jsonQueryManager.setJsonQuery(jsonQuery);
|
||||
|
@ -419,10 +424,10 @@ public class Access extends BaseRest {
|
|||
* All the Resources with a ContactFacet :
|
||||
* /access/query/Resource/ConsistsOf/ContactFacet?_polymorphic=true&_direction=out
|
||||
*
|
||||
* All the Eservice having an incoming (IN) Hosts relation with an HostingNode (i.e. all smartgears services)
|
||||
* All the EService having an incoming (IN) Hosts relation with an HostingNode (i.e. all smartgears services)
|
||||
* GET /access/query/EService/Hosts/HostingNode?_polymorphic=true&_direction=in
|
||||
*
|
||||
* All the Eservice having an incoming (IN) Hosts relation (i.e. hosted by) the HostingNode with UUID
|
||||
* All the EService having an incoming (IN) Hosts relation (i.e. hosted by) the HostingNode with UUID
|
||||
* 16032d09-3823-444e-a1ff-a67de4f350a
|
||||
* * GET /access/query/EService/hosts/HostingNode?_reference=16032d09-3823-444e-a1ff-a67de4f350a8&_polymorphic=true&_direction=in
|
||||
*
|
||||
|
@ -448,6 +453,7 @@ public class Access extends BaseRest {
|
|||
|
||||
ServerRequestInfo serverRequestInfo = initRequestInfo();
|
||||
serverRequestInfo.checkAllBooleanQueryParameters();
|
||||
serverRequestInfo.checkLimitOffset();
|
||||
|
||||
ElementManagement erManagement = ElementManagementUtility.getERManagement(resourcetype);
|
||||
|
||||
|
|
Loading…
Reference in New Issue