class GetApplicationRolesToGroupsAPIController {

    @RequestMapping(value = "/rolestogroups", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
    @ResponseBody
    public Map<String, List<String>> getApplicationRolesToGroups(Authentication auth)
    {
        LOG.debug("Taking application roles to groups ...");

        Map<String, List<String>> retval = getFunctionalAccessService().getApplicationRolesToGroups();
        LOG.debug("Application roles to groups: " + retval.toString());

        return retval;
    }

}