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:
Getting the user’'s roster using RosterManager.getRoster.
Creating an empty org.xmpp.packet.Roster.
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?