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 DynamicRosterIfc
session
- String[]
array of bare JIDs for the dynamic part
of the user roster.NotAuthorizedException
public tigase.xml.Element getBuddyItem(XMPPResourceConnection session, tigase.xmpp.JID buddy) throws NotAuthorizedException
getBuddyItem
in interface DynamicRosterIfc
session
- 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)});
NotAuthorizedException
public tigase.xml.Element getItemExtraData(tigase.xml.Element item)
getItemExtraData
in interface DynamicRosterIfc
item
- Element
public List<tigase.xml.Element> getRosterItems(XMPPResourceConnection session) throws NotAuthorizedException
getRosterItems
in interface DynamicRosterIfc
session
- List
valueNotAuthorizedException
public void init(Map<String,Object> props)
init
in interface DynamicRosterIfc
props
- public void init(String par)
init
in interface DynamicRosterIfc
par
- public void setItemExtraData(tigase.xml.Element item)
setItemExtraData
in interface DynamicRosterIfc
item
- Copyright © 2014 "Tigase, Inc.". All rights reserved.