|
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.jabber.ContactJabberImpl
public class ContactJabberImpl
The Jabber implementation of the service.protocol.Contact interface.
| Constructor Summary | |
|---|---|
ContactJabberImpl(org.jivesoftware.smack.RosterEntry rosterEntry,
ServerStoredContactListJabberImpl ssclCallback,
boolean isPersistent,
boolean isResolved)
Creates an JabberContactImpl |
|
ContactJabberImpl(String id,
ServerStoredContactListJabberImpl ssclCallback,
boolean isPersistent)
Used to create unresolved contacts with specified id. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
String |
getAddress()
Returns the Jabber Userid of this contact |
String |
getDisplayName()
Returns a String that could be used by any user interacting modules for referring to this contact. |
byte[] |
getImage()
Returns an avatar if one is already present or null in case it is not in which case it the method also queues the contact for image updates. |
byte[] |
getImage(boolean retrieveIfNecessary)
Returns a reference to the image assigned to this contact. |
ContactGroup |
getParentContactGroup()
Returns a reference to the contact group that this contact is currently a child of or null if the underlying protocol does not support persistent presence. |
String |
getPersistentData()
Returns the persistent data |
PresenceStatus |
getPresenceStatus()
Returns the status of the contact as per the last status update we've received for it. |
ProtocolProviderService |
getProtocolProvider()
Returns a reference to the protocol provider that created the contact. |
(package private) String |
getServerDisplayName()
Returns the display name used when the contact was resolved. |
(package private) org.jivesoftware.smack.RosterEntry |
getSourceEntry()
Get source entry |
String |
getStatusMessage()
Return the current status message of this contact. |
int |
hashCode()
Returns a hashCode for this contact. |
boolean |
isLocal()
Determines whether or not this Contact instance represents the user used by this protocol provider to connect to the service. |
boolean |
isPersistent()
Determines whether or not this contact is being stored by the server. |
boolean |
isResolved()
Determines whether or not this contact has been resolved against the server. |
void |
setImage(byte[] imgBytes)
Set the image of the contact |
(package private) void |
setPersistent(boolean persistent)
Specifies whether this contact is to be considered persistent or not. |
void |
setPersistentData(String persistentData)
Not used. |
(package private) void |
setResolved(org.jivesoftware.smack.RosterEntry entry)
Resolve this contact against the given entry |
(package private) void |
setServerDisplayName(String newValue)
Changes locally stored server display name. |
protected void |
setStatusMessage(String statusMessage)
Sets the current status message for this contact |
String |
toString()
Returns a string representation of this contact, containing most of its representative details. |
(package private) void |
updatePresenceStatus(PresenceStatus status)
Sets the status that this contact is currently in. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
ContactJabberImpl(org.jivesoftware.smack.RosterEntry rosterEntry,
ServerStoredContactListJabberImpl ssclCallback,
boolean isPersistent,
boolean isResolved)
rosterEntry - the RosterEntry object that we will be encapsulating.ssclCallback - a reference to the ServerStoredContactListImpl
instance that created us.isPersistent - determines whether this contact is persistent or not.isResolved - specifies whether the contact has been resolved against
the server contact list
ContactJabberImpl(String id,
ServerStoredContactListJabberImpl ssclCallback,
boolean isPersistent)
id - contact idssclCallback - the contact list handler that creates us.isPersistent - is the contact persistent.| Method Detail |
|---|
public String getAddress()
getAddress in interface Contactpublic boolean isLocal()
public byte[] getImage()
getImage in interface Contactpublic byte[] getImage(boolean retrieveIfNecessary)
retrieveIfNecessary - specifies whether the method should queue
this contact for avatar update from the server.
public void setImage(byte[] imgBytes)
imgBytes - the bytes of the image that we'd like to set.public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.
public String toString()
toString in class Objectvoid updatePresenceStatus(PresenceStatus status)
status - the JabberStatusEnum that this contact is currently in.public PresenceStatus getPresenceStatus()
getPresenceStatus in interface Contactpublic String getDisplayName()
getDisplayName in interface ContactString getServerDisplayName()
void setServerDisplayName(String newValue)
newValue - public ContactGroup getParentContactGroup()
getParentContactGroup in interface Contactpublic ProtocolProviderService getProtocolProvider()
getProtocolProvider in interface Contactpublic boolean isPersistent()
isPersistent in interface Contactvoid setPersistent(boolean persistent)
persistent - true if the buddy is to be considered persistent and
false for volatile.void setResolved(org.jivesoftware.smack.RosterEntry entry)
entry - the server stored entrypublic String getPersistentData()
getPersistentData in interface Contactpublic boolean isResolved()
isResolved in interface Contactpublic void setPersistentData(String persistentData)
persistentData - the persistent data.org.jivesoftware.smack.RosterEntry getSourceEntry()
public String getStatusMessage()
getStatusMessage in interface Contactprotected void setStatusMessage(String statusMessage)
statusMessage - the message
|
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 | |||||||||