use of org.olat.modules.qpool.ui.datasource.EmptyItemsSource in project openolat by klemens.
the class ItemListMyCompetencesController method doSelectLevel.
private void doSelectLevel(UserRequest ureq, String levelKey) {
TaxonomyLevel level = qpoolTaxonomyTreeBuilder.getTaxonomyLevel(levelKey);
if (level == null) {
updateSource(new EmptyItemsSource());
} else {
FinalItemsSource source = new FinalItemsSource(getIdentity(), ureq.getUserSession().getRoles(), level);
source.getDefaultParams().setFormat(restrictToFormat);
updateSource(source);
}
}
use of org.olat.modules.qpool.ui.datasource.EmptyItemsSource in project OpenOLAT by OpenOLAT.
the class ItemListMyCompetencesController method doSelectLevel.
private void doSelectLevel(UserRequest ureq, String levelKey) {
TaxonomyLevel level = qpoolTaxonomyTreeBuilder.getTaxonomyLevel(levelKey);
if (level == null) {
updateSource(new EmptyItemsSource());
} else {
FinalItemsSource source = new FinalItemsSource(getIdentity(), ureq.getUserSession().getRoles(), level);
source.getDefaultParams().setFormat(restrictToFormat);
updateSource(source);
}
}
use of org.olat.modules.qpool.ui.datasource.EmptyItemsSource in project OpenOLAT by OpenOLAT.
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);
}
}
use of org.olat.modules.qpool.ui.datasource.EmptyItemsSource in project OpenOLAT by OpenOLAT.
the class ItemListMySharesController method doSelectBusinessGroup.
private void doSelectBusinessGroup(UserRequest ureq, Long businessGroupKey) {
BusinessGroup myGroup = null;
for (BusinessGroup group : myGroups) {
if (businessGroupKey.equals(group.getKey())) {
myGroup = group;
}
}
if (myGroup == null) {
updateSource(new EmptyItemsSource());
} else {
SharedItemsSource source = new SharedItemsSource(myGroup, getIdentity(), ureq.getUserSession().getRoles(), false);
source.setRestrictToFormat(restrictToFormat);
updateSource(source);
}
}
use of org.olat.modules.qpool.ui.datasource.EmptyItemsSource in project OpenOLAT by OpenOLAT.
the class ItemListMyListsController method doSelectCollection.
private void doSelectCollection(UserRequest ureq, Long collectionKey) {
QuestionItemCollection myCollection = null;
for (QuestionItemCollection coll : myCollections) {
if (collectionKey.equals(coll.getKey())) {
myCollection = coll;
}
}
if (myCollection == null) {
updateSource(new EmptyItemsSource());
} else {
CollectionOfItemsSource source = new CollectionOfItemsSource(myCollection, getIdentity(), ureq.getUserSession().getRoles());
source.setRestrictToFormat(restrictToFormat);
updateSource(source);
}
}
Aggregations