@ GET @ Path ( "userconfig" ) @ Produces ( "application/xml" ) public UserConfig getUserConfig ( ) { Subject user = SecurityUtils . getSubject ( ) ; user . checkPermission ( "admin:read:userconfig" ) ; return adminDao . retrieveUserConfig ( ( String ) user . getPrincipal ( ) ) ; }
Get the user configuration for the currently logged in user .