use of org.olat.modules.qpool.ui.QuestionItemsSource 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;
}
use of org.olat.modules.qpool.ui.QuestionItemsSource in project openolat by klemens.
the class BusinessGroupTreeNode method getController.
@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
if (questionsCtrl == null) {
boolean shareAdmin = isShareAdmin(ureq, group);
QuestionItemsSource source = new SharedItemsSource(group, ureq.getIdentity(), ureq.getUserSession().getRoles(), shareAdmin);
WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, group, null, wControl, true);
questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, TABLE_PREFERENCE_PREFIX + group.getKey(), false);
} else {
questionsCtrl.updateSource();
}
return questionsCtrl;
}
use of org.olat.modules.qpool.ui.QuestionItemsSource 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