Hi,
I have a requirement to change the visibility of Flex UI controls (using chimp role based security) runtime while the users are logged into the system if some admin user goes and change the logged in users role / privileges.
first i needed the active user sessions. done with following code,
then, i changed the user privileges with following code,Code:FlexClientManager flexClientManager = messageBroker.getFlexClientManager(); String[] clientIDs = flexClientManager.getClientIds(); for (String ID : clientIDs) { FlexClient flexClient = flexClientManager.getFlexClient(ID); }
this works fine, but i want to know if this is the best way to do this.Code:for (HttpFlexSession flexSession: flexClient.getFlexSessions()){ flexSession.setUserPrincipal(changedPrincipal);
following link is related this problem http://forum.springframework.org/sho...d.php?t=100224
appreciate your help![]()


Reply With Quote
