Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber
Class OperationSetServerStoredContactInfoJabberImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.OperationSetServerStoredContactInfoJabberImpl
All Implemented Interfaces:
OperationSet, OperationSetServerStoredContactInfo

public class OperationSetServerStoredContactInfoJabberImpl
extends Object
implements OperationSetServerStoredContactInfo

Author:
Damian Minkov

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.java.sip.communicator.service.protocol.OperationSetServerStoredContactInfo
OperationSetServerStoredContactInfo.DetailsResponseListener
 
Constructor Summary
protected OperationSetServerStoredContactInfoJabberImpl(InfoRetreiver infoRetreiver)
           
 
Method Summary
 Iterator<ServerStoredDetails.GenericDetail> getAllDetailsForContact(Contact contact)
          request the full info for the given uin waits and return this details
 Iterator<ServerStoredDetails.GenericDetail> getDetails(Contact contact, Class<? extends ServerStoredDetails.GenericDetail> detailClass)
          returns the user details from the specified class exactly that class not its descendants
 Iterator<ServerStoredDetails.GenericDetail> getDetailsAndDescendants(Contact contact, Class<? extends ServerStoredDetails.GenericDetail> detailClass)
          returns the user details from the specified class or its descendants the class is one from the net.java.sip.communicator.service.protocol.ServerStoredDetails or implemented one in the operation set for the user info
 Iterator<ServerStoredDetails.GenericDetail> requestAllDetailsForContact(Contact contact, OperationSetServerStoredContactInfo.DetailsResponseListener listener)
          Requests all details existing for the specified contact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationSetServerStoredContactInfoJabberImpl

protected OperationSetServerStoredContactInfoJabberImpl(InfoRetreiver infoRetreiver)
Method Detail

getDetailsAndDescendants

public Iterator<ServerStoredDetails.GenericDetail> getDetailsAndDescendants(Contact contact,
                                                                            Class<? extends ServerStoredDetails.GenericDetail> detailClass)
returns the user details from the specified class or its descendants the class is one from the net.java.sip.communicator.service.protocol.ServerStoredDetails or implemented one in the operation set for the user info

Specified by:
getDetailsAndDescendants in interface OperationSetServerStoredContactInfo
Parameters:
contact - Contact
detailClass - Class
Returns:
Iterator

getDetails

public Iterator<ServerStoredDetails.GenericDetail> getDetails(Contact contact,
                                                              Class<? extends ServerStoredDetails.GenericDetail> detailClass)
returns the user details from the specified class exactly that class not its descendants

Specified by:
getDetails in interface OperationSetServerStoredContactInfo
Parameters:
contact - Contact
detailClass - Class
Returns:
Iterator

getAllDetailsForContact

public Iterator<ServerStoredDetails.GenericDetail> getAllDetailsForContact(Contact contact)
request the full info for the given uin waits and return this details

Specified by:
getAllDetailsForContact in interface OperationSetServerStoredContactInfo
Parameters:
contact - Contact
Returns:
Iterator

requestAllDetailsForContact

public Iterator<ServerStoredDetails.GenericDetail> requestAllDetailsForContact(Contact contact,
                                                                               OperationSetServerStoredContactInfo.DetailsResponseListener listener)
Requests all details existing for the specified contact.

Specified by:
requestAllDetailsForContact in interface OperationSetServerStoredContactInfo
Parameters:
contact - the specified contact
Returns:
a java.util.Iterator over all details existing for the specified contact.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.