Ejemplo n.º 1
0
 /**
  * Calculates and sets the extended presence information to add to the presence. The information
  * to add contains the user's jid, affiliation and role.
  */
 private void calculateExtendedInformation() {
   ElementUtil.setProperty(extendedInformation, "x.item:jid", user.getAddress().toString());
   ElementUtil.setProperty(extendedInformation, "x.item:affiliation", affiliation.toString());
   ElementUtil.setProperty(extendedInformation, "x.item:role", role.toString());
 }