class ComplianceController implements Constants {

    @RequestMapping(path = "/v1/issueauditlog", method = RequestMethod.POST)
    public ResponseEntity<Object> getIssueAudit(@RequestBody IssueAuditLogRequest request) {
        String issueId = request.getIssueId();
        String targetType = request.getTargetType();
        int from = request.getFrom();
        int size = request.getSize();
        String searchText = request.getSearchText();
        if (Strings.isNullOrEmpty(issueId) || Strings.isNullOrEmpty(targetType) || from < 0 || size <= 0) {
            return ResponseUtils.buildFailureResponse(new Exception("IssueId/Targettype/from/size is Mandatory"));
        }
        ResponseWithOrder response = null;
        try {
            response = complianceService.getIssueAuditLog(issueId, targetType, from, size, searchText);
        } catch (ServiceException e) {
           return complianceService.formatException(e);
        }
        return ResponseUtils.buildSucessResponse(response);

    }

}