Package org.olat.modules.glossary

Examples of org.olat.modules.glossary.GlossaryManager


   * @param keepSoftkey If true, no new softkey will be generated.
   * @param owner
   * @return
   */
  public static RepositoryEntry doImport(RepositoryEntryImportExport importExport, ICourse course, boolean keepSoftkey, Identity owner) {
    GlossaryManager gm = GlossaryManager.getInstance();
    GlossaryResource resource = gm.createGlossary();
    if (resource == null) {
      Tracing.logError("Error adding glossary directry during repository reference import: " + importExport.getDisplayName(),
          ImportGlossaryReferencesController.class);
      return null;
    }

    // unzip contents
    VFSContainer glossaryContainer = gm.getGlossaryRootFolder(resource);
    File fExportedFile = importExport.importGetExportedFile();
    if (fExportedFile.exists()) ZipUtil.unzip(new LocalFileImpl(fExportedFile), glossaryContainer);
    else Tracing.logWarn("The actual contents of the glossary were not found in the export.", ImportGlossaryReferencesController.class);

    // create repository entry
View Full Code Here

TOP

Related Classes of org.olat.modules.glossary.GlossaryManager

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.