Examples of extractUUID()


Examples of org.fao.geonet.kernel.DataManager.extractUUID()

    try {
      String schema = dm.autodetectSchema(record);
            if(log.isDebugEnabled())
                log.debug("getRecordInfo (schema): " + schema);

      String identif  = dm.extractUUID(schema, record);
      if (identif.length() == 0) {
        log.warning("Record doesn't have a uuid : "+ name);
        return null; // skip this one
      }
     
View Full Code Here

Examples of org.fao.geonet.kernel.DataManager.extractUUID()

          privileges.addContent(new Element("operation")
              .setAttribute("name", "featured"));

          if (isTemplate == MetadataType.METADATA) {
                        // Get the Metadata uuid if it's not a template.
                        uuid = dm.extractUUID(schema, md.get(index));
          } else if (isTemplate== MetadataType.SUB_TEMPLATE) {
              // Get subtemplate uuid if defined in @uuid at root
                        uuid = md.get(index).getAttributeValue("uuid");
          }
          validate = Util.getParam(params, Params.VALIDATE, "off")
View Full Code Here

Examples of org.fao.geonet.kernel.DataManager.extractUUID()

    //--- if the uuid does not exist and is not a template we generate it

    String uuid;
    if (metadataType == MetadataType.TEMPLATE)
    {
      uuid = dataMan.extractUUID(schema, xml);
      if (uuid.length() == 0) uuid = UUID.randomUUID().toString();
    }
    else uuid = UUID.randomUUID().toString();

    String uuidAction = Util.getParam(params, Params.UUID_ACTION,
View Full Code Here

Examples of org.fao.geonet.kernel.DataManager.extractUUID()

    DataManager   dm = gc.getBean(DataManager.class);

    //-----------------------------------------------------------------------
    //--- if the uuid does not exist we generate it

    String uuid = dm.extractUUID(schema, xml);

    if (uuid.length() == 0)
      uuid = UUID.randomUUID().toString();

    if (category.equals("_none_")) category = null;
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.