src/net/java/sip/communicator/impl/protocol/jabber/ServerStoredContactListJabberImpl.java
/**
     * Removes contact from client side.
     *
     * @param contact the contact to be deleted.
     */
Removes contact from client side.
@param contact the contact to be deleted.
Removes contact from client side . @param contact the contact to be deleted .
private void contactDeleted(ContactJabberImpl contact)
    {
        ContactGroup group = findContactGroup(contact);
        if(group == null)
        {
            if (logger.isTraceEnabled())
                logger.trace("Could not find ParentGroup for deleted entry:"
                            + contact.getAddress());
            return;
        }
        if(group instanceof ContactGroupJabberImpl)
        {
            ContactGroupJabberImpl groupImpl
                = (ContactGroupJabberImpl)group;
            groupImpl.removeContact(contact);
            if (groupImpl.countContacts() == 0)
            {
                rootGroup.removeSubGroup(groupImpl);
                fireContactRemoved(groupImpl, contact);
                fireGroupEvent(groupImpl,
                           ServerStoredGroupEvent.GROUP_REMOVED_EVENT);
            }
            else
                fireContactRemoved(groupImpl, contact);
        }
        else if(group instanceof RootContactGroupJabberImpl)
        {
            rootGroup.removeContact(contact);
            fireContactRemoved(rootGroup, contact);
        }
    }
private void contactDeleted ( ContactJabberImpl contact ) { ContactGroup group = findContactGroup ( contact ) ; if ( group == null ) { if ( logger . isTraceEnabled ( ) ) logger . trace ( "Could not find ParentGroup for deleted entry:" + contact . getAddress ( ) ) ; return ; } if ( group instanceof ContactGroupJabberImpl ) { ContactGroupJabberImpl groupImpl = ( ContactGroupJabberImpl ) group ; groupImpl . removeContact ( contact ) ; if ( groupImpl . countContacts ( ) == 0 ) { rootGroup . removeSubGroup ( groupImpl ) ; fireContactRemoved ( groupImpl , contact ) ; fireGroupEvent ( groupImpl , ServerStoredGroupEvent . GROUP_REMOVED_EVENT ) ; } else fireContactRemoved ( groupImpl , contact ) ; } else if ( group instanceof RootContactGroupJabberImpl ) { rootGroup . removeContact ( contact ) ; fireContactRemoved ( rootGroup , contact ) ; } }
Removes contact from client side.
Removes contact from client side .
// remove the contact from parrent group // if the group is empty remove it from // root group. This group will be removed // from server if empty