Hello all, I am wondering that is there any easy way for setting JIDs for pubsub node with AccessModel.whitelist.
There was same question but no one answered: PubSub and AccessModel
Do we have easy way for that ? I thought there should be a way to set whitelist JIDs when I create a new node, but actually not.
I think I have to send kind of following message to server to set JIDs as whitelist for a pubsub node:
< pubsub xmlns=‘http://jabber.org/protocol/pubsub#owner’>
< affiliations node=‘target_node’>
< affiliation jid=‘firstname.lastname@example.org’ affiliation=‘none’/>
< affiliation jid=‘email@example.com’ affiliation=‘none’/>
But I don’t know how can I send this message easily with smack API.
There is sendPubsubPacket() method in PubSubManager but the method is protected as privacy method.
I’m very happy if someone can help me, thank you !