use of org.olat.modules.qpool.ui.QuestionsController 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;
}
use of org.olat.modules.qpool.ui.QuestionsController in project OpenOLAT by OpenOLAT.
the class ReviewTreeNode method getController.
@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
if (questionsCtrl == null) {
String resName = REVIEW + "_" + taxonomyLevel.getIdentifier();
OLATResourceable ores = OresHelper.createOLATResourceableInstanceWithoutCheck(resName, taxonomyLevel.getKey());
WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ores, null, wControl, true);
questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, REVIEW + taxonomyLevel.getKey(), false);
} else {
questionsCtrl.updateSource();
}
reloadCount();
return questionsCtrl;
}
use of org.olat.modules.qpool.ui.QuestionsController in project OpenOLAT by OpenOLAT.
the class WithoutTaxonomyLevelTreeNode method getController.
@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
if (questionsCtrl == null) {
QuestionItemsSource source = new WithoutTaxonomyLevelItemSource(ureq.getIdentity(), ureq.getUserSession().getRoles(), WITHOUT_TAXONOMY_LEVEL);
WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ORES, null, wControl, true);
questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, WITHOUT_TAXONOMY_LEVEL, true);
} else {
questionsCtrl.updateSource();
}
return questionsCtrl;
}
use of org.olat.modules.qpool.ui.QuestionsController in project openolat by klemens.
the class ReviewTreeNode method getController.
@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
if (questionsCtrl == null) {
String resName = REVIEW + "_" + taxonomyLevel.getIdentifier();
OLATResourceable ores = OresHelper.createOLATResourceableInstanceWithoutCheck(resName, taxonomyLevel.getKey());
WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ores, null, wControl, true);
questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, REVIEW + taxonomyLevel.getKey(), false);
} else {
questionsCtrl.updateSource();
}
reloadCount();
return questionsCtrl;
}
use of org.olat.modules.qpool.ui.QuestionsController 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;
}
Aggregations