Search in sources :

Example 61 with NodeEditController

use of org.olat.course.editor.NodeEditController in project OpenOLAT by OpenOLAT.

the class ViteroCourseNode method createEditController.

@Override
public TabbableController createEditController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, ICourse course, UserCourseEnvironment userCourseEnv) {
    updateModuleConfigDefaults(false);
    CourseNode chosenNode = course.getEditorTreeModel().getCourseNode(userCourseEnv.getCourseEditorEnv().getCurrentCourseNodeId());
    // create edit controller
    ViteroEditController childTabCntrllr = new ViteroEditController(ureq, wControl, this, course, userCourseEnv);
    NodeEditController nodeEditCtr = new NodeEditController(ureq, wControl, course.getEditorTreeModel(), course, chosenNode, userCourseEnv, childTabCntrllr);
    nodeEditCtr.addControllerListener(childTabCntrllr);
    return nodeEditCtr;
}
Also used : NodeEditController(org.olat.course.editor.NodeEditController) ViteroEditController(org.olat.course.nodes.vitero.ViteroEditController)

Example 62 with NodeEditController

use of org.olat.course.editor.NodeEditController in project openolat by klemens.

the class VCCourseNode method createEditController.

@Override
public TabbableController createEditController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, ICourse course, UserCourseEnvironment userCourseEnv) {
    updateModuleConfigDefaults(false);
    CourseNode chosenNode = course.getEditorTreeModel().getCourseNode(userCourseEnv.getCourseEditorEnv().getCurrentCourseNodeId());
    // load and check configuration
    String providerId = getModuleConfiguration().getStringValue(CONF_PROVIDER_ID);
    VCProvider provider = providerId == null ? VCProviderFactory.createDefaultProvider() : VCProviderFactory.createProvider(providerId);
    TabbableDefaultController childTabCntrllr;
    if (provider != null) {
        VCConfiguration config = handleConfig(provider);
        // create room if configured to do it immediately
        if (config.isCreateMeetingImmediately()) {
            Long key = course.getResourceableId();
            // here, the config is empty in any case, thus there are no start and end dates
            provider.createClassroom(key + "_" + this.getIdent(), this.getShortName(), this.getLongTitle(), null, null, config);
        }
        // create edit controller
        childTabCntrllr = new VCEditController(ureq, wControl, this, course, userCourseEnv, provider, config);
    } else {
        // empty panel
        childTabCntrllr = new NoProviderController(ureq, wControl);
    }
    NodeEditController nodeEditCtr = new NodeEditController(ureq, wControl, course.getEditorTreeModel(), course, chosenNode, userCourseEnv, childTabCntrllr);
    nodeEditCtr.addControllerListener(childTabCntrllr);
    return nodeEditCtr;
}
Also used : NodeEditController(org.olat.course.editor.NodeEditController) VCEditController(de.bps.course.nodes.vc.VCEditController) CourseNode(org.olat.course.nodes.CourseNode) AbstractAccessableCourseNode(org.olat.course.nodes.AbstractAccessableCourseNode) TabbableDefaultController(org.olat.core.gui.control.generic.tabbable.TabbableDefaultController) VCProvider(de.bps.course.nodes.vc.provider.VCProvider) VCConfiguration(de.bps.course.nodes.vc.VCConfiguration) NoProviderController(de.bps.course.nodes.vc.NoProviderController)

Example 63 with NodeEditController

use of org.olat.course.editor.NodeEditController in project openolat by klemens.

the class ENCourseNode method createEditController.

/**
 * @see org.olat.course.nodes.CourseNode#createEditController(org.olat.core.gui.UserRequest,
 *      org.olat.core.gui.control.WindowControl, org.olat.course.ICourse)
 */
@Override
public TabbableController createEditController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, ICourse course, UserCourseEnvironment euce) {
    migrateConfig();
    ENEditController childTabCntrllr = new ENEditController(getModuleConfiguration(), ureq, wControl, this, course, euce);
    CourseNode chosenNode = course.getEditorTreeModel().getCourseNode(euce.getCourseEditorEnv().getCurrentCourseNodeId());
    return new NodeEditController(ureq, wControl, course.getEditorTreeModel(), course, chosenNode, euce, childTabCntrllr);
}
Also used : ENEditController(org.olat.course.nodes.en.ENEditController) NodeEditController(org.olat.course.editor.NodeEditController)

Example 64 with NodeEditController

use of org.olat.course.editor.NodeEditController in project openolat by klemens.

the class CheckListCourseNode method createEditController.

/**
 * @see org.olat.course.nodes.CourseNode#createEditController(org.olat.core.gui.UserRequest,
 *      org.olat.core.gui.control.WindowControl, org.olat.course.ICourse)
 */
@Override
public TabbableController createEditController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, ICourse course, UserCourseEnvironment euce) {
    updateModuleConfigDefaults(false);
    // only the precondition "access" can be configured till now
    CheckListEditController childTabCntrllr = new CheckListEditController(this, ureq, wControl, course, euce);
    CourseNode chosenNode = course.getEditorTreeModel().getCourseNode(euce.getCourseEditorEnv().getCurrentCourseNodeId());
    return new NodeEditController(ureq, wControl, course.getEditorTreeModel(), course, chosenNode, euce, childTabCntrllr);
}
Also used : NodeEditController(org.olat.course.editor.NodeEditController) CheckListEditController(org.olat.course.nodes.cl.ui.CheckListEditController)

Example 65 with NodeEditController

use of org.olat.course.editor.NodeEditController in project openolat by klemens.

the class BCCourseNode method createEditController.

/**
 * @see org.olat.course.nodes.CourseNode#createEditController(org.olat.core.gui.UserRequest,
 *      org.olat.core.gui.control.WindowControl, org.olat.course.ICourse)
 */
@Override
public TabbableController createEditController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, ICourse course, UserCourseEnvironment euce) {
    updateModuleConfigDefaults(false);
    BCCourseNodeEditController childTabCntrllr = new BCCourseNodeEditController(this, course, ureq, wControl, euce);
    CourseNode chosenNode = course.getEditorTreeModel().getCourseNode(euce.getCourseEditorEnv().getCurrentCourseNodeId());
    return new NodeEditController(ureq, wControl, course.getEditorTreeModel(), course, chosenNode, euce, childTabCntrllr);
}
Also used : NodeEditController(org.olat.course.editor.NodeEditController) BCCourseNodeEditController(org.olat.course.nodes.bc.BCCourseNodeEditController) BCCourseNodeEditController(org.olat.course.nodes.bc.BCCourseNodeEditController)

Aggregations

NodeEditController (org.olat.course.editor.NodeEditController)78 TabbableController (org.olat.core.gui.control.generic.tabbable.TabbableController)10 AbstractAccessableCourseNode (org.olat.course.nodes.AbstractAccessableCourseNode)8 CourseNode (org.olat.course.nodes.CourseNode)8 IQEditController (org.olat.course.nodes.iq.IQEditController)6 Condition (org.olat.course.condition.Condition)4 FeedNodeEditController (org.olat.course.nodes.feed.FeedNodeEditController)4 InfoCourseNodeEditController (org.olat.course.nodes.info.InfoCourseNodeEditController)4 ChecklistEditController (de.bps.course.nodes.cl.ChecklistEditController)2 DENEditController (de.bps.course.nodes.den.DENEditController)2 LLEditController (de.bps.course.nodes.ll.LLEditController)2 NoProviderController (de.bps.course.nodes.vc.NoProviderController)2 VCConfiguration (de.bps.course.nodes.vc.VCConfiguration)2 VCEditController (de.bps.course.nodes.vc.VCEditController)2 VCProvider (de.bps.course.nodes.vc.provider.VCProvider)2 List (java.util.List)2 DeliveryOptions (org.olat.core.gui.control.generic.iframe.DeliveryOptions)2 TabbableDefaultController (org.olat.core.gui.control.generic.tabbable.TabbableDefaultController)2 LTIEditController (org.olat.course.nodes.basiclti.LTIEditController)2 BCCourseNodeEditController (org.olat.course.nodes.bc.BCCourseNodeEditController)2