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