Creating Roster Packets from Wildfire Rosters

I’‘m writing a plugin, and I need to create an org.xmpp.packet.Roster from an org.jivesoftware.wildfire.roster.Roster. Right now, I’'m performing the following steps:

  1. Getting the user’'s roster using RosterManager.getRoster.

  2. Creating an empty org.xmpp.packet.Roster.

  3. Iterating through the RosterItems from the org.jivesoftware.wildfire.roster.Roster, and adding items to the org.xmpp.packet.Roster.

This seems like an inefficient process since it seems like there should be an easy way to add org.jivesoftware.wildfire.roster.RosterItems to an org.xmpp.packet.Roster. The biggest issue is translating between the different enum types. Is there an easier way to do this? Maybe a utility to do this for me that I’'m missing?

Thanks,

Christian

Hey cantrell.

You should be look for this post .

http://www.jivesoftware.org/community/thread.jspa?messageID=118603&#118603

thanks,

Ben