public interface RosterItem extends SubscriptionState
Represents a roster item. This interface is implemented already by Contact
and could be implemented by database entities as well to allow for easy conversion between database entities and XMPP elements.
Subscription state of an XMPP entity is always represented in a roster item, therefore this interface extends SubscriptionState
.
SubscriptionState.Subscription
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getGroups()
Gets the groups of the contact.
|
Jid |
getJid()
Gets the JID of the contact.
|
java.lang.String |
getName()
Gets the name of the contact.
|
boolean |
isApproved()
Gets the subscription pre-approval status.
|
equals, getSubscription, isPendingIn, isPendingOut
Jid getJid()
Gets the JID of the contact.
java.lang.String getName()
Gets the name of the contact.
The ‘name’ attribute of the
<item/>
element specifies the “handle” to be associated with the JID, as determined by the user (not the contact). Although the value of the ‘name’ attribute MAY have meaning to a human user, it is opaque to the server. However, the ‘name’ attribute MAY be used by the server for matching purposes within the context of various XMPP extensions (one possible comparison method is that described for XMPP resourceparts in [XMPP-ADDR]).It is OPTIONAL for a client to include the ‘name’ attribute when adding or updating a roster item.
boolean isApproved()
Gets the subscription pre-approval status.
The boolean ‘approved’ attribute with a value of “true” is used to signal subscription pre-approval as described under Section 3.4
java.util.List<java.lang.String> getGroups()
Gets the groups of the contact.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.