Search in sources :

Example 1 with MyTaxonomyLevelItemsSource

use of org.olat.modules.qpool.ui.datasource.MyTaxonomyLevelItemsSource in project openolat by klemens.

the class MyTaxonomyLevelTreeNode method getController.

@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
    if (questionsCtrl == null) {
        QuestionItemsSource source = new MyTaxonomyLevelItemsSource(ureq.getIdentity(), ureq.getUserSession().getRoles(), taxonomyLevel);
        OLATResourceable ores = OresHelper.createOLATResourceableInstanceWithoutCheck(MY_TAX_LEVEL + "_" + taxonomyLevel.getIdentifier(), taxonomyLevel.getKey());
        WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ores, null, wControl, true);
        questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, MY_TAX_LEVEL + taxonomyLevel.getKey(), false);
    } else {
        questionsCtrl.updateSource();
    }
    return questionsCtrl;
}
Also used : MyTaxonomyLevelItemsSource(org.olat.modules.qpool.ui.datasource.MyTaxonomyLevelItemsSource) OLATResourceable(org.olat.core.id.OLATResourceable) QuestionItemsSource(org.olat.modules.qpool.ui.QuestionItemsSource) WindowControl(org.olat.core.gui.control.WindowControl) QuestionsController(org.olat.modules.qpool.ui.QuestionsController)

Example 2 with MyTaxonomyLevelItemsSource

use of org.olat.modules.qpool.ui.datasource.MyTaxonomyLevelItemsSource in project OpenOLAT by OpenOLAT.

the class MyTaxonomyLevelTreeNode method getController.

@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
    if (questionsCtrl == null) {
        QuestionItemsSource source = new MyTaxonomyLevelItemsSource(ureq.getIdentity(), ureq.getUserSession().getRoles(), taxonomyLevel);
        OLATResourceable ores = OresHelper.createOLATResourceableInstanceWithoutCheck(MY_TAX_LEVEL + "_" + taxonomyLevel.getIdentifier(), taxonomyLevel.getKey());
        WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ores, null, wControl, true);
        questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, MY_TAX_LEVEL + taxonomyLevel.getKey(), false);
    } else {
        questionsCtrl.updateSource();
    }
    return questionsCtrl;
}
Also used : MyTaxonomyLevelItemsSource(org.olat.modules.qpool.ui.datasource.MyTaxonomyLevelItemsSource) OLATResourceable(org.olat.core.id.OLATResourceable) QuestionItemsSource(org.olat.modules.qpool.ui.QuestionItemsSource) WindowControl(org.olat.core.gui.control.WindowControl) QuestionsController(org.olat.modules.qpool.ui.QuestionsController)

Aggregations

WindowControl (org.olat.core.gui.control.WindowControl)2 OLATResourceable (org.olat.core.id.OLATResourceable)2 QuestionItemsSource (org.olat.modules.qpool.ui.QuestionItemsSource)2 QuestionsController (org.olat.modules.qpool.ui.QuestionsController)2 MyTaxonomyLevelItemsSource (org.olat.modules.qpool.ui.datasource.MyTaxonomyLevelItemsSource)2