}\r
\r
@SuppressWarnings("unchecked")\r
- @RequestMapping(method = {RequestMethod.GET,RequestMethod.POST}, params={"restriction"})\r
- public final Pager<T> doPageByRestrictions(\r
+ @RequestMapping(method = {RequestMethod.GET, RequestMethod.POST}, params={"restriction"})\r
+ public Pager<T> doPageByRestrictions(\r
@RequestParam(value = "pageNumber", required = false) Integer pageIndex,\r
@RequestParam(value = "pageSize", required = false) Integer pageSize,\r
@RequestParam(value = "class", required = false) Class type,\r
- @RequestParam(value = "restriction", required = false) List<Restriction<?>> restrictions,\r
- @RequestParam(value = "initStrategy", required = false) List<String> initStrategy,\r
+ @RequestParam(value = "restriction", required = true) List<Restriction<?>> restrictions,\r
+ @RequestParam(value = "initStrategy", required = true) List<String> initStrategy,\r
@RequestParam(name="orderBy", defaultValue="BY_TITLE_CACHE_ASC", required=true) OrderHintPreset orderBy,\r
HttpServletRequest request,\r
HttpServletResponse response) throws IOException\r
if(type != null) {\r
orderBy = orderBy.checkSuitableFor(type);\r
}\r
- ArrayList<Restriction<?>> restrictions2 = new ArrayList<>(restrictions);\r
- return pageByRestrictions(type, initStrategy, orderBy, pagerParameters, restrictions2);\r
+\r
+ return pageByRestrictions(type, initStrategy, orderBy, pagerParameters, new ArrayList<>(restrictions));\r
}\r
\r
\r