Examples of existsSchema()


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

            String template     = elem.getChildText("isTemplate");
            String displayOrder = elem.getChildText("displayOrder");
            String schema = info.getChildText("schema");
            String id     = info.getChildText(Edit.Info.Elem.ID);

            if (template.equals("y") && schemaMan.existsSchema(schema)) {
                // heikki, GeoNovum: added displayOrder
                responseRecords.add(buildRecord(id, elem.getChildText("title"), schema, displayOrder));
            }
        }
        // heikki, Geonovum: then process them to ensure displayOrder is not empty and is unique
View Full Code Here

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

        }
      }
    }

    // -- test if schema already exists, if so then chuck a fit and exit
    if (scm.existsSchema(schema)) {
     throw new OperationAbortedEx("Schema already exists");
    }

    SchemaUtils su = new SchemaUtils();
    return su.addSchema(context, schema, fname, url, uuid, scm);
View Full Code Here

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

    String schema = Util.getParam(params, Params.SCHEMA);

    // see if the schema to be deleted actually exists
    Element response = new Element("response");
    if (!scm.existsSchema(schema)) {
      response.setAttribute("status", "error");
      response.setAttribute("message", "Schema does not exist");
      return response;
    }
View Full Code Here

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

        }
      }
    }

    // -- test if schema to be updated exists, if not then chuck a fit and exit
    if (!scm.existsSchema(schema)) {
     throw new OperationAbortedEx("Schema doesn't exist");
    }

    SchemaUtils su = new SchemaUtils();
    return su.updateSchema(context, schema, fname, url, uuid, scm);
View Full Code Here

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

        final String schemaPluginsDir = geonetworkDataDirectory.getSchemaPluginsDir().getPath();

        final String resourcePath = geonetworkDataDirectory.getResourcesDir().getPath();

        final SchemaManager schemaManager = _applicationContext.getBean(SchemaManager.class);
        if (syncReport.updateSchemaManager || !schemaManager.existsSchema("iso19139")) {

            new File(_dataDirectory, "config/schemaplugin-uri-catalog.xml").delete();
            final String schemaPluginsCatalogFile = new File(schemaPluginsDir, "/schemaplugin-uri-catalog.xml").getPath();
            deploySchema(webappDir, schemaPluginsDir);
View Full Code Here

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

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

        assertTrue(schemaManager.existsSchema("iso19139"));
        assertTrue(schemaManager.existsSchema("iso19115"));
        assertTrue(schemaManager.existsSchema("dublin-core"));

        _applicationContext.getBean(SearchManager.class).init(false, false, "", 100);
        _applicationContext.getBean(DataManager.class).init(createServiceContext(), false);
View Full Code Here

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

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

        assertTrue(schemaManager.existsSchema("iso19139"));
        assertTrue(schemaManager.existsSchema("iso19115"));
        assertTrue(schemaManager.existsSchema("dublin-core"));

        _applicationContext.getBean(SearchManager.class).init(false, false, "", 100);
        _applicationContext.getBean(DataManager.class).init(createServiceContext(), false);
View Full Code Here

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

                    schemaPluginsCatalogFile, schemaPluginsDir, "eng", "iso19139", true);
        }

        assertTrue(schemaManager.existsSchema("iso19139"));
        assertTrue(schemaManager.existsSchema("iso19115"));
        assertTrue(schemaManager.existsSchema("dublin-core"));

        _applicationContext.getBean(SearchManager.class).init(false, false, "", 100);
        _applicationContext.getBean(DataManager.class).init(createServiceContext(), false);

        String siteUuid = _dataDirectory.getName();
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.