use of org.jivesoftware.openfire.group.GroupJID in project Openfire by igniterealtime.
the class LocalMUCRoom method groupModified.
@Override
public void groupModified(Group group, Map params) {
// check the affiliation lists for the old group jid, replace with a new group jid
if ("nameModified".equals(params.get("type"))) {
GroupJID originalJID = (GroupJID) params.get("originalJID");
GroupJID newJID = group.getJID();
try {
if (owners.contains(originalJID)) {
addOwner(newJID, getRole());
} else if (admins.contains(originalJID)) {
addAdmin(newJID, getRole());
} else if (outcasts.contains(originalJID)) {
addOutcast(newJID, null, getRole());
} else if (members.containsKey(originalJID)) {
addMember(newJID, null, getRole());
}
addNone(originalJID, getRole());
} catch (Exception ex) {
Log.error("Failed to update group affiliation for " + newJID, ex);
}
}
}
Aggregations