class BusinessObjectFormatRestController extends HerdBaseController {

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

}