@ POST @ Path ( "userconfig" ) @ Consumes ( "application/xml" ) public Response setUserConfig ( JAXBElement < UserConfig > config ) { Subject user = SecurityUtils . getSubject ( ) ; user . checkPermission ( "admin:write:userconfig" ) ; String userName = ( String ) user . getPrincipal ( ) ; adminDao . storeUserConfig ( userName , config . getValue ( ) ) ; return Response . ok ( ) . build ( ) ; }
Sets the user configuration for the currently logged in user .