synchronized( this ){
users.put( id, user );
}
//create sign on event
SignOnEvent event = new SignOnEvent();
event.client = user.client;
broadcastEvent( event, user );
//add sign on events for current contact list
synchronized( this ){
Set entrySet = users.entrySet();
for( Iterator it = entrySet.iterator(); it.hasNext(); )
{
Map.Entry entry = (Map.Entry)it.next();
UserInfo userTemp = (UserInfo)entry.getValue();
if( userTemp != user )
{
SignOnEvent eventTemp = new SignOnEvent();
eventTemp.client = userTemp.client;
user.events.add( eventTemp );
}
}
}