From b463766acea423c8fa17ec159f326268e6e5f6ce Mon Sep 17 00:00:00 2001 From: Emil Ivov Date: Tue, 9 May 2006 13:59:59 +0000 Subject: [PATCH] Added persistenta data notions in order to allow storing locally. Also created an isResolved method for verifying whether a contact has been resolved by the operation set or not. --- .../service/protocol/Contact.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/net/java/sip/communicator/service/protocol/Contact.java b/src/net/java/sip/communicator/service/protocol/Contact.java index 5af1f12dc..a0968b79f 100644 --- a/src/net/java/sip/communicator/service/protocol/Contact.java +++ b/src/net/java/sip/communicator/service/protocol/Contact.java @@ -84,4 +84,28 @@ public interface Contact */ public boolean isPersistent(); + /** + * Determines whether or not this contact has been resolved against the + * server. Unresolved contacts are used when initially loading a contact + * list that has been stored in a local file until the presence operation + * set has managed to retrieve all the contact list from the server and has + * properly mapped contacts to their on-line buddies. + * @return true if the contact has been resolved (mapped against a buddy) + * and false otherwise. + */ + public boolean isResolved(); + + /** + * Returns a String that can be used to create a unresolved instance of + * this contact. Unresolved contacts are created through the + * createUnresolvedContact() method in the persistent presence operation + * set. The method may also return null if no such data is required and + * the contact address is sufficient for restoring the contact. + *

+ * @return A String that could be used to create a unresolved + * instance of this contact during a next run of the application, before + * establishing network connectivity or null if no such data is required. + */ + public String getPersistentData(); + }