Examples of contractElements()


Examples of org.fao.geonet.kernel.EditLib.contractElements()

       
        setMetadataIntoSession(session,(Element)md.clone(), id);
       
        // --- remove editing info
        editLib.removeEditingInfo(md);
        editLib.contractElements(md);
       
        return (Element) md.detach();
    }
    /**
     * TODO javadoc.
View Full Code Here

Examples of org.fao.geonet.kernel.EditLib.contractElements()

    Element md = (Element)realMd.clone();

    //--- remove editing info
        EditLib editLib = dataManager.getEditLib();
    editLib.removeEditingInfo(md);
    editLib.contractElements(md);
        String parentUuid = null;
        md = dataManager.updateFixedInfo(schema, Optional.of(Integer.valueOf(id)), null, md, parentUuid, UpdateDatestamp.NO, context);

    //--- do the validation on the metadata
    return dataManager.doValidate(session, schema, id, md, lang, false).one();
View Full Code Here

Examples of org.fao.geonet.kernel.EditLib.contractElements()

        if (el != null) {
            el.setAttribute(new Attribute(name, ""));
        }

        editLib.contractElements(md);
        String parentUuid = null;
    md = dataManager.updateFixedInfo(schema, Optional.of(Integer.valueOf(id)), null, md, parentUuid, UpdateDatestamp.NO, context);
        String changeDate = null;
        xmlSerializer.update(id, md, changeDate, false, null, context);
View Full Code Here

Examples of org.fao.geonet.kernel.EditLib.contractElements()

    //--- remove editing info added by previous call
    editLib.removeEditingInfo(md);

    el.removeAttribute(name);

    editLib.contractElements(md);
        String parentUuid = null;
        md = dataManager.updateFixedInfo(schema, Optional.of(Integer.valueOf(id)), null, md, parentUuid, UpdateDatestamp.NO, context);

        String changeDate = null;
        xmlSerializer.update(id, md, changeDate, false, null, context);
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.