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