Examples of CourseEditorEnv


Examples of org.olat.course.editor.CourseEditorEnv

        "error.argtype.institutionalname", "solution.example.institutionalname.infunction"));
    String configInstname = (String)inStack[0];
    /*
     * expression check only if cev != null
     */
    CourseEditorEnv cev = getUserCourseEnv().getCourseEditorEnv();
    if (cev != null) {
      // return a valid value to continue with condition evaluation test
      return defaultValue();
    }
   
View Full Code Here

Examples of org.olat.course.editor.CourseEditorEnv

        "error.argtype.coursnodeidexpeted", "solution.example.node.infunction"));
    String nodeId = (String) inStack[0];
    /*
     * check reference integrity
     */
    CourseEditorEnv cev = getUserCourseEnv().getCourseEditorEnv();
    if (cev != null) {
      if (!cev.existsNode(nodeId)) { return handleException( new ArgumentParseException(ArgumentParseException.REFERENCE_NOT_FOUND, name, nodeId,
          "error.notfound.coursenodeid", "solution.copypastenodeid")); }
      if (!cev.isEnrollmentNode(nodeId)) { return handleException(new ArgumentParseException(ArgumentParseException.REFERENCE_NOT_FOUND, name,
          nodeId, "error.notenrollment.coursenodeid", "solution.chooseenrollment")); }
      // remember the reference to the node id for this condtion
      cev.addSoftReference("courseNodeId", nodeId);
      // return a valid value to continue with condition evaluation test
      return defaultValue();
    }

    /*
 
View Full Code Here

Examples of org.olat.course.editor.CourseEditorEnv

   */
  public Object call(Object[] inStack) {
    /*
     * expression check only if cev != null
     */
    CourseEditorEnv cev = getUserCourseEnv().getCourseEditorEnv();
    if (cev != null) {
      // return a valid value to continue with condition evaluation test
      return defaultValue();
    }

View Full Code Here

Examples of org.olat.course.editor.CourseEditorEnv

   * @param userCourseEnv
   */
  public ConditionInterpreter(UserCourseEnvironment userCourseEnv) {
    uce = userCourseEnv;
    //
    CourseEditorEnv cev = uce.getCourseEditorEnv();
    if (cev != null) {
      translator = new PackageTranslator(PACKAGE, cev.getEditorEnvLocale());
    }

    env = new Environment();

    // constants: add for user convenience
View Full Code Here

Examples of org.olat.course.editor.CourseEditorEnv

    if (!(inStack[0] instanceof String)) return handleException( new ArgumentParseException(ArgumentParseException.WRONG_ARGUMENT_FORMAT, name, "",
        "error.argtype.attributename", "solution.example.name.infunction"));
    String lang = (String) inStack[0];
    Locale locale;

    CourseEditorEnv cev = getUserCourseEnv().getCourseEditorEnv();
    if (cev != null) {
      locale = cev.getEditorEnvLocale();
    } else {
      IdentityEnvironment ienv = getUserCourseEnv().getIdentityEnvironment();
      locale = ienv.getLocale();
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.