|
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 | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.sip.OperationSetContactTypeInfoImpl
public class OperationSetContactTypeInfoImpl
Operation set used for type of contacts, retrieving changing and creating contacts with types. Stores contact type in a node in the xcap document.
| Constructor Summary | |
|---|---|
OperationSetContactTypeInfoImpl(OperationSetPresenceSipImpl parentOperationSet)
Creates the operation set. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
OperationSetContactTypeInfoImpl(OperationSetPresenceSipImpl parentOperationSet)
parentOperationSet - | Method Detail |
|---|
public String getContactType(Contact contact)
getContactType in interface OperationSetContactTypeInfocontact - the contact to be queried for type.
public void setContactType(Contact contact,
String contactType)
setContactType in interface OperationSetContactTypeInfocontact - the contact to be changed.contactType - the type set to the contact.
public 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.
subscribe in interface OperationSetContactTypeInfocontactIdentifier - 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.
public void subscribe(ContactGroup parent,
String contactIdentifier,
String contactType)
throws IllegalArgumentException,
IllegalStateException,
OperationFailedException
subscribe in interface OperationSetContactTypeInfocontactIdentifier - 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 | |||||||||