Iterator users = userManager.getUsers(USER_FILTER);
control = buildTree(users, actionRequest.getLocale());
actionRequest.getPortletSession().setAttribute(TREE_CONTROL, control);
selectNode(actionRequest, control, userName);
User user = userManager.getUser(userName);
String role = actionRequest.getParameter(ROLES_CONTROL);
if (!isEmpty(role) && user != null)
{
roleManager.addRoleToUser(userName, role);
}
String rule = actionRequest.getParameter(RULES_CONTROL);
if (!isEmpty(rule) && user != null)
{
Principal principal = getPrincipal(user.getSubject(), UserPrincipal.class);
profiler.setRuleForPrincipal(principal, profiler.getRule(rule), "page");
}
}
catch (SecurityException se)