Search in sources :

Example 1 with GroupController

use of org.olat.admin.securitygroup.gui.GroupController in project OpenOLAT by OpenOLAT.

the class RightsMetadataEditController method doOpenAuthorManager.

private void doOpenAuthorManager(UserRequest ureq) {
    if (item instanceof QuestionItemImpl) {
        QuestionItemImpl itemImpl = (QuestionItemImpl) item;
        groupController = new GroupController(ureq, getWindowControl(), true, true, false, true, false, false, itemImpl.getOwnerGroup());
        listenTo(groupController);
        cmc = new CloseableModalController(getWindowControl(), translate("close"), groupController.getInitialComponent(), true, translate("manage.owners"));
        cmc.activate();
        listenTo(cmc);
    }
}
Also used : QuestionItemImpl(org.olat.modules.qpool.model.QuestionItemImpl) GroupController(org.olat.admin.securitygroup.gui.GroupController) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 2 with GroupController

use of org.olat.admin.securitygroup.gui.GroupController in project openolat by klemens.

the class RightsMetadataEditController method doOpenAuthorManager.

private void doOpenAuthorManager(UserRequest ureq) {
    if (item instanceof QuestionItemImpl) {
        QuestionItemImpl itemImpl = (QuestionItemImpl) item;
        groupController = new GroupController(ureq, getWindowControl(), true, true, false, true, false, false, itemImpl.getOwnerGroup());
        listenTo(groupController);
        cmc = new CloseableModalController(getWindowControl(), translate("close"), groupController.getInitialComponent(), true, translate("manage.owners"));
        cmc.activate();
        listenTo(cmc);
    }
}
Also used : QuestionItemImpl(org.olat.modules.qpool.model.QuestionItemImpl) GroupController(org.olat.admin.securitygroup.gui.GroupController) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 3 with GroupController

use of org.olat.admin.securitygroup.gui.GroupController in project openolat by klemens.

the class PoolsAdminController method doManageOwners.

private void doManageOwners(UserRequest ureq, Pool pool) {
    if (pool instanceof PoolImpl) {
        PoolImpl poolImpl = (PoolImpl) pool;
        groupCtrl = new GroupController(ureq, getWindowControl(), true, true, false, true, false, false, poolImpl.getOwnerGroup());
        groupCtrl.setUserObject(pool);
        listenTo(groupCtrl);
        cmc = new CloseableModalController(getWindowControl(), translate("close"), groupCtrl.getInitialComponent(), true, translate("pool.owners"));
        cmc.activate();
        listenTo(cmc);
    }
}
Also used : GroupController(org.olat.admin.securitygroup.gui.GroupController) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) PoolImpl(org.olat.modules.qpool.model.PoolImpl)

Example 4 with GroupController

use of org.olat.admin.securitygroup.gui.GroupController in project OpenOLAT by OpenOLAT.

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)

Example 5 with GroupController

use of org.olat.admin.securitygroup.gui.GroupController in project OpenOLAT by OpenOLAT.

the class PoolsAdminController method doManageOwners.

private void doManageOwners(UserRequest ureq, Pool pool) {
    if (pool instanceof PoolImpl) {
        PoolImpl poolImpl = (PoolImpl) pool;
        groupCtrl = new GroupController(ureq, getWindowControl(), true, true, false, true, false, false, poolImpl.getOwnerGroup());
        groupCtrl.setUserObject(pool);
        listenTo(groupCtrl);
        cmc = new CloseableModalController(getWindowControl(), translate("close"), groupCtrl.getInitialComponent(), true, translate("pool.owners"));
        cmc.activate();
        listenTo(cmc);
    }
}
Also used : GroupController(org.olat.admin.securitygroup.gui.GroupController) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) PoolImpl(org.olat.modules.qpool.model.PoolImpl)

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