Search in sources :

Example 6 with GroupController

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();
}
Also used : GroupController(org.olat.admin.securitygroup.gui.GroupController) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) SecurityGroup(org.olat.basesecurity.SecurityGroup)

Aggregations

GroupController (org.olat.admin.securitygroup.gui.GroupController)6 CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)6 SecurityGroup (org.olat.basesecurity.SecurityGroup)2 PoolImpl (org.olat.modules.qpool.model.PoolImpl)2 QuestionItemImpl (org.olat.modules.qpool.model.QuestionItemImpl)2