public class InfoRetreiver
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
InfoRetreiver.WorkDepartmentNameDetail
Work department
|
static class |
InfoRetreiver.WorkFaxDetail
Fax at work
|
static class |
InfoRetreiver.WorkPagerDetail
Pager at work
|
Modifier | Constructor and Description |
---|---|
protected |
InfoRetreiver(ProtocolProviderServiceJabberImpl jabberProvider,
java.lang.String ownerUin) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addCachedContactDetails(java.lang.String contactAddress,
java.util.List<ServerStoredDetails.GenericDetail> details)
Adds a cached contact details.
|
(package private) java.lang.String |
checkForFullName(org.jivesoftware.smackx.packet.VCard card)
Checks for full name tag in the card.
|
(package private) java.util.List<ServerStoredDetails.GenericDetail> |
getCachedContactDetails(java.lang.String contactAddress)
request the full info for the given contactAddress if available
in cache.
|
(package private) java.util.List<ServerStoredDetails.GenericDetail> |
getContactDetails(java.lang.String contactAddress)
request the full info for the given contactAddress
waits and return this details
|
(package private) java.util.Iterator<ServerStoredDetails.GenericDetail> |
getDetails(java.lang.String uin,
java.lang.Class<? extends ServerStoredDetails.GenericDetail> detailClass)
returns the user details from the specified class
exactly that class not its descendants
|
(package private) <T extends ServerStoredDetails.GenericDetail> |
getDetailsAndDescendants(java.lang.String uin,
java.lang.Class<T> 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
|
void |
load(org.jivesoftware.smackx.packet.VCard vcard,
org.jivesoftware.smack.Connection connection,
java.lang.String user,
long timeout)
Load VCard for the given user.
|
protected java.util.List<ServerStoredDetails.GenericDetail> |
retrieveDetails(java.lang.String contactAddress)
Retrieve details and return them or if missing return an empty list.
|
protected InfoRetreiver(ProtocolProviderServiceJabberImpl jabberProvider, java.lang.String ownerUin)
<T extends ServerStoredDetails.GenericDetail> java.util.Iterator<T> getDetailsAndDescendants(java.lang.String uin, java.lang.Class<T> detailClass)
uin
- StringdetailClass
- Classjava.util.Iterator<ServerStoredDetails.GenericDetail> getDetails(java.lang.String uin, java.lang.Class<? extends ServerStoredDetails.GenericDetail> detailClass)
uin
- StringdetailClass
- Classjava.util.List<ServerStoredDetails.GenericDetail> getContactDetails(java.lang.String contactAddress)
contactAddress
- Stringprotected java.util.List<ServerStoredDetails.GenericDetail> retrieveDetails(java.lang.String contactAddress)
contactAddress
- the address to search for.java.util.List<ServerStoredDetails.GenericDetail> getCachedContactDetails(java.lang.String contactAddress)
contactAddress
- to search forvoid addCachedContactDetails(java.lang.String contactAddress, java.util.List<ServerStoredDetails.GenericDetail> details)
contactAddress
- the contact addressdetails
- the details to addjava.lang.String checkForFullName(org.jivesoftware.smackx.packet.VCard card)
card
- the card to check.public void load(org.jivesoftware.smackx.packet.VCard vcard, org.jivesoftware.smack.Connection connection, java.lang.String user, long timeout) throws org.jivesoftware.smack.XMPPException
vcard
- VCardconnection
- XMPP connectionuser
- the usertimeout
- timeout in secondorg.jivesoftware.smack.XMPPException
- if something went wrong during VCard loading
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.