targets = new HashMap();
IEntityGroup everyone = GroupService.getDistinguishedGroup(GroupService.EVERYONE);
targets.put(everyone.getKey(), everyone.getName());
Iterator allgroups = everyone.getAllMembers();
while (allgroups.hasNext()) {
IGroupMember g = (IGroupMember)allgroups.next();
if (g.isGroup()) {
if (targets.get(g.getKey()) == null) {
try {
targets.put(g.getKey(), ((IEntityGroup)g).getName());
} catch (Exception e) {
Utility.logMessage("ERROR", "CGroupsManager.init():: unable to add target"
+ e, e);
}
}
}
}
IEntityGroup allChans = GroupService.getDistinguishedGroup(GroupService.CHANNEL_CATEGORIES);
targets.put(allChans.getKey(), allChans.getName());
Iterator allcgroups = allChans.getAllMembers();
while (allcgroups.hasNext()) {
IGroupMember g = (IGroupMember)allcgroups.next();
if (g.isGroup()) {
if (targets.get(g.getKey()) == null) {
try {
targets.put(g.getKey(), ((IEntityGroup)g).getName());
} catch (Exception e) {
Utility.logMessage("ERROR", "CGroupsManager.init():: unable to add target"
+ e, e);
}
}