class GetApplicationRolesAPIController {

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

        List<String> retval = getFunctionalAccessService().getApplicationRoles();
        LOG.debug("Application roles: " + retval.toString());

        return retval;
    }

}