SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @POST
  2.     @Path("/search")
  3.     @Delayable
  4.     @ApiResponses(value = {
  5.             @ApiResponse(code = 400, message = "Bad request"),
  6.             @ApiResponse(code = 500, message = "Internal server error")
  7.     })
  8.     @ApiOperation(
  9.             value = "Search for document archiving results",
  10.             response = List.class)
  11.     public Response searchDocumentArchivingResult(
  12.             @HeaderParam(ILDelayedResponseFilter.DELAY_RESPONSE_HEADER) String delayResponseHeader,
  13.             @ApiParam @ValidDocumentArchivingResultQuery DocumentArchivingResultQuery documentArchivingResultQuery,
  14.             @DefaultValue("100") @QueryParam("size") Integer pageSize, @DefaultValue("0") @QueryParam("offset") Integer offset
  15.     ) {
  16.         Pageable pagingOptions = PageRequest.of(offset, pageSize, new Sort(Direction.DESC, "modified"));
  17.         return Response.ok(
  18.                 documentArchiveResultService.searchDocumentArchivingResults(documentArchivingResultQuery, pagingOptions)
  19.         ).header("Access-Control-Allow-Origin", "*").build();
  20.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top