コード例 #1
0
 @Override
 @ResponseStatus(HttpStatus.OK)
 @RequestMapping(value = "/{personId}/works", method = RequestMethod.GET)
 public PagedResultResource<PersonWorkResource> getPagedResource(
     final PagedRequest<PersonWorkResource> request) {
   LOG.info(
       "Retrieving PagedResultResource for PersonWork Resources with offset: {}, limit: {}",
       request.getOffset(),
       request.getLimit());
   return facade.getResources(request);
 }
コード例 #2
0
 @Override
 @ResponseStatus(HttpStatus.OK)
 @RequestMapping(method = RequestMethod.GET)
 @ApiOperation(value = "Get All Employee Status Resources")
 public PagedResultResource<EmployeeStatusResource> getPagedResource(
     final PagedRequest<EmployeeStatusResource> request) {
   LOG.info(
       "Getting PagedResultResource for Employee Status with offset: {}, limit: {}",
       request.getOffset(),
       request.getLimit());
   return facade.getResources(request);
 }