use of org.olat.modules.qpool.ui.datasource.MarkedItemsSource in project OpenOLAT by OpenOLAT.
the class SelectItemController method updateMarkedItems.
private int updateMarkedItems(UserRequest ureq) {
if (markedItemsCtrl == null) {
DefaultItemsSource source = new MarkedItemsSource(getIdentity(), ureq.getUserSession().getRoles(), "Fav");
source.getDefaultParams().setFavoritOnly(true);
source.getDefaultParams().setFormat(restrictToFormat);
markedItemsCtrl = new ItemListController(ureq, getWindowControl(), secCallback, source);
listenTo(markedItemsCtrl);
}
int numOfMarkedItems = markedItemsCtrl.updateList();
mainVC.put("itemList", markedItemsCtrl.getInitialComponent());
return numOfMarkedItems;
}
use of org.olat.modules.qpool.ui.datasource.MarkedItemsSource in project openolat by klemens.
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;
}
use of org.olat.modules.qpool.ui.datasource.MarkedItemsSource 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;
}
use of org.olat.modules.qpool.ui.datasource.MarkedItemsSource in project openolat by klemens.
the class SelectItemController method updateMarkedItems.
private int updateMarkedItems(UserRequest ureq) {
if (markedItemsCtrl == null) {
DefaultItemsSource source = new MarkedItemsSource(getIdentity(), ureq.getUserSession().getRoles(), "Fav");
source.getDefaultParams().setFavoritOnly(true);
source.getDefaultParams().setFormat(restrictToFormat);
markedItemsCtrl = new ItemListController(ureq, getWindowControl(), secCallback, source);
listenTo(markedItemsCtrl);
}
int numOfMarkedItems = markedItemsCtrl.updateList();
mainVC.put("itemList", markedItemsCtrl.getInitialComponent());
return numOfMarkedItems;
}
Aggregations