class BusinessObjectFormatRestController extends HerdBaseController {

    @RequestMapping(value = "/businessObjectFormats/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}/" +
        "businessObjectFormatUsages/{businessObjectFormatUsage}", method = RequestMethod.GET)
    @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_FORMATS_ALL_GET)
    public BusinessObjectFormatKeys getBusinessObjectFormatsWithFilters(@PathVariable("namespace") String namespace,
        @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
        @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
        @RequestParam(value = "latestBusinessObjectFormatVersion", required = false, defaultValue = "false") Boolean latestBusinessObjectFormatVersion)
    {
        return businessObjectFormatService
            .getBusinessObjectFormatsWithFilters(new BusinessObjectDefinitionKey(namespace, businessObjectDefinitionName), businessObjectFormatUsage,
                BooleanUtils.isTrue(latestBusinessObjectFormatVersion));
    }

}