protected void addAllGroupsToRole ( Set < String > groups , String role ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "addAllGroupsToRole" , new Object [ ] { groups , role } ) ; } Set < String > groupsForTheRole = roleToGroupMap . get ( role ) ; if ( groupsForTheRole != null ) { groupsForTheRole . addAll ( groups ) ; } else { groupsForTheRole = groups ; } roleToGroupMap . put ( role , groupsForTheRole ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . exit ( tc , CLASS_NAME + "addAllGroupsToRole" ) ; } }
Add all the groups to a particular role