use of org.olat.modules.qpool.ui.datasource.FinalItemsSource in project OpenOLAT by OpenOLAT.
the class FinalTreeNode method getController.
@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
if (questionsCtrl == null) {
QuestionItemsSource source = new FinalItemsSource(ureq.getIdentity(), ureq.getUserSession().getRoles(), taxonomyLevel);
String resName = FINAL + "_" + 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, FINAL + taxonomyLevel.getKey(), false);
} else {
questionsCtrl.updateSource();
}
return questionsCtrl;
}
use of org.olat.modules.qpool.ui.datasource.FinalItemsSource in project openolat by klemens.
the class FinalTreeNode method getController.
@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
if (questionsCtrl == null) {
QuestionItemsSource source = new FinalItemsSource(ureq.getIdentity(), ureq.getUserSession().getRoles(), taxonomyLevel);
String resName = FINAL + "_" + 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, FINAL + taxonomyLevel.getKey(), false);
} else {
questionsCtrl.updateSource();
}
return questionsCtrl;
}
use of org.olat.modules.qpool.ui.datasource.FinalItemsSource in project openolat by klemens.
the class ItemListMyCompetencesController method doSelectLevel.
private void doSelectLevel(UserRequest ureq, String levelKey) {
TaxonomyLevel level = qpoolTaxonomyTreeBuilder.getTaxonomyLevel(levelKey);
if (level == null) {
updateSource(new EmptyItemsSource());
} else {
FinalItemsSource source = new FinalItemsSource(getIdentity(), ureq.getUserSession().getRoles(), level);
source.getDefaultParams().setFormat(restrictToFormat);
updateSource(source);
}
}
use of org.olat.modules.qpool.ui.datasource.FinalItemsSource in project OpenOLAT by OpenOLAT.
the class ItemListMyCompetencesController method doSelectLevel.
private void doSelectLevel(UserRequest ureq, String levelKey) {
TaxonomyLevel level = qpoolTaxonomyTreeBuilder.getTaxonomyLevel(levelKey);
if (level == null) {
updateSource(new EmptyItemsSource());
} else {
FinalItemsSource source = new FinalItemsSource(getIdentity(), ureq.getUserSession().getRoles(), level);
source.getDefaultParams().setFormat(restrictToFormat);
updateSource(source);
}
}
Aggregations