class FilterController implements Constants {

    @RequestMapping(path = "/v1/filters", method = RequestMethod.GET)
    public ResponseEntity<Object> getFilters(
            @ApiParam(value = "Provide filter 1-issue,2-vulnerability,3-asset,4-compliance", required = false) @RequestParam("filterId") int filterId,
            @RequestParam(name = "domain", required = false) String domain) {
        if (filterId <= 0) {
            return ResponseUtils.buildFailureResponse(new ServiceException("Object filterId is Mandatory"));
        }
        ResponseData response = null;
        try {
            response = new ResponseData(filterService.getFilters(filterId, domain));
        } catch (ServiceException e) {
            return complianceService.formatException(e);
        }
        return ResponseUtils.buildSucessResponse(response);
    }

}