|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ecf.protocol.msn.ContactList
public final class ContactList
A ContactList stores a list of Contact
s.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Method Summary | |
---|---|
void |
addContact(java.lang.String email,
java.lang.String userName)
Adds the contact with the specified email to this list. |
void |
addContactListListener(IContactListListener listener)
Adds a IContactListener to this. |
Contact |
getContact(java.lang.String email)
Returns the contact that uses the specified email address. |
java.util.Collection |
getContacts()
|
java.util.Collection |
getGroups()
|
void |
removeContact(Contact contact)
Removes the specified contact from the user's list. |
void |
removeContactsListListener(IContactListListener listener)
Removes a IContactListener from this. |
void |
removeGroup(Group group)
Removes the specified group from the user's list. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void addContact(java.lang.String email, java.lang.String userName) throws java.io.IOException
email
- the contact's email addressuserName
- the name to be assigned to this contact, or null if
one does not need to be assigned
java.io.IOException
- If an I/O error occurs while attempting to send the request
to the serverpublic void removeContact(Contact contact) throws java.io.IOException
contact
- the contact to remove
java.io.IOException
- If an I/O error occurs while attempting to send the request
to the serverpublic void removeGroup(Group group) throws java.io.IOException
group
- the group to remove
java.io.IOException
- If an I/O error occurs while attempting to send the request
to the serverpublic Contact getContact(java.lang.String email)
email
- the email address of the desired contact
null
if none could be foundpublic java.util.Collection getContacts()
public java.util.Collection getGroups()
public void addContactListListener(IContactListListener listener)
listener
- the listener to be addedpublic void removeContactsListListener(IContactListListener listener)
listener
- the listener to be removedpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |