Search in sources :

Example 16 with QuestionsController

use of org.olat.modules.qpool.ui.QuestionsController in project OpenOLAT by OpenOLAT.

the class MyTaxonomyLevelTreeNode method getController.

@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
    if (questionsCtrl == null) {
        QuestionItemsSource source = new MyTaxonomyLevelItemsSource(ureq.getIdentity(), ureq.getUserSession().getRoles(), taxonomyLevel);
        OLATResourceable ores = OresHelper.createOLATResourceableInstanceWithoutCheck(MY_TAX_LEVEL + "_" + taxonomyLevel.getIdentifier(), taxonomyLevel.getKey());
        WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ores, null, wControl, true);
        questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, MY_TAX_LEVEL + taxonomyLevel.getKey(), false);
    } else {
        questionsCtrl.updateSource();
    }
    return questionsCtrl;
}
Also used : MyTaxonomyLevelItemsSource(org.olat.modules.qpool.ui.datasource.MyTaxonomyLevelItemsSource) OLATResourceable(org.olat.core.id.OLATResourceable) QuestionItemsSource(org.olat.modules.qpool.ui.QuestionItemsSource) WindowControl(org.olat.core.gui.control.WindowControl) QuestionsController(org.olat.modules.qpool.ui.QuestionsController)

Example 17 with QuestionsController

use of org.olat.modules.qpool.ui.QuestionsController in project OpenOLAT by OpenOLAT.

the class ReviewTreeNode method getController.

@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
    if (questionsCtrl == null) {
        String resName = REVIEW + "_" + taxonomyLevel.getIdentifier();
        OLATResourceable ores = OresHelper.createOLATResourceableInstanceWithoutCheck(resName, taxonomyLevel.getKey());
        WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ores, null, wControl, true);
        questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, REVIEW + taxonomyLevel.getKey(), false);
    } else {
        questionsCtrl.updateSource();
    }
    reloadCount();
    return questionsCtrl;
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) WindowControl(org.olat.core.gui.control.WindowControl) QuestionsController(org.olat.modules.qpool.ui.QuestionsController)

Example 18 with QuestionsController

use of org.olat.modules.qpool.ui.QuestionsController in project OpenOLAT by OpenOLAT.

the class WithoutTaxonomyLevelTreeNode method getController.

@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
    if (questionsCtrl == null) {
        QuestionItemsSource source = new WithoutTaxonomyLevelItemSource(ureq.getIdentity(), ureq.getUserSession().getRoles(), WITHOUT_TAXONOMY_LEVEL);
        WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ORES, null, wControl, true);
        questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, WITHOUT_TAXONOMY_LEVEL, true);
    } else {
        questionsCtrl.updateSource();
    }
    return questionsCtrl;
}
Also used : WithoutTaxonomyLevelItemSource(org.olat.modules.qpool.ui.datasource.WithoutTaxonomyLevelItemSource) QuestionItemsSource(org.olat.modules.qpool.ui.QuestionItemsSource) WindowControl(org.olat.core.gui.control.WindowControl) QuestionsController(org.olat.modules.qpool.ui.QuestionsController)

Example 19 with QuestionsController

use of org.olat.modules.qpool.ui.QuestionsController in project openolat by klemens.

the class ReviewTreeNode method getController.

@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
    if (questionsCtrl == null) {
        String resName = REVIEW + "_" + taxonomyLevel.getIdentifier();
        OLATResourceable ores = OresHelper.createOLATResourceableInstanceWithoutCheck(resName, taxonomyLevel.getKey());
        WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ores, null, wControl, true);
        questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, REVIEW + taxonomyLevel.getKey(), false);
    } else {
        questionsCtrl.updateSource();
    }
    reloadCount();
    return questionsCtrl;
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) WindowControl(org.olat.core.gui.control.WindowControl) QuestionsController(org.olat.modules.qpool.ui.QuestionsController)

Example 20 with QuestionsController

use of org.olat.modules.qpool.ui.QuestionsController in project openolat by klemens.

the class WithoutAuthorTreeNode method getController.

@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
    if (questionsCtrl == null) {
        QuestionItemsSource source = new WithoutAuthorItemSource(ureq.getIdentity(), ureq.getUserSession().getRoles(), WITHOUT_AUTHOR);
        WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ORES, null, wControl, true);
        questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, WITHOUT_AUTHOR, true);
    } else {
        questionsCtrl.updateSource();
    }
    return questionsCtrl;
}
Also used : WithoutAuthorItemSource(org.olat.modules.qpool.ui.datasource.WithoutAuthorItemSource) QuestionItemsSource(org.olat.modules.qpool.ui.QuestionItemsSource) WindowControl(org.olat.core.gui.control.WindowControl) QuestionsController(org.olat.modules.qpool.ui.QuestionsController)

Aggregations

WindowControl (org.olat.core.gui.control.WindowControl)22 QuestionsController (org.olat.modules.qpool.ui.QuestionsController)22 QuestionItemsSource (org.olat.modules.qpool.ui.QuestionItemsSource)18 OLATResourceable (org.olat.core.id.OLATResourceable)6 AllItemsSource (org.olat.modules.qpool.ui.datasource.AllItemsSource)2 CollectionOfItemsSource (org.olat.modules.qpool.ui.datasource.CollectionOfItemsSource)2 FinalItemsSource (org.olat.modules.qpool.ui.datasource.FinalItemsSource)2 MarkedItemsSource (org.olat.modules.qpool.ui.datasource.MarkedItemsSource)2 MyItemsSource (org.olat.modules.qpool.ui.datasource.MyItemsSource)2 MyTaxonomyLevelItemsSource (org.olat.modules.qpool.ui.datasource.MyTaxonomyLevelItemsSource)2 PoolItemsSource (org.olat.modules.qpool.ui.datasource.PoolItemsSource)2 SharedItemsSource (org.olat.modules.qpool.ui.datasource.SharedItemsSource)2 WithoutAuthorItemSource (org.olat.modules.qpool.ui.datasource.WithoutAuthorItemSource)2 WithoutTaxonomyLevelItemSource (org.olat.modules.qpool.ui.datasource.WithoutTaxonomyLevelItemSource)2