|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.jaxmpp.core.client.xmpp.modules.roster.RosterStore
public class RosterStore
Storage for keeping roster.
| Nested Class Summary | |
|---|---|
static interface |
RosterStore.Predicate
|
| Field Summary | |
|---|---|
protected Set<String> |
groups
|
protected Map<BareJID,RosterItem> |
roster
|
| Constructor Summary | |
|---|---|
RosterStore()
|
|
| Method Summary | |
|---|---|
void |
add(BareJID jid,
String name,
AsyncCallback asyncCallback)
Adds new contact to roster. |
void |
add(BareJID jid,
String name,
Collection<String> groups,
AsyncCallback asyncCallback)
Adds new contact to roster. |
void |
add(BareJID jid,
String name,
String[] groups,
AsyncCallback asyncCallback)
Adds new contact to roster. |
void |
clear()
Clears storage. |
RosterItem |
get(BareJID jid)
Returns RosterItem of given bare JID. |
List<RosterItem> |
getAll()
Returns all buddies from roster. |
List<RosterItem> |
getAll(RosterStore.Predicate predicate)
Returns all roster items selected by selector. |
int |
getCount()
Returns number of roster items in storage. |
Collection<? extends String> |
getGroups()
Get all known groups of buddies. |
void |
remove(BareJID jid)
Removes buddy from roster. |
void |
removeAll()
|
void |
update(RosterItem item)
Sends changed RosterItem to server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Set<String> groups
protected final Map<BareJID,RosterItem> roster
| Constructor Detail |
|---|
public RosterStore()
| Method Detail |
|---|
public void add(BareJID jid,
String name,
AsyncCallback asyncCallback)
throws XMLException,
JaxmppException
jid - JID of buddyname - name of buddyasyncCallback - callback
XMLException
JaxmppException
public void add(BareJID jid,
String name,
Collection<String> groups,
AsyncCallback asyncCallback)
throws XMLException,
JaxmppException
jid - JID of buddyname - name of buddygroups - collection of groups nameasyncCallback - callback
XMLException
JaxmppException
public void add(BareJID jid,
String name,
String[] groups,
AsyncCallback asyncCallback)
throws XMLException,
JaxmppException
jid - JID of buddyname - name of buddygroups - array of groups nameasyncCallback - callback
XMLException
JaxmppExceptionpublic void clear()
public RosterItem get(BareJID jid)
jid - bare JID.
public List<RosterItem> getAll()
public List<RosterItem> getAll(RosterStore.Predicate predicate)
predicate - selector.
public int getCount()
public Collection<? extends String> getGroups()
public void remove(BareJID jid)
throws JaxmppException
jid - jid of buddy to remove.
JaxmppExceptionpublic void removeAll()
public void update(RosterItem item)
throws JaxmppException
item - changed roster item.
JaxmppException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||