Package io.jmix.rest.impl.controller
Class QueriesController
java.lang.Object
io.jmix.rest.impl.controller.QueriesController
@RestController("rest_QueriesController")
@RequestMapping(value="/rest/queries",
                produces="application/json;charset=UTF-8")
public class QueriesController
extends Object
Controller that is used for operations with predefined JPQL queries
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String>executeQueryGet(String entityName, String queryName, Integer limit, Integer offset, String view, String fetchPlan, Boolean returnNulls, Boolean dynamicAttributes, Boolean returnCount, String modelVersion, Map<String, String> params) org.springframework.http.ResponseEntity<String>executeQueryPost(String entityName, String queryName, Integer limit, Integer offset, String view, String fetchPlan, Boolean returnNulls, Boolean dynamicAttributes, Boolean returnCount, String modelVersion, String paramsJson) getCountGetText(String entityName, String queryName, String modelVersion, Map<String, String> params) getCountPost(String entityName, String queryName, String modelVersion, String paramsJson) getCountPostText(String entityName, String queryName, String modelVersion, String paramsJson) loadQueriesList(String entityName)  
- 
Field Details
- 
queriesControllerManager
 
 - 
 - 
Constructor Details
- 
QueriesController
public QueriesController() 
 - 
 - 
Method Details
- 
executeQueryGet
@GetMapping("/{entityName}/{queryName}") public org.springframework.http.ResponseEntity<String> executeQueryGet(@PathVariable String entityName, @PathVariable String queryName, @RequestParam(required=false) Integer limit, @RequestParam(required=false) Integer offset, @RequestParam(required=false) String view, @RequestParam(required=false) String fetchPlan, @RequestParam(required=false) Boolean returnNulls, @RequestParam(required=false) Boolean dynamicAttributes, @RequestParam(required=false) Boolean returnCount, @RequestParam(required=false) String modelVersion, @RequestParam Map<String, String> params)  - 
executeQueryPost
@PostMapping("/{entityName}/{queryName}") public org.springframework.http.ResponseEntity<String> executeQueryPost(@PathVariable String entityName, @PathVariable String queryName, @RequestParam(required=false) Integer limit, @RequestParam(required=false) Integer offset, @RequestParam(required=false) String view, @RequestParam(required=false) String fetchPlan, @RequestParam(required=false) Boolean returnNulls, @RequestParam(required=false) Boolean dynamicAttributes, @RequestParam(required=false) Boolean returnCount, @RequestParam(required=false) String modelVersion, @RequestBody String paramsJson)  - 
getCountGet
@GetMapping("/{entityName}/{queryName}/count") public String getCountGet(@PathVariable String entityName, @PathVariable String queryName, @RequestParam(required=false) String modelVersion, @RequestParam Map<String, String> params) throws ClassNotFoundException, ParseException- Throws:
 ClassNotFoundExceptionParseException
 - 
getCountGetText
@GetMapping(value="/{entityName}/{queryName}/count", produces="text/plain;charset=UTF-8") public String getCountGetText(@PathVariable String entityName, @PathVariable String queryName, @RequestParam(required=false) String modelVersion, @RequestParam Map<String, String> params) throws ClassNotFoundException, ParseException- Throws:
 ClassNotFoundExceptionParseException
 - 
getCountPost
@PostMapping("/{entityName}/{queryName}/count") public String getCountPost(@PathVariable String entityName, @PathVariable String queryName, @RequestParam(required=false) String modelVersion, @RequestBody String paramsJson) throws ClassNotFoundException, ParseException - Throws:
 ClassNotFoundExceptionParseException
 - 
getCountPostText
@PostMapping(value="/{entityName}/{queryName}/count", produces="text/plain;charset=UTF-8") public String getCountPostText(@PathVariable String entityName, @PathVariable String queryName, @RequestParam(required=false) String modelVersion, @RequestBody String paramsJson) throws ClassNotFoundException, ParseException - Throws:
 ClassNotFoundExceptionParseException
 - 
loadQueriesList
@GetMapping("/{entityName}") public List<RestQueriesConfiguration.QueryInfo> loadQueriesList(@PathVariable String entityName)  
 -