Package org.olat.repository.handlers

Examples of org.olat.repository.handlers.CourseHandler


   
    String translatedTypeName = null;
    String typeIntro = null;
    addCallback = new RepositoryAddCallback(this);
    if (actionAddCommand.equals(ACTION_ADD_COURSE)) {
      typeToAdd = new CourseHandler();
      addController = typeToAdd.getAddController(addCallback, CourseHandler.PROCESS_IMPORT, ureq, getWindowControl());
      translatedTypeName = translator.translate("add.course");
      typeIntro = translator.translate("add.course.intro");
    }
    else if (actionAddCommand.equals(ACTION_ADD_DOC)) {
      typeToAdd = new WebDocumentHandler();
      addController = typeToAdd.getAddController(addCallback, null, ureq, getWindowControl());
      translatedTypeName = translator.translate("add.webdoc");
      typeIntro = translator.translate("add.webdoc.intro");
    }
    else if (actionAddCommand.equals(ACTION_ADD_TEST)) {
      typeToAdd = new QTITestHandler();
      addController = typeToAdd.getAddController(addCallback, QTIHandler.PROCESS_UPLOAD, ureq, getWindowControl());
      translatedTypeName = translator.translate("add.test");
      typeIntro = translator.translate("add.test.intro");
    }
    else if (actionAddCommand.equals(ACTION_ADD_SURVEY)) {
      typeToAdd = new QTISurveyHandler();
      addController = typeToAdd.getAddController(addCallback, QTIHandler.PROCESS_UPLOAD, ureq, getWindowControl());
      translatedTypeName = translator.translate("add.survey");
      typeIntro = translator.translate("add.survey.intro");
    }
    else if (actionAddCommand.equals(ACTION_ADD_CP)) {
      typeToAdd = new ImsCPHandler();
      addController = typeToAdd.getAddController(addCallback, ImsCPHandler.PROCESS_IMPORT, ureq, getWindowControl());
      translatedTypeName = translator.translate("add.cp");
      typeIntro = translator.translate("add.cp.intro");
    }
    else if (actionAddCommand.equals(ACTION_ADD_SCORM)) {
      typeToAdd = new SCORMCPHandler();
      addController = typeToAdd.getAddController(addCallback, null, ureq, getWindowControl());
      translatedTypeName = translator.translate("add.scorm");
      typeIntro = translator.translate("add.scorm.intro");
    }
    else if (actionAddCommand.equals(ACTION_ADD_WIKI)) {
      typeToAdd = new WikiHandler();
      addController = typeToAdd.getAddController(addCallback, null, ureq, getWindowControl());
      translatedTypeName = translator.translate("add.wiki");
      typeIntro = translator.translate("add.wiki.intro");
    }
    else if (actionAddCommand.equals(ACTION_ADD_PODCAST)) {
      typeToAdd = new PodcastHandler();
      addController = typeToAdd.getAddController(addCallback, null, ureq, getWindowControl());
      translatedTypeName = translator.translate("add.podcast");
      typeIntro = translator.translate("add.podcast.intro");
    }
    else if (actionAddCommand.equals(ACTION_ADD_BLOG)) {
      typeToAdd = new BlogHandler();
      addController = typeToAdd.getAddController(addCallback, null, ureq, getWindowControl());
      translatedTypeName = translator.translate("add.blog");
      typeIntro = translator.translate("add.blog.intro");
    }
    else if (actionAddCommand.equals(ACTION_ADD_GLOSSARY)) {
      typeToAdd = new GlossaryHandler();
      addController = typeToAdd.getAddController(addCallback, null, ureq, getWindowControl());
      translatedTypeName = translator.translate("add.glossary");
      typeIntro = translator.translate("add.glossary.intro");
    }
    else if (actionAddCommand.equals(ACTION_NEW_COURSE)) {
      typeToAdd = new CourseHandler();
      addController = typeToAdd.getAddController(addCallback, CourseHandler.PROCESS_CREATENEW, ureq, getWindowControl());
      translatedTypeName = translator.translate("new.course");
      typeIntro = translator.translate("new.course.intro");
    }
    else if (actionAddCommand.equals(ACTION_NEW_TEST)) {
View Full Code Here

TOP

Related Classes of org.olat.repository.handlers.CourseHandler

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.