use of org.olat.modules.qpool.ui.datasource.CollectionOfItemsSource in project openolat by klemens.
the class CollectionTreeNode method getController.
@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
QuestionItemsSource source = new CollectionOfItemsSource(questionItemCollection, ureq.getIdentity(), ureq.getUserSession().getRoles());
if (questionsCtrl == null) {
WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, questionItemCollection, null, wControl, true);
questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, TABLE_PREFERENCE_PREFIX + questionItemCollection.getKey(), false);
questionsCtrl.setQuestionItemCollection(questionItemCollection);
} else {
questionsCtrl.updateSource(source);
}
return questionsCtrl;
}
Aggregations