@Override public void assignRoles(String username, Collection<String> roles) throws SecurityManagementException { Set<String> userGroups = SecurityManagementUtils.groupsToString(SecurityManagementUtils.getGroups(userSystemManager, username)); userGroups.addAll(roles); doAssignGroups(username, userGroups); }
@Override public void assignRoles(String username, Collection<String> roles) throws SecurityManagementException { checkNotNull("username", username); final Set<String> userGroups = SecurityManagementUtils.groupsToString(SecurityManagementUtils.getGroups(userSystemManager, username)); userGroups.addAll(roles); assignGroupsOrRoles(username, userGroups); }
@Override public void assignRoles(String username, Collection<String> roles) throws SecurityManagementException { checkNotNull("username", username); final Set<String> userGroups = SecurityManagementUtils.groupsToString(SecurityManagementUtils.getGroups(userSystemManager, username)); userGroups.addAll(roles); assignGroupsOrRoles(username, userGroups); }
@Override public void assignRoles(String username, Collection<String> roles) throws SecurityManagementException { if (getGroupsPropertiesManager() != null) { Set<String> userGroups = SecurityManagementUtils.groupsToString(SecurityManagementUtils.getGroups(userSystemManager, username)); userGroups.addAll(roles); getGroupsPropertiesManager().setGroupsForUser(username, userGroups); } }
@Override public void assignRoles(String username, Collection<String> roles) throws SecurityManagementException { if (getGroupsPropertiesManager() != null) { Set<String> userGroups = SecurityManagementUtils.groupsToString(SecurityManagementUtils.getGroups(userSystemManager, username)); userGroups.addAll(roles); getGroupsPropertiesManager().setGroupsForUser(username, userGroups); } }
@Override public void assignRoles(String username, Collection<String> roles) throws SecurityManagementException { if (getGroupsPropertiesManager() != null) { Set<String> userGroups = SecurityManagementUtils.groupsToString(SecurityManagementUtils.getGroups(userSystemManager, username)); userGroups.addAll(roles); getGroupsPropertiesManager().setGroupsForUser(username, userGroups); } }