tigase.jaxmpp.core.client.xmpp.modules.roster
Class RosterStore

java.lang.Object
  extended by tigase.jaxmpp.core.client.xmpp.modules.roster.RosterStore

public class RosterStore
extends Object


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)
           
 void add(BareJID jid, String name, Collection<String> groups, AsyncCallback asyncCallback)
           
 void add(BareJID jid, String name, String[] groups, AsyncCallback asyncCallback)
           
 void clear()
           
 RosterItem get(BareJID jid)
           
 List<RosterItem> getAll()
           
 List<RosterItem> getAll(RosterStore.Predicate predicate)
           
 int getCount()
           
 Collection<? extends String> getGroups()
           
 void remove(BareJID jid)
           
 void removeAll()
           
 void update(RosterItem item)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groups

protected final Set<String> groups

roster

protected final Map<BareJID,RosterItem> roster
Constructor Detail

RosterStore

public RosterStore()
Method Detail

add

public void add(BareJID jid,
                String name,
                AsyncCallback asyncCallback)
         throws XMLException,
                JaxmppException
Throws:
XMLException
JaxmppException

add

public void add(BareJID jid,
                String name,
                Collection<String> groups,
                AsyncCallback asyncCallback)
         throws XMLException,
                JaxmppException
Throws:
XMLException
JaxmppException

add

public void add(BareJID jid,
                String name,
                String[] groups,
                AsyncCallback asyncCallback)
         throws XMLException,
                JaxmppException
Throws:
XMLException
JaxmppException

clear

public void clear()

get

public RosterItem get(BareJID jid)

getAll

public List<RosterItem> getAll()

getAll

public List<RosterItem> getAll(RosterStore.Predicate predicate)

getCount

public int getCount()

getGroups

public Collection<? extends String> getGroups()

remove

public void remove(BareJID jid)
            throws XMLException,
                   JaxmppException
Throws:
XMLException
JaxmppException

removeAll

public void removeAll()

update

public void update(RosterItem item)
            throws XMLException,
                   JaxmppException
Throws:
XMLException
JaxmppException


Copyright © 2006-2012 Tigase. All Rights Reserved.