class SaveApplicationRolesToGroupsAPIController {

    @RequestMapping(value = "/rolestogroups", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
    @ResponseBody
    public boolean saveApplicationRolesToGroups(@RequestBody Map<String, List<String>> applicationRolesToGroups, Authentication auth)
    {
        LOG.debug("Saving application roles to groups ...");

        boolean retval = getFunctionalAccessService().saveApplicationRolesToGroups(applicationRolesToGroups, auth);
        LOG.debug("Successfuly save ? " + retval);

        return retval;
    }

}