Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @POST
- @Path("/search")
- @Delayable
- @ApiResponses(value = {
- @ApiResponse(code = 400, message = "Bad request"),
- @ApiResponse(code = 500, message = "Internal server error")
- })
- @ApiOperation(
- value = "Search for document archiving results",
- response = List.class)
- public Response searchDocumentArchivingResult(
- @HeaderParam(ILDelayedResponseFilter.DELAY_RESPONSE_HEADER) String delayResponseHeader,
- @ApiParam @ValidDocumentArchivingResultQuery DocumentArchivingResultQuery documentArchivingResultQuery,
- @DefaultValue("100") @QueryParam("size") Integer pageSize, @DefaultValue("0") @QueryParam("offset") Integer offset
- ) {
- Pageable pagingOptions = PageRequest.of(offset, pageSize, new Sort(Direction.DESC, "modified"));
- return Response.ok(
- documentArchiveResultService.searchDocumentArchivingResults(documentArchivingResultQuery, pagingOptions)
- ).header("Access-Control-Allow-Origin", "*").build();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement