|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OperationSetContactTypeInfo
Operation set used for type of contacts, retrieving changing and creating contacts with types.
| Method Summary | |
|---|---|
String |
getContactType(Contact contact)
Access the contact type. |
void |
setContactType(Contact contact,
String contactType)
Sets the contact type of the contact. |
void |
subscribe(ContactGroup parent,
String contactIdentifier,
String contactType)
Persistently adds a subscription for the presence status of the contact corresponding to the specified contactIdentifier and indicates that it should be added to the specified group of the server stored contact list. |
void |
subscribe(String contactIdentifier,
String contactType)
Persistently adds a subscription for the presence status of the contact corresponding to the specified contactIdentifier to the top level group. |
| Method Detail |
|---|
String getContactType(Contact contact)
contact - the contact to be queried for type.
void setContactType(Contact contact,
String contactType)
contact - the contact to be changed.contactType - the type set to the contact.
void subscribe(String contactIdentifier,
String contactType)
throws IllegalArgumentException,
IllegalStateException,
OperationFailedException
Apart from an exception in the case of an immediate failure, the method won't return any indication of success or failure. That would happen later on through a SubscriptionEvent generated by one of the methods of the SubscriptionListener.
contactIdentifier - the contact whose status updates we are
subscribing for.
contactType - the type of the newly created contact.
OperationFailedException - with code NETWORK_FAILURE if subscribing
fails due to errors experienced during network communication
IllegalArgumentException - if contact is not a contact
known to the underlying protocol provider
IllegalStateException - if the underlying protocol provider is not
registered/signed on a public service.
void subscribe(ContactGroup parent,
String contactIdentifier,
String contactType)
throws IllegalArgumentException,
IllegalStateException,
OperationFailedException
contactIdentifier - the contact whose status updates we are
subscribing for.parent - the parent group of the server stored contact list where
the contact should be added.
contactType - the type of the newly created contact.
OperationFailedException - with code NETWORK_FAILURE if subscribing
fails due to errors experienced during network communication
IllegalArgumentException - if contact or parent
are not a contact known to the underlying protocol provider.
IllegalStateException - if the underlying protocol provider is not
registered/signed on a public service.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||