Hi all,
Using the Wildfire API, I’'m currently trying to programmatically create some users and group them into several groups, at the server-side.
The creation of users and groups are okay, as I checked it with the Wildfire Admin Web Page.
Now, at the client-side, I would also like for the Wildfire client (Spark) of each user,
to be ‘‘notified’’ about the (newly created) groups they belong to.
My question is: what are the mechanisms to use if I want to dynamically
notify the shared groups in users’’ rosters after their creation?
So far, I have experienced the following:
-
when user1 is added into group A , its roster doesn’'t display the group A
-
when user2 and user3 are added to group A, their roster are instantly updated and show group A.
-
when I re-add or re-log in user1, its roster is updated.
So simply adding members to groups seems not to be sufficient to update each member rosters.
To perform dynamical notification of group members, Do I have to manage some kinds of ‘‘wildfire events’’ (dispatchEvent()?,…),
or maybe change some of the group properties (group.getProperties().put(…))?;…) or ???
Any idea?
Cheers,