Search in sources :

Example 1 with WithoutAuthorItemSource

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

the class WithoutAuthorTreeNode method getController.

@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
    if (questionsCtrl == null) {
        QuestionItemsSource source = new WithoutAuthorItemSource(ureq.getIdentity(), ureq.getUserSession().getRoles(), WITHOUT_AUTHOR);
        WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ORES, null, wControl, true);
        questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, WITHOUT_AUTHOR, true);
    } else {
        questionsCtrl.updateSource();
    }
    return questionsCtrl;
}
Also used : WithoutAuthorItemSource(org.olat.modules.qpool.ui.datasource.WithoutAuthorItemSource) QuestionItemsSource(org.olat.modules.qpool.ui.QuestionItemsSource) WindowControl(org.olat.core.gui.control.WindowControl) QuestionsController(org.olat.modules.qpool.ui.QuestionsController)

Example 2 with WithoutAuthorItemSource

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

the class WithoutAuthorTreeNode method getController.

@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
    if (questionsCtrl == null) {
        QuestionItemsSource source = new WithoutAuthorItemSource(ureq.getIdentity(), ureq.getUserSession().getRoles(), WITHOUT_AUTHOR);
        WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ORES, null, wControl, true);
        questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, WITHOUT_AUTHOR, true);
    } else {
        questionsCtrl.updateSource();
    }
    return questionsCtrl;
}
Also used : WithoutAuthorItemSource(org.olat.modules.qpool.ui.datasource.WithoutAuthorItemSource) 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 QuestionItemsSource (org.olat.modules.qpool.ui.QuestionItemsSource)2 QuestionsController (org.olat.modules.qpool.ui.QuestionsController)2 WithoutAuthorItemSource (org.olat.modules.qpool.ui.datasource.WithoutAuthorItemSource)2