use of org.olat.admin.securitygroup.gui.GroupController in project openolat by klemens.
the class CatalogNodeManagerController method doEditOwners.
private void doEditOwners(UserRequest ureq) {
removeAsListenerAndDispose(groupCtrl);
removeAsListenerAndDispose(cmc);
// add ownership management
SecurityGroup secGroup = catalogEntry.getOwnerGroup();
if (secGroup == null) {
catalogEntry = catalogManager.loadCatalogEntry(catalogEntry);
secGroup = securityManager.createAndPersistSecurityGroup();
catalogEntry.setOwnerGroup(secGroup);
catalogEntry = catalogManager.saveCatalogEntry(catalogEntry);
}
groupCtrl = new GroupController(ureq, getWindowControl(), true, false, false, false, false, false, secGroup);
listenTo(groupCtrl);
// open form in dialog
removeAsListenerAndDispose(cmc);
cmc = new CloseableModalController(getWindowControl(), "close", groupCtrl.getInitialComponent(), true, translate("tools.edit.catalog.category.ownergroup"));
listenTo(cmc);
cmc.activate();
}
Aggregations