Package org.fao.geonet.lib

Examples of org.fao.geonet.lib.DbLib


        final long count = settingRepository.count();
        if (count == 0) {
            try {
                // import data from init files
                List<Pair<String, String>> importData = (List) context.getApplicationContext().getBean("initial-data");
                    final DbLib dbLib = new DbLib();
                    for (Pair<String, String> pair : importData) {
                        final ServletContext servletContext = context.getServlet().getServletContext();
                        final String appPath = context.getAppPath();
                        final String filePath = pair.one();
                        final String filePrefix = pair.two();
                        Log.warning(Geonet.DB, "Executing SQL from: " + filePath + " " + filePrefix);
                        dbLib.insertData(servletContext, context, appPath, filePath, filePrefix);
                    }
                String siteUuid = UUID.randomUUID().toString();
                context.getBean(SettingManager.class).setSiteUuid(siteUuid);

                // Reload services which may be defined in
View Full Code Here

TOP

Related Classes of org.fao.geonet.lib.DbLib

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.