Package org.olat.course.condition

Examples of org.olat.course.condition.ConditionEditController


    // Visibility and no-access explanation component   
    visibilityVc = this.createVelocityContainer("visibilityedit");

    // Visibility precondition
    Condition visibCondition = luNode.getPreConditionVisibility();
    visibilityCondContr = new ConditionEditController(ureq, getWindowControl(), groupMgr, visibCondition,
        "visibilityConditionForm", AssessmentHelper.getAssessableNodes(editorModel, luNode), euce);
    //set this useractivity logger for the visibility condition controller
    this.listenTo(visibilityCondContr);
    visibilityVc.put("visibilityCondition", visibilityCondContr.getInitialComponent());
View Full Code Here


    scorevarform.addListener(this);
    cpConfigurationVc.put("scorevarform", scorevarform);

    // Accessibility precondition
    Condition accessCondition = scormNode.getPreConditionAccess();
    accessibilityCondContr = new ConditionEditController(ureq, getWindowControl(), course.getCourseEnvironment().getCourseGroupManager(),
        accessCondition, "accessabilityConditionForm",
        AssessmentHelper.getAssessableNodes(course.getEditorTreeModel(), scormNode), euce);   
    this.listenTo(accessibilityCondContr);

    main.setContent(cpConfigurationVc);
View Full Code Here

    CourseGroupManager groupMgr = course.getCourseEnvironment().getCourseGroupManager();
    CourseEditorTreeModel editorModel = course.getEditorTreeModel();
    //Accessibility precondition
    Condition accessCondition = courseNode.getPreConditionAccess();
    accessibilityCondContr = new ConditionEditController(ureq, getWindowControl(), groupMgr, accessCondition, "accessabilityConditionForm",
        AssessmentHelper.getAssessableNodes(editorModel, tuCourseNode), euce);   
    this.listenTo(accessibilityCondContr);

    // Enable preview button only if node configuration is valid
    if (!(tuCourseNode.isConfigValid().isError())) myContent.contextPut("showPreviewButton", Boolean.TRUE);
View Full Code Here

    cpMenuForm.addListener(this);
    cpConfigurationVc.put("cpMenuForm", cpMenuForm);

    // Accessibility precondition
    Condition accessCondition = cpNode.getPreConditionAccess();
    accessibilityCondContr = new ConditionEditController(ureq, getWindowControl(), course.getCourseEnvironment().getCourseGroupManager(),
        accessCondition, "accessabilityConditionForm", AssessmentHelper.getAssessableNodes(course.getEditorTreeModel(), cpNode), euce);   
    listenTo(accessibilityCondContr);

    main.setContent(cpConfigurationVc);
  }
View Full Code Here

    myContent.put(configForm);

    // not needed: setInitialComponent(myContent);
    // Accessibility precondition
    Condition accessCondition = courseNode.getPreConditionAccess();
    accessibilityCondContr = new ConditionEditController(ureq, getWindowControl(), course.getCourseEnvironment().getCourseGroupManager(),
        accessCondition, "accessabilityConditionForm", AssessmentHelper.getAssessableNodes(course
            .getEditorTreeModel(), coCourseNode),euce);   
    this.listenTo(accessibilityCondContr);

    main.setContent(myContent);
View Full Code Here

    this.courseNode = courseNode;

    editVc = this.createVelocityContainer("edit");

    Condition accessCondition = courseNode.getPreConditionAccess();
    accessibilityCondContr = new ConditionEditController(ureq, wControl, course.getCourseEnvironment().getCourseGroupManager(),
        accessCondition, "accessabilityConditionForm", AssessmentHelper.getAssessableNodes(course.getEditorTreeModel(), courseNode),
        userCourseEnv);
    this.listenTo(accessibilityCondContr);

    llFormContr = new LLEditForm(ureq, getWindowControl(), this.moduleConfiguration);
View Full Code Here

    editAccessVc = createVelocityContainer("edit_access");
    CourseGroupManager groupMgr = course.getCourseEnvironment().getCourseGroupManager();
    CourseEditorTreeModel editorModel = course.getEditorTreeModel();
    // Accessibility precondition
    Condition accessCondition = calCourseNode.getPreConditionAccess();
    accessCondContr = new ConditionEditController(ureq, getWindowControl(), groupMgr, accessCondition, "accessConditionForm",
        AssessmentHelper.getAssessableNodes(editorModel, calCourseNode), euce);
    this.listenTo(accessCondContr);
    editAccessVc.put("readerCondition", accessCondContr.getInitialComponent());

    // cal read / write preconditions
    Condition editCondition = calCourseNode.getPreConditionEdit();
    editCondContr = new ConditionEditController(ureq, getWindowControl(), groupMgr, editCondition, "editConditionForm", AssessmentHelper
        .getAssessableNodes(editorModel, calCourseNode), euce);
    listenTo(editCondContr);
    editAccessVc.put("editCondition", editCondContr.getInitialComponent());

    displayForm = new DisplayConfigTabForm(moduleConfiguration, ureq, wControl);
View Full Code Here

    UserNodeAuditManager auditManager = course.getCourseEnvironment().getAuditManager();
    CourseEditorTreeModel editorModel = course.getEditorTreeModel();

    // Accessibility precondition
    Condition accessCondition = msNode.getPreConditionAccess();
    accessibilityCondContr = new ConditionEditController(ureq, getWindowControl(), groupMgr, accessCondition, "accessabilityConditionForm",
        AssessmentHelper.getAssessableNodes(editorModel, msNode), euce);   
    this.listenTo(accessibilityCondContr);

    modConfigController = new MSEditFormController(ureq, wControl, msNode.getModuleConfiguration());
    listenTo(modConfigController);
View Full Code Here

    this.course = course;
    this.courseNode = checklistCourseNode;
    this.checklist = courseNode.loadOrCreateChecklist(this.course.getCourseEnvironment().getCoursePropertyManager());

    Condition accessCondition = courseNode.getPreConditionAccess();
    accessibilityCondContr = new ConditionEditController(ureq, wControl, course.getCourseEnvironment().getCourseGroupManager(),
        accessCondition, "accessabilityConditionForm", AssessmentHelper.getAssessableNodes(course.getEditorTreeModel(), courseNode), euce);
    this.listenTo(accessibilityCondContr);
   
    editVc = this.createVelocityContainer("edit");
    manageCheckpointsButton = LinkFactory.createButton("manage", editVc, this);
View Full Code Here

    CourseGroupManager groupMgr = course.getCourseEnvironment().getCourseGroupManager();
    CourseEditorTreeModel editorModel = course.getEditorTreeModel();
    // Reader precondition
    Condition readerCondition = foNode.getPreConditionReader();
    readerCondContr = new ConditionEditController(ureq, getWindowControl(), groupMgr, readerCondition, "readerConditionForm",
        AssessmentHelper.getAssessableNodes(editorModel, forumNode), euce);   
    this.listenTo(readerCondContr);
    myContent.put("readerCondition", readerCondContr.getInitialComponent());

    // Poster precondition
    Condition posterCondition = foNode.getPreConditionPoster();
    posterCondContr = new ConditionEditController(ureq, getWindowControl(), groupMgr, posterCondition, "posterConditionForm",
        AssessmentHelper.getAssessableNodes(editorModel, forumNode), euce);   
    this.listenTo(posterCondContr);
    myContent.put("posterCondition", posterCondContr.getInitialComponent());

    // Moderator precondition
    Condition moderatorCondition = foNode.getPreConditionModerator();
    moderatorCondContr = new ConditionEditController(ureq, getWindowControl(), groupMgr, moderatorCondition, "moderatorConditionForm",
        AssessmentHelper.getAssessableNodes(editorModel, forumNode), euce);   
    this.listenTo(moderatorCondContr);
    myContent.put("moderatorCondition", moderatorCondContr.getInitialComponent());
  }
View Full Code Here

TOP

Related Classes of org.olat.course.condition.ConditionEditController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.