Package org.fao.geonet.kernel.schema

Examples of org.fao.geonet.kernel.schema.SchemaPlugin


    }
  }

    public static SchemaPlugin getSchemaPlugin(ServiceContext context, String schemaIdentifier) {
        String schemaBeanIdentifier = schemaIdentifier + "SchemaPlugin";
        SchemaPlugin schemaPlugin = null;
        try {
            schemaPlugin = (SchemaPlugin) context.getApplicationContext().getBean(schemaBeanIdentifier);

            String iso19139SchemaIdentifier = "iso19139";
            if (schemaPlugin == null && schemaIdentifier.startsWith(iso19139SchemaIdentifier)){
View Full Code Here


            md = dm.getMetadata(context, id, forEditing, withValidationErrors,
                    keepXlinkAttributes);
        }

        String schemaIdentifier = dm.getMetadataSchema(id);
        SchemaPlugin instance = SchemaManager.getSchemaPlugin(context, schemaIdentifier);
        AssociatedResourcesSchemaPlugin schemaPlugin = null;
        if (instance instanceof AssociatedResourcesSchemaPlugin) {
            schemaPlugin = (AssociatedResourcesSchemaPlugin) instance;
        }
View Full Code Here

    protected boolean updatedLocalizedTextElement(Element md, String schema,
                                                  String ref, String val, EditLib editLib) {
        if (ref.startsWith("lang")) {
            if (val.length() > 0) {

                SchemaPlugin schemaPlugin = SchemaManager.getSchemaPlugin(context, schema);
                if (schemaPlugin instanceof MultilingualSchemaPlugin) {
                    String[] ids = ref.split("_");
                    // --- search element in current parent
                    Element parent = editLib.findElement(md, ids[2]);
                    String language = ids[1];
View Full Code Here

TOP

Related Classes of org.fao.geonet.kernel.schema.SchemaPlugin

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.