if (flags.isEnabled(BGConfigFlags.GROUP_OWNERS)) {
if (ownerListModel == null || initializeModel) {
List owners = contextManager.getBGOwnersOfBGContext(bgContext);
if (ownerListCtr != null) ownerListCtr.dispose();
TableGuiConfiguration tableConfig = new TableGuiConfiguration();
tableConfig.setPreferencesOffered(true, "ownerListController");
tableConfig.setTableEmptyMessage(translate("userlist.owners.noOwners"));
if (ownerListCtr != null) ownerListCtr.dispose();
ownerListCtr = UserControllerFactory.createTableControllerFor(tableConfig, owners, ureq, getWindowControl(), this, CMD_USER_DETAILS);
ownerListModel = (UserTableDataModel) ownerListCtr.getTableDataModel();
userListVC.put("ownerlisttable", ownerListCtr.getInitialComponent());
}
userListVC.contextPut("showOwners", Boolean.TRUE);
} else {
userListVC.contextPut("showOwners", Boolean.FALSE);
}
// 2. init participants list
if (participantListModel == null || initializeModel) {
List participants = contextManager.getBGParticipantsOfBGContext(bgContext);
if (participantListCtr != null) participantListCtr.dispose();
TableGuiConfiguration tableConfig = new TableGuiConfiguration();
tableConfig.setPreferencesOffered(true, "participantsListController");
tableConfig.setTableEmptyMessage(translate("userlist.participants.noParticipants"));
//participantListCtr = new TableController(tableConfig, ureq, getWindowControl(), userTrans, this);
if (participantListCtr != null) participantListCtr.dispose();
participantListCtr = UserControllerFactory.createTableControllerFor(tableConfig, participants, ureq, getWindowControl(), this, CMD_USER_DETAILS);
participantListModel = (UserTableDataModel) participantListCtr.getTableDataModel();