Package org.fao.geonet.kernel

Examples of org.fao.geonet.kernel.SchemaManager.configure()


        String schemaCatalogueFile = dataDirectory.getConfigDir()+File.separator+Geonet.File.SCHEMA_PLUGINS_CATALOG;
        boolean createOrUpdateSchemaCatalog = handlerConfig.getMandatoryValue(Geonet.Config.SCHEMA_PLUGINS_CATALOG_UPDATE).equals("true");
        logger.info("      - Schema plugins directory: " + schemaPluginsDir);
        logger.info("      - Schema Catalog File     : " + schemaCatalogueFile);
        SchemaManager schemaMan = _applicationContext.getBean(SchemaManager.class);
        schemaMan.configure(_applicationContext, appPath, Resources.locateResourcesDir(context), schemaCatalogueFile,
                schemaPluginsDir, context.getLanguage(), handlerConfig.getMandatoryValue(Geonet.Config.PREFERRED_SCHEMA),
                createOrUpdateSchemaCatalog);

        //------------------------------------------------------------------------
        //--- initialize search and editing
View Full Code Here


            deploySchema(webappDir, schemaPluginsDir);

            _applicationContext.getBean(LuceneConfig.class).configure("WEB-INF/config-lucene.xml");
            SchemaManager.registerXmlCatalogFiles(webappDir, schemaPluginsCatalogFile);

            schemaManager.configure(_applicationContext, webappDir, resourcePath,
                    schemaPluginsCatalogFile, schemaPluginsDir, "eng", "iso19139", true);
        }

        assertTrue(schemaManager.existsSchema("iso19139"));
        assertTrue(schemaManager.existsSchema("iso19115"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.