class BusinessObjectDataRestController extends HerdBaseController {

    @RequestMapping(value = "/businessObjectData/search", method = RequestMethod.POST, consumes = {"application/xml", "application/json"})
    @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DATA_SEARCH_POST)
    public BusinessObjectDataSearchResult searchBusinessObjectData(@RequestParam(value = "pageNum", required = false) Integer pageNum,
        @RequestParam(value = "pageSize", required = false) Integer pageSize, @RequestBody BusinessObjectDataSearchRequest businessObjectDataSearchRequest,
        HttpServletResponse httpServletResponse)
    {
        // Search business object data.
        BusinessObjectDataSearchResultPagingInfoDto businessObjectDataSearchResultPagingInfoDto =
            businessObjectDataService.searchBusinessObjectData(pageNum, pageSize, businessObjectDataSearchRequest);

        // Add HTTP headers to HTTP servlet response per paging information.
        addPagingHttpHeaders(httpServletResponse, businessObjectDataSearchResultPagingInfoDto);

        // Create and return the HTTP response.
        return businessObjectDataSearchResultPagingInfoDto.getBusinessObjectDataSearchResult();
    }

}