use of org.olat.modules.qpool.ui.datasource.MyItemsSource in project OpenOLAT by OpenOLAT.
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.datasource.MyItemsSource 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.datasource.MyItemsSource in project openolat by klemens.
the class SelectItemController method updateOwnedGroups.
private void updateOwnedGroups(UserRequest ureq) {
if (ownedItemsCtrl == null) {
DefaultItemsSource source = new MyItemsSource(getIdentity(), ureq.getUserSession().getRoles(), "My");
source.getDefaultParams().setAuthor(getIdentity());
source.getDefaultParams().setFormat(restrictToFormat);
ownedItemsCtrl = new ItemListController(ureq, getWindowControl(), secCallback, source);
listenTo(ownedItemsCtrl);
}
ownedItemsCtrl.updateList();
mainVC.put("itemList", ownedItemsCtrl.getInitialComponent());
}
use of org.olat.modules.qpool.ui.datasource.MyItemsSource in project OpenOLAT by OpenOLAT.
the class SelectItemController method updateOwnedGroups.
private void updateOwnedGroups(UserRequest ureq) {
if (ownedItemsCtrl == null) {
DefaultItemsSource source = new MyItemsSource(getIdentity(), ureq.getUserSession().getRoles(), "My");
source.getDefaultParams().setAuthor(getIdentity());
source.getDefaultParams().setFormat(restrictToFormat);
ownedItemsCtrl = new ItemListController(ureq, getWindowControl(), secCallback, source);
listenTo(ownedItemsCtrl);
}
ownedItemsCtrl.updateList();
mainVC.put("itemList", ownedItemsCtrl.getInitialComponent());
}
Aggregations