Is it possible to get all users list which contain in the openfire?

房东的猫 提交于 2019-12-08 12:34:55

问题


I am doing an app chat in android by asmack with XMPP and want to user client install the application he will be able to retrieve The list of all the users which contain on the database. This will allow to the client be able to select user from the List and joined him to list friend one on one. How can I do that?

If it not possible, how can achieve that?


回答1:


  1. Get the WebManager Instance.
WebManager webMan = ...;

UserManager userMan = webMan.getUserManager();

userMan.getUsers(); // Returns the user collection.

UserManager API

From the collection list you can get all the users you wany.



来源:https://stackoverflow.com/questions/27135055/is-it-possible-to-get-all-users-list-which-contain-in-the-openfire

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!