Exemplo n.º 1
0
 @ResponseBody
 @Security(open = false, role = Role.USER)
 @RequestMapping(params = "method=generator.search")
 public GeneratorSearchResponse search(GeneratorSearchRequest request) {
   PagerResult<Generator> pagerResult = generatorService.search(request);
   return new GeneratorSearchResponse(pagerResult);
 }
Exemplo n.º 2
0
 @ResponseBody
 @Security(open = false, role = Role.USER)
 @RequestMapping(params = "method=generator.authSearch")
 public GeneratorSearchResponse authSearch(GeneratorSearchRequest request) {
   Long userId = request.getAuthentication().getUserId();
   request.setDeveloperId(userId);
   PagerResult<Generator> pagerResult = generatorService.search(request);
   return new GeneratorSearchResponse(pagerResult);
 }