src/net/java/sip/communicator/impl/protocol/jabber/OperationSetPersistentPresenceJabberImpl.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. The volatile contact would
     * remain in the list until it is really added to the contact list or
     * until the application is terminated.
     * @param id the address of the contact to create.
     * @param isPrivateMessagingContact indicates whether 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. The volatile contact would
remain in the list until it is really added to the contact list or
until the application is terminated.
@param id the address of the contact to create.
@param isPrivateMessagingContact indicates whether 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 . The volatile contact would remain in the list until it is really added to the contact list or until the application is terminated . @param id the address of the contact to create . @param isPrivateMessagingContact indicates whether the contact should be private messaging contact or not . @param displayName the display name of the contact . @return the newly created volatile ContactImpl
public synchronized ContactJabberImpl createVolatileContact(Jid id,
        boolean isPrivateMessagingContact, String displayName)
    {
        ContactGroupJabberImpl notInContactListGroup =
            ssContactList.getNonPersistentGroup();
        ContactJabberImpl sourceContact = null;
        if (notInContactListGroup != null)
        {
            sourceContact = notInContactListGroup.findContact(id.asBareJid());
        }
        if(sourceContact != null)
        {
            return sourceContact;
        }
        else
        {
            sourceContact = ssContactList.createVolatileContact(
                id, isPrivateMessagingContact, displayName);
            if(isPrivateMessagingContact && id.hasResource())
            {
                updateResources(sourceContact, false);
            }
            return sourceContact;
        }
    }
public synchronized ContactJabberImpl createVolatileContact ( Jid id , boolean isPrivateMessagingContact , String displayName ) { ContactGroupJabberImpl notInContactListGroup = ssContactList . getNonPersistentGroup ( ) ; ContactJabberImpl sourceContact = null ; if ( notInContactListGroup != null ) { sourceContact = notInContactListGroup . findContact ( id . asBareJid ( ) ) ; } if ( sourceContact != null ) { return sourceContact ; } else { sourceContact = ssContactList . createVolatileContact ( id , isPrivateMessagingContact , displayName ) ; if ( isPrivateMessagingContact && id . hasResource ( ) ) { updateResources ( sourceContact , false ) ; } return sourceContact ; } }
Creates a non persistent contact for the specified address.
Creates a non persistent contact for the specified address .
// first check for already created one.