|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lokan.gmlib.GMContactManager
public class GMContactManager
| Constructor Summary | |
|---|---|
GMContactManager(GMSession session)
Creates new instance. |
|
| Method Summary | |
|---|---|
GMContact |
addGMContact(GMContact contact)
Adds an contact. |
GMContact[] |
getAllGMContacts()
Returns all contacts. |
void |
removeGMContact(GMContact contact)
Removes an contact. |
void |
removeGMContacts(GMContact[] contacts)
Removes an contacts. |
void |
updateGMContact(GMContact contact)
Updates an contact. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GMContactManager(GMSession session)
session - GMSession to use.| Method Detail |
|---|
public GMContact[] getAllGMContacts()
GMException - Throws a exception if retrieve fails for some reason.public GMContact addGMContact(GMContact contact)
contact - Contact to add.
java.lang.IllegalArgumentException - is thrown when contact is already added (equals to id is not null).
GMException - is thrown when add fails.public void updateGMContact(GMContact contact)
contact - Contact to update.
java.lang.IllegalArgumentException - is thrown when contact is not added (equals to id is null).
GMException - is thrown when update fails.public void removeGMContacts(GMContact[] contacts)
contacts - Contacts to remove.
java.lang.IllegalArgumentException - is thrown when contacts is not added (equals to id is null).
GMException - is thrown when removal fails.public void removeGMContact(GMContact contact)
contact - Contact to remove.
java.lang.IllegalArgumentException - is thrown when contact is not added (equals to id is null).
GMException - is thrown when removal fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||