use of org.olat.modules.qpool.ui.QuestionsController in project openolat by klemens.
the class MyQuestionsTreeNode method getController.
@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
if (questionsCtrl == null) {
QuestionItemsSource source = new MyItemsSource(ureq.getIdentity(), ureq.getUserSession().getRoles(), ITEM_SOURCE_NAME);
WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ORES, null, wControl, true);
questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, TABLE_PREFERENCE_PREFIX, false);
} else {
questionsCtrl.updateSource();
}
return questionsCtrl;
}
use of org.olat.modules.qpool.ui.QuestionsController 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;
}
use of org.olat.modules.qpool.ui.QuestionsController in project openolat by klemens.
the class PoolTreeNode method getController.
@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
if (questionsCtrl == null) {
PoolItemsSource source = new PoolItemsSource(ureq.getIdentity(), ureq.getUserSession().getRoles(), pool);
source.setRemoveEnabled(isRemoveEnabled(ureq, pool));
WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, pool, null, wControl, true);
questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, TABLE_PREFERENCE_PREFIX + pool.getKey(), false);
} else {
questionsCtrl.updateSource();
}
return questionsCtrl;
}
use of org.olat.modules.qpool.ui.QuestionsController in project OpenOLAT by OpenOLAT.
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;
}
use of org.olat.modules.qpool.ui.QuestionsController in project OpenOLAT by OpenOLAT.
the class MarkedQuestionsTreeNode method getController.
@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
if (questionsCtrl == null) {
QuestionItemsSource source = new MarkedItemsSource(ureq.getIdentity(), ureq.getUserSession().getRoles(), ITEM_SOURCE_NAME);
WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ORES, null, wControl, true);
questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, TABLE_PREFERENCE_PREFIX, false);
} else {
questionsCtrl.updateSource();
}
return questionsCtrl;
}
Aggregations