public final class RosterEntry
extends org.jivesoftware.smack.Manager
| Modifier and Type | Method and Description |
|---|---|
void |
cancelSubscription()
Cancel the presence subscription the XMPP entity representing this roster entry has with us.
|
boolean |
canSeeHisPresence()
Check if we are subscribed to the contact's presence.
|
boolean |
canSeeMyPresence()
Check if the contact is subscribed to "my" presence.
|
boolean |
equals(java.lang.Object object) |
boolean |
equalsDeep(java.lang.Object obj)
Indicates whether some other object is "equal to" this by comparing all members.
|
java.util.List<RosterGroup> |
getGroups()
Returns an copied list of the roster groups that this entry belongs to.
|
org.jxmpp.jid.BareJid |
getJid()
Returns the JID associated with this entry.
|
java.lang.String |
getName()
Returns the name associated with this entry.
|
RosterPacket.ItemType |
getType()
Returns the roster subscription type of the entry.
|
java.lang.String |
getUser()
Deprecated.
use
getJid() instead. |
int |
hashCode() |
boolean |
isApproved()
Returns the pre-approval state of this entry.
|
boolean |
isSubscriptionPending()
Returns the roster subscription request status of the entry.
|
void |
setName(java.lang.String name)
Sets the name associated with this entry.
|
java.lang.String |
toString() |
@Deprecated public java.lang.String getUser()
getJid() instead.public org.jxmpp.jid.BareJid getJid()
public java.lang.String getName()
public void setName(java.lang.String name)
throws org.jivesoftware.smack.SmackException.NotConnectedException,
org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
java.lang.InterruptedException
name - the name.org.jivesoftware.smack.SmackException.NotConnectedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionjava.lang.InterruptedExceptionpublic boolean isApproved()
public java.util.List<RosterGroup> getGroups()
public RosterPacket.ItemType getType()
getStatus() to see if a subscription request
is pending.public boolean isSubscriptionPending()
true, then the contact did not answer the subscription request
yet.public boolean canSeeMyPresence()
public boolean canSeeHisPresence()
true then the contact has allowed us to
receive presence information.public void cancelSubscription()
throws org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic boolean equalsDeep(java.lang.Object obj)
The equals(Object) method returns true if the user JIDs are equal.
obj - the reference object with which to compare.true if this object is the same as the obj argument; false
otherwise.