public interface RosterStore
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEntry(org.xmpp.packet.Roster.Item item,
String version)
This method stores a new roster entry in this store or updates an
existing one.
|
Collection<org.xmpp.packet.Roster.Item> |
getEntries()
This method returns a collection of all roster items contained in this
store.
|
org.xmpp.packet.Roster.Item |
getEntry(String bareJid)
This method returns the roster item in this store for the given JID.
|
String |
getRosterVersion()
This method returns the version number as specified by the "ver"
attribute of the local store.
|
boolean |
removeEntry(String bareJid,
String version)
Removes an entry from the store
|
boolean |
resetEntries(Collection<org.xmpp.packet.Roster.Item> items,
String version)
This method updates the store so that it contains only the given entries.
|
Collection<org.xmpp.packet.Roster.Item> getEntries()
RosterEntryorg.xmpp.packet.Roster.Item getEntry(String bareJid)
bareJid - The bare JID of the RosterEntryRosterEntry which belongs to that userString getRosterVersion()
boolean addEntry(org.xmpp.packet.Roster.Item item,
String version)
item - the entry to storeversion - the new roster versionboolean resetEntries(Collection<org.xmpp.packet.Roster.Item> items, String version)
items - the entries to storeversion - the new roster versionCopyright © 2014. All Rights Reserved.