开发者

android+smack+openfire

开发者 https://www.devze.com 2023-01-23 01:24 出处:网络
I have some doubts in getti开发者_如何学JAVAng the open server information to java program dispalying the already existing users to newly registred user

I have some doubts in getti开发者_如何学JAVAng the open server information to java program

  1. dispalying the already existing users to newly registred user
  2. add and delete from groups


For the first part: Usually, a user will only see his own contacts (in jabber terms: roster). If you maintain a xmpp server for a small community, you could implement a custom registration process:

  1. Create a group "allUsers" that will contain all users
  2. for each new user 2.1 create a new user account 2.2 add the user to that group

As a result, all members of the "allUser" group should be on the users roster

(Never did it myself and it may be necessary to implement this custom registration routine on the openfire server directly, because I fear, that the xmpp protocol does not support adding to and deleting from groups)


you can use "Registration Plugin" which can be found in plugins tab of open fire. Use that and change the registration settings to "add all registered users into a group"

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号