Search in sources :

Example 1 with DefaultItemsSource

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;
}
Also used : DefaultItemsSource(org.olat.modules.qpool.ui.datasource.DefaultItemsSource) MarkedItemsSource(org.olat.modules.qpool.ui.datasource.MarkedItemsSource)

Example 2 with DefaultItemsSource

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());
}
Also used : DefaultItemsSource(org.olat.modules.qpool.ui.datasource.DefaultItemsSource) MyItemsSource(org.olat.modules.qpool.ui.datasource.MyItemsSource)

Example 3 with DefaultItemsSource

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());
}
Also used : DefaultItemsSource(org.olat.modules.qpool.ui.datasource.DefaultItemsSource) MyItemsSource(org.olat.modules.qpool.ui.datasource.MyItemsSource)

Example 4 with DefaultItemsSource

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;
}
Also used : DefaultItemsSource(org.olat.modules.qpool.ui.datasource.DefaultItemsSource) MarkedItemsSource(org.olat.modules.qpool.ui.datasource.MarkedItemsSource)

Aggregations

DefaultItemsSource (org.olat.modules.qpool.ui.datasource.DefaultItemsSource)4 MarkedItemsSource (org.olat.modules.qpool.ui.datasource.MarkedItemsSource)2 MyItemsSource (org.olat.modules.qpool.ui.datasource.MyItemsSource)2