public class DynamicRosterTest extends Object implements DynamicRosterIfc
| Constructor and Description |
|---|
DynamicRosterTest() |
| Modifier and Type | Method and Description |
|---|---|
tigase.xmpp.JID[] |
getBuddies(XMPPResourceConnection session)
Method description
|
tigase.xml.Element |
getBuddyItem(XMPPResourceConnection session,
tigase.xmpp.JID buddy)
Method description
|
tigase.xml.Element |
getItemExtraData(tigase.xml.Element item)
Method description
|
List<tigase.xml.Element> |
getRosterItems(XMPPResourceConnection session)
Method description
|
void |
init(Map<String,Object> props)
Method description
|
void |
init(String par)
Method description
|
void |
setItemExtraData(tigase.xml.Element item)
Method description
|
public tigase.xmpp.JID[] getBuddies(XMPPResourceConnection session) throws NotAuthorizedException
getBuddies in interface DynamicRosterIfcsession - String[] array of bare JIDs for the dynamic part
of the user roster.NotAuthorizedExceptionpublic tigase.xml.Element getBuddyItem(XMPPResourceConnection session, tigase.xmpp.JID buddy) throws NotAuthorizedException
getBuddyItem in interface DynamicRosterIfcsession - buddy - Element value of the XML element with all the roster
item data - JID, subscription, nick name and groups. Sample code for creating
the buddy element could look like this:
Element item = new Element("item", new Element[] {
new Element("group", "Tigase devs")},
new String[] {"jid", "subscription", "name"},
new String[] {peer, "both", JIDUtils.getNodeNick(peer)});NotAuthorizedExceptionpublic tigase.xml.Element getItemExtraData(tigase.xml.Element item)
getItemExtraData in interface DynamicRosterIfcitem - Elementpublic List<tigase.xml.Element> getRosterItems(XMPPResourceConnection session) throws NotAuthorizedException
getRosterItems in interface DynamicRosterIfcsession - List valueNotAuthorizedExceptionpublic void init(Map<String,Object> props)
init in interface DynamicRosterIfcprops - public void init(String par)
init in interface DynamicRosterIfcpar - public void setItemExtraData(tigase.xml.Element item)
setItemExtraData in interface DynamicRosterIfcitem - Copyright © 2014 "Tigase, Inc.". All rights reserved.