Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.icq
Class InfoRetreiver

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.icq.InfoRetreiver

public class InfoRetreiver
extends Object

Author:
Damian Minkov

Constructor Summary
protected InfoRetreiver(ProtocolProviderServiceIcqImpl icqProvider, String ownerUin)
           
 
Method Summary
protected  void detailsChanged(String uin)
          when detail is changed we remove it from the cache, from retreivedDetails so the next time we want the details we are shure they are get from the server and are actual
protected  List<ServerStoredDetails.GenericDetail> getCachedContactDetails(String uin)
          Request the full info for the given uin if available in cache, if missing return null.
protected  List<ServerStoredDetails.GenericDetail> getContactDetails(String uin)
          request the full info for the given uin waits and return this details
 Iterator<ServerStoredDetails.GenericDetail> getDetails(String uin, Class<? extends ServerStoredDetails.GenericDetail> detailClass)
          returns the user details from the specified class exactly that class not its descendants
 Iterator<ServerStoredDetails.GenericDetail> getDetailsAndDescendants(String uin, 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
 String getNickName(String uin)
          Get the nickname of the specified uin
protected  List<ServerStoredDetails.GenericDetail> retrieveDetails(String uin)
          Retrieve details and return them or if missing return an empty list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoRetreiver

protected InfoRetreiver(ProtocolProviderServiceIcqImpl icqProvider,
                        String ownerUin)
Method Detail

getDetailsAndDescendants

public Iterator<ServerStoredDetails.GenericDetail> getDetailsAndDescendants(String uin,
                                                                            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

Parameters:
uin - String
detailClass - Class
Returns:
Iterator

getDetails

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

Parameters:
uin - String
detailClass - Class
Returns:
Iterator

getContactDetails

protected List<ServerStoredDetails.GenericDetail> getContactDetails(String uin)
request the full info for the given uin waits and return this details

Parameters:
uin - String
Returns:
Vector

retrieveDetails

protected List<ServerStoredDetails.GenericDetail> retrieveDetails(String uin)
Retrieve details and return them or if missing return an empty list.

Parameters:
uin - the uin to search for.
Returns:
the details or empty list.

getCachedContactDetails

protected List<ServerStoredDetails.GenericDetail> getCachedContactDetails(String uin)
Request the full info for the given uin if available in cache, if missing return null.

Parameters:
uin - to search for in cache.
Returns:
list of details.

detailsChanged

protected void detailsChanged(String uin)
when detail is changed we remove it from the cache, from retreivedDetails so the next time we want the details we are shure they are get from the server and are actual

Parameters:
uin - String

getNickName

public String getNickName(String uin)
Get the nickname of the specified uin

Parameters:
uin - String the uin
Returns:
String the nickname of the uin

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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