use of org.olat.modules.qpool.ui.datasource.PoolItemsSource in project openolat by klemens.
the class ItemListMySharesController method doSelectPool.
private void doSelectPool(UserRequest ureq, Long poolKey) {
Pool myPool = null;
for (Pool pool : myPools) {
if (poolKey.equals(pool.getKey())) {
myPool = pool;
}
}
if (myPool == null) {
updateSource(new EmptyItemsSource());
} else {
PoolItemsSource source = new PoolItemsSource(getIdentity(), ureq.getUserSession().getRoles(), myPool);
source.getDefaultParams().setFormat(restrictToFormat);
updateSource(source);
}
}
Aggregations