use of org.olat.modules.qpool.ui.datasource.DefaultItemsSource 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.DefaultItemsSource 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.DefaultItemsSource 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());
}
use of org.olat.modules.qpool.ui.datasource.DefaultItemsSource 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