Package org.olat.course.condition

Examples of org.olat.course.condition.Condition


   */
  @Override
  protected void event(UserRequest ureq, Controller source, Event event) {
    if (source == accessibilityCondContr) {
      if (event == Event.CHANGED_EVENT) {
        Condition cond = accessibilityCondContr.getCondition();
        courseNode.setPreConditionAccess(cond);
        fireEvent(ureq, NodeEditController.NODECONFIG_CHANGED_EVENT);
      }
    } else if (source == llFormContr) {
      moduleConfiguration = llFormContr.getModuleConfiguration();
View Full Code Here


  /**
   * @return Returns the preConditionDownloaders.
   */
  public Condition getPreConditionDownloaders() {
    if (preConditionDownloaders == null) {
      preConditionDownloaders = new Condition();
    }
    preConditionDownloaders.setConditionId("downloaders");
    return preConditionDownloaders;
  }
View Full Code Here

  /**
   * @return Returns the preConditionUploaders.
   */
  public Condition getPreConditionUploaders() {
    if (preConditionUploaders == null) {
      preConditionUploaders = new Condition();
    }
    preConditionUploaders.setConditionId("uploaders");
    return preConditionUploaders;
  }
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());
View Full Code Here

      if (event == Event.DONE_EVENT) {
        fireEvent(ureq, NodeEditController.NODECONFIG_CHANGED_EVENT);
      }
    } else if (source == accessCondContr) {
      if (event == Event.CHANGED_EVENT) {
        Condition cond = accessCondContr.getCondition();
        calCourseNode.setPreConditionAccess(cond);
        fireEvent(ureq, NodeEditController.NODECONFIG_CHANGED_EVENT);
      }else if(event instanceof BGContextEvent) {
        //fired by condition edit controllers if areas / groups created
        //updated other condition controllers -> e.g. change create link to choose
        editCondContr.updateGroupsAndAreasCheck();
      }
    } else if (source == editCondContr) {
      if (event == Event.CHANGED_EVENT) {
        Condition cond = editCondContr.getCondition();
        calCourseNode.setPreConditionEdit(cond);
        fireEvent(ureq, NodeEditController.NODECONFIG_CHANGED_EVENT);
      }else if(event instanceof BGContextEvent) {
        //fired by condition edit controllers if areas / groups created
        //updated other condition controllers -> e.g. change create link to choose
View Full Code Here

    CourseGroupManager groupMgr = course.getCourseEnvironment().getCourseGroupManager();
    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());
View Full Code Here

   */
  @Override
  public void event(UserRequest ureq, Controller source, Event event) {
    if (source == accessibilityCondContr) {
      if (event == Event.CHANGED_EVENT) {
        Condition cond = accessibilityCondContr.getCondition();
        msNode.setPreConditionAccess(cond);
        fireEvent(ureq, NodeEditController.NODECONFIG_CHANGED_EVENT);
      }
    } else if (source == modConfigController) {
      if (event == Event.CANCELLED_EVENT) {
View Full Code Here

    super(ureq, wControl);
    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");
View Full Code Here

   */
  @Override
  protected void event(UserRequest ureq, Controller source, Event event) {
    if(source == accessibilityCondContr) {
      if (event == Event.CHANGED_EVENT) {
        Condition cond = accessibilityCondContr.getCondition();
        courseNode.setPreConditionAccess(cond);
        fireEvent(ureq, NodeEditController.NODECONFIG_CHANGED_EVENT);
      }
    } else if(source == checklistFormContr && event == Event.CHANGED_EVENT) {
      ChecklistManager.getInstance().saveChecklist(this.checklist);
View Full Code Here

    myContent = this.createVelocityContainer("edit");   

    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.Condition

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.