android+smack+openfire

发布于 2024-09-30 13:51:19 字数 83 浏览 0 评论 0原文

我对将开放服务器信息获取到java程序

  1. 显示现有用户到新注册用户
  2. 添加和从组中删除有一些疑问

I have some doubts in getting the open server information to java program

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风筝在阴天搁浅。 2024-10-07 13:51:19

对于第一部分:通常,用户只会看到自己的联系人(用 jabber 术语来说:名册)。如果您为小型社区维护 xmpp 服务器,则可以实现自定义注册过程:

  1. 创建一个组“allUsers”,其中包含
  2. 每个新用户的 所有用户
    2.1 创建新用户帐户
    2.2 将用户添加到该组

因此,“allUser”组的所有成员都应该在用户名册上

(我自己从来没有这样做过,可能有必要直接在openfire服务器上实现这个自定义注册例程,因为我担心,xmpp协议不支持添加和删除组)

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)

姜生凉生 2024-10-07 13:51:19

您可以使用“注册插件”,它可以在 Open Fire 的插件选项卡中找到。使用它并将注册设置更改为“将所有注册用户添加到一个组中”

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"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文