public abstract class RosterStore extends Object implements tigase.jaxmpp.core.client.Property
| Modifier and Type | Class and Description |
|---|---|
static interface |
RosterStore.Predicate |
| Modifier and Type | Field and Description |
|---|---|
protected tigase.jaxmpp.core.client.SessionObject |
sessionObject |
| Constructor and Description |
|---|
RosterStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(tigase.jaxmpp.core.client.BareJID jid,
String name,
tigase.jaxmpp.core.client.AsyncCallback asyncCallback)
Adds new contact to roster.
|
void |
add(tigase.jaxmpp.core.client.BareJID jid,
String name,
Collection<String> groups,
tigase.jaxmpp.core.client.AsyncCallback asyncCallback)
Adds new contact to roster.
|
void |
add(tigase.jaxmpp.core.client.BareJID jid,
String name,
String[] groups,
tigase.jaxmpp.core.client.AsyncCallback asyncCallback)
Adds new contact to roster.
|
protected abstract Set<String> |
addItem(RosterItem item) |
protected abstract Set<String> |
calculateModifiedGroups(HashSet<String> groupsOld) |
void |
clear()
Clears storage.
|
abstract RosterItem |
get(tigase.jaxmpp.core.client.BareJID jid)
Returns RosterItem of given bare JID.
|
List<RosterItem> |
getAll()
Returns all buddies from roster.
|
abstract List<RosterItem> |
getAll(RosterStore.Predicate predicate)
Returns all roster items selected by selector.
|
abstract int |
getCount()
Returns number of roster items in storage.
|
abstract Collection<? extends String> |
getGroups()
Get all known groups of buddies.
|
Class<RosterStore> |
getPropertyClass() |
void |
remove(tigase.jaxmpp.core.client.BareJID jid)
Removes buddy from roster.
|
abstract void |
removeAll() |
protected abstract void |
removeItem(tigase.jaxmpp.core.client.BareJID jid) |
void |
setSessionObject(tigase.jaxmpp.core.client.SessionObject sessionObject) |
void |
update(RosterItem item)
Sends changed RosterItem to server.
|
public void add(tigase.jaxmpp.core.client.BareJID jid,
String name,
tigase.jaxmpp.core.client.AsyncCallback asyncCallback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
jid - JID of buddyname - name of buddyasyncCallback - callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void add(tigase.jaxmpp.core.client.BareJID jid,
String name,
Collection<String> groups,
tigase.jaxmpp.core.client.AsyncCallback asyncCallback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
jid - JID of buddyname - name of buddygroups - collection of groups nameasyncCallback - callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void add(tigase.jaxmpp.core.client.BareJID jid,
String name,
String[] groups,
tigase.jaxmpp.core.client.AsyncCallback asyncCallback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
jid - JID of buddyname - name of buddygroups - array of groups nameasyncCallback - callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected abstract Set<String> addItem(RosterItem item)
protected abstract Set<String> calculateModifiedGroups(HashSet<String> groupsOld)
public void clear()
public abstract RosterItem get(tigase.jaxmpp.core.client.BareJID jid)
jid - bare JID.public List<RosterItem> getAll()
public abstract List<RosterItem> getAll(RosterStore.Predicate predicate)
predicate - selector.public abstract int getCount()
public abstract Collection<? extends String> getGroups()
public Class<RosterStore> getPropertyClass()
getPropertyClass in interface tigase.jaxmpp.core.client.Propertypublic void remove(tigase.jaxmpp.core.client.BareJID jid)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
jid - jid of buddy to remove.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic abstract void removeAll()
protected abstract void removeItem(tigase.jaxmpp.core.client.BareJID jid)
public void setSessionObject(tigase.jaxmpp.core.client.SessionObject sessionObject)
public void update(RosterItem item) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
item - changed roster item.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionCopyright © 2006–2016 Tigase. All rights reserved.