private void doShowMembers(UserRequest ureq) {
VelocityContainer membersVc = createVelocityContainer("ownersandmembers");
// 1. show owners if configured with Owners
if (flags.isEnabled(BGConfigFlags.GROUP_OWNERS) && bgpm.showOwners()) {
GroupController gownersC = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup.getOwnerGroup());
membersVc.put("owners", gownersC.getInitialComponent());
membersVc.contextPut("showOwnerGroups", Boolean.TRUE);
} else {
membersVc.contextPut("showOwnerGroups", Boolean.FALSE);
}
// 2. show participants if configured with Participants
if (bgpm.showPartips()) {
GroupController gparticipantsC = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup
.getPartipiciantGroup());
membersVc.put("participants", gparticipantsC.getInitialComponent());
membersVc.contextPut("showPartipsGroups", Boolean.TRUE);
} else {
membersVc.contextPut("showPartipsGroups", Boolean.FALSE);
}
// 3. show waiting-list if configured
membersVc.contextPut("hasWaitingList", new Boolean(businessGroup.getWaitingListEnabled()) );
if (bgpm.showWaitingList()) {
GroupController waitingListController = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup.getWaitingGroup());
membersVc.put("waitingList", waitingListController.getInitialComponent());
membersVc.contextPut("showWaitingList", Boolean.TRUE);
} else {
membersVc.contextPut("showWaitingList", Boolean.FALSE);
}
mainPanel.setContent(membersVc);