fi.hut.tml.xsmiles.comm
Interface AddressBook

All Superinterfaces:
CommEventSender
All Known Implementing Classes:
XMLAddressBook

public interface AddressBook
extends CommEventSender

The address book interface. The address book should countain user records in some data structure that can then be easily converted into a modifiable DOM structure.

Author:
ssundell

Method Summary
 int entryCount()
           
 java.util.Hashtable getContacts()
           
 void loadAddressBook()
          Gets the address book from some, possibly protocol dependent storage.
 void saveAddressBook()
          Save the address book.
 java.util.Hashtable searchInfo(java.lang.String _search, java.lang.String _field)
          Searches the address book for some info and returns the users that match.
 
Methods inherited from interface fi.hut.tml.xsmiles.comm.events.CommEventSender
addEventListener, dispatchEvent, removeEventListener
 

Method Detail

loadAddressBook

public void loadAddressBook()
Gets the address book from some, possibly protocol dependent storage. It could be a local file or a storage server (SIP registrar, LDAP storage, whatever)


saveAddressBook

public void saveAddressBook()
Save the address book.


searchInfo

public java.util.Hashtable searchInfo(java.lang.String _search,
                                      java.lang.String _field)
Searches the address book for some info and returns the users that match. For example, we could search for name and return address.

Parameters:
_search - What to search
_field - The target field of the search
Returns:

getContacts

public java.util.Hashtable getContacts()

entryCount

public int entryCount()


X-Smiles 1.2