Package org.openmeetings.app.installation

Examples of org.openmeetings.app.installation.ImportInitvalues


          if (cmdl.hasOption("file")) {
            File backup = checkRestoreFile(file);
            dropDB(connectionProperties);
           
            shutdownScheduledJobs(ctxName);
            ImportInitvalues importInit = getApplicationContext(ctxName).getBean(ImportInitvalues.class);
            importInit.loadSystem(langPath, cfg, force);
            restoreOm(ctxName, backup);
          } else {
            AdminUserDetails admin = checkAdminDetails(ctxName, langPath);
            dropDB(connectionProperties);
           
            shutdownScheduledJobs(ctxName);
            ImportInitvalues importInit = getApplicationContext(ctxName).getBean(ImportInitvalues.class);
            importInit.loadAll(langPath, cfg, admin.login, admin.pass, admin.email, admin.group, admin.tz, force);
          }         
         
          File installerFile = new File(new File(omHome, ScopeApplicationAdapter.configDirName), InstallationDocumentHandler.installFileName);
          InstallationDocumentHandler.getInstance().createDocument(installerFile.getAbsolutePath(), 3);
        } catch(Exception e) {
View Full Code Here


      if (checkPassword(admin.pass)) {
        System.out.println("Password was not provided, or too short, should be at least " + InstallationConfig.USER_PASSWORD_MINIMUM_LENGTH + " character long.");
        System.exit(1);
      }
    }
    ImportInitvalues importInit = getApplicationContext(ctxName).getBean(ImportInitvalues.class);
    Map<String, String> tzMap = ImportHelper.getAllTimeZones(importInit.getTimeZones(langPath));
    admin.tz = null;
    if (cmdl.hasOption("tz")) {
      admin.tz = cmdl.getOptionValue("tz");
      admin.tz = tzMap.containsKey(admin.tz) ? admin.tz : null;
    }
View Full Code Here

TOP

Related Classes of org.openmeetings.app.installation.ImportInitvalues

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.