List<Member> participants = new ArrayList<Member>();
List<Member> waitings = new ArrayList<Member>();
List areas = BGAreaManagerImpl.getInstance().findBGAreasOfBGContext(context);
for (Iterator areaIterator = areas.iterator(); areaIterator.hasNext();) {
BGArea area = (BGArea) areaIterator.next();
if (areaList.contains(area)) { //rely on the equals() method of the BGArea impl
List areaBusinessGroupList = BGAreaManagerImpl.getInstance().findBusinessGroupsOfArea(area);
for (Iterator groupIterator = areaBusinessGroupList.iterator(); groupIterator.hasNext();) {
BusinessGroup group = (BusinessGroup) groupIterator.next();
if(group.getOwnerGroup()!=null) {
Iterator ownerIterator = securityManager.getIdentitiesAndDateOfSecurityGroup(group.getOwnerGroup()).iterator();
addMembers(area.getKey(), ownerIterator, owners, OWNER);
}
if(group.getPartipiciantGroup()!=null) {
Iterator participantsIterator = securityManager.getIdentitiesAndDateOfSecurityGroup(group.getPartipiciantGroup()).iterator();
addMembers(area.getKey(), participantsIterator, participants, PARTICIPANT);
}
if(group.getWaitingGroup()!=null) {
Iterator waitingIterator = securityManager.getIdentitiesAndDateOfSecurityGroup(group.getWaitingGroup()).iterator();
addMembers(area.getKey(), waitingIterator, waitings, WAITING);
}
}
}
}
Locale userLocale = ureq.getLocale();