* @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