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);
}
}
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);
}
}
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);
}
}
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();
}
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);
}
}
Aggregations