src/net/java/sip/communicator/impl/protocol/jabber/ServerStoredContactListJabberImpl.java
/**
     * Creates a non persistent contact for the specified address. This would
     * also create (if necessary) a group for volatile contacts that would not
     * be added to the server stored contact list. This method would have no
     * effect on the server stored contact list.
     * @param id the address of the contact to create.
     * @param isPrivateMessagingContact indicates if the contact should be
     * private messaging contact or not.
     * @param displayName the display name of the contact
     * @return the newly created volatile <tt>ContactImpl</tt>
     */
Creates a non persistent contact for the specified address. This would
also create (if necessary) a group for volatile contacts that would not
be added to the server stored contact list. This method would have no
effect on the server stored contact list.
@param id the address of the contact to create.
@param isPrivateMessagingContact indicates if the contact should be
private messaging contact or not.
@param displayName the display name of the contact
@return the newly created volatile ContactImpl
Creates a non persistent contact for the specified address . This would also create ( if necessary ) a group for volatile contacts that would not be added to the server stored contact list . This method would have no effect on the server stored contact list . @param id the address of the contact to create . @param isPrivateMessagingContact indicates if the contact should be private messaging contact or not . @param displayName the display name of the contact @return the newly created volatile ContactImpl
ContactJabberImpl createVolatileContact(Jid id,
        boolean isPrivateMessagingContact, String displayName)
    {
        VolatileContactJabberImpl newVolatileContact
            = new VolatileContactJabberImpl(id, this, isPrivateMessagingContact,
                displayName);
        ContactGroupJabberImpl theVolatileGroup = getNonPersistentGroup();
        if (theVolatileGroup == null)
        {
            theVolatileGroup = new VolatileContactGroupJabberImpl(
                JabberActivator.getResources().getI18NString(
                    "service.gui.NOT_IN_CONTACT_LIST_GROUP_NAME"),
                this);
            theVolatileGroup.addContact(newVolatileContact);
            this.rootGroup.addSubGroup(theVolatileGroup);
            fireGroupEvent(theVolatileGroup
                           , ServerStoredGroupEvent.GROUP_CREATED_EVENT);
        }
        else
        {
            theVolatileGroup.addContact(newVolatileContact);
            fireContactAdded(theVolatileGroup, newVolatileContact);
        }
        return newVolatileContact;
    }
ContactJabberImpl createVolatileContact ( Jid id , boolean isPrivateMessagingContact , String displayName ) { VolatileContactJabberImpl newVolatileContact = new VolatileContactJabberImpl ( id , this , isPrivateMessagingContact , displayName ) ; ContactGroupJabberImpl theVolatileGroup = getNonPersistentGroup ( ) ; if ( theVolatileGroup == null ) { theVolatileGroup = new VolatileContactGroupJabberImpl ( JabberActivator . getResources ( ) . getI18NString ( "service.gui.NOT_IN_CONTACT_LIST_GROUP_NAME" ) , this ) ; theVolatileGroup . addContact ( newVolatileContact ) ; this . rootGroup . addSubGroup ( theVolatileGroup ) ; fireGroupEvent ( theVolatileGroup , ServerStoredGroupEvent . GROUP_CREATED_EVENT ) ; } else { theVolatileGroup . addContact ( newVolatileContact ) ; fireContactAdded ( theVolatileGroup , newVolatileContact ) ; } return newVolatileContact ; }
Creates a non persistent contact for the specified address.
Creates a non persistent contact for the specified address .
//Check whether a volatile group already exists and if not create //one //if the parent group is null then add necessary create the group