Examples of replaceMetadata()


Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

            prodMet.addMetadata(CoreMetKeys.FILE_LOCATION, new File(
                ingestUrl.getFile()).getCanonicalPath());
            ingester.ingest(new URL("http://localhost:" + FM_PORT), new File(
                refUrl.getFile()), prodMet);
           
            prodMet.replaceMetadata(CoreMetKeys.PRODUCT_NAME, "TestTypeFile");
            prodMet.replaceMetadata(CoreMetKeys.PRODUCT_TYPE, "TestType");
            ingester.ingest(new URL("http://localhost:" + FM_PORT), new File(
                refUrl.getFile()), prodMet);
        } catch (Exception e) {
            fail(e.getMessage());
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

                ingestUrl.getFile()).getCanonicalPath());
            ingester.ingest(new URL("http://localhost:" + FM_PORT), new File(
                refUrl.getFile()), prodMet);
           
            prodMet.replaceMetadata(CoreMetKeys.PRODUCT_NAME, "TestTypeFile");
            prodMet.replaceMetadata(CoreMetKeys.PRODUCT_TYPE, "TestType");
            ingester.ingest(new URL("http://localhost:" + FM_PORT), new File(
                refUrl.getFile()), prodMet);
        } catch (Exception e) {
            fail(e.getMessage());
        }
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

        Metadata curMetadata = new Metadata();
        if (modelNode != null
            && !((Element) curChild).getAttribute("extends").equals(""))
          modelNode.setExtendsConfig(Arrays.asList(((Element) curChild)
              .getAttribute("extends").split(",")));
        curMetadata.replaceMetadata(this.loadConfiguration(rootElements,
            curChild, globalConfGroups));
        if (!((Element) curChild).getAttribute("name").equals("")) {
          ConfigGroup configGroup = new ConfigGroup(
              ((Element) curChild).getAttribute("name"), curMetadata);
          if (modelNode != null) {
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

        String delim = property.getAttribute("delim");
        String envReplace = property.getAttribute("envReplace");
        String name = property.getAttribute("name");
        String value = property.getAttribute("value");
        if (Boolean.parseBoolean(envReplace))
          curMetadata.replaceMetadata(name + "/envReplace", "true");
        List<String> values = new Vector<String>();
        if (delim.length() > 0)
          values.addAll(Arrays.asList(value.split("\\" + delim)));
        else
          values.add(value);
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

        List<String> values = new Vector<String>();
        if (delim.length() > 0)
          values.addAll(Arrays.asList(value.split("\\" + delim)));
        else
          values.add(value);
        curMetadata.replaceMetadata(name, values);
      }
    }
    return curMetadata;
  }
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

      // Generate Metadata for product.
      Metadata productMetadata = new Metadata();
      productMetadata.addMetadata(getGlobalMetadata());
      try {
         productMetadata.replaceMetadata(getMetadataForProduct(product));
      } catch (Exception e) {
         LOG.log(Level.SEVERE,
               "Failed to get metadata for product : " + e.getMessage(), e);
         performPostIngestOnFailActions(product, productMetadata);
         return createIngestStatus(product,
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

  }

  public Metadata getInheritedStaticMetadata(ViewState state) {
    Metadata m = new Metadata();
    if (this.parent != null) {
      m.replaceMetadata(this.parent.getInheritedStaticMetadata(state));
      if (this.parent.getModel().getStaticMetadata() != null)
        m.replaceMetadata(this.parent.getModel().getStaticMetadata());
      if (this.parent.getModel().getExtendsConfig() != null)
        for (String configGroup : this.parent.getModel().getExtendsConfig())
          m.replaceMetadata(state.getGlobalConfigGroups().get(configGroup)
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

  public Metadata getInheritedStaticMetadata(ViewState state) {
    Metadata m = new Metadata();
    if (this.parent != null) {
      m.replaceMetadata(this.parent.getInheritedStaticMetadata(state));
      if (this.parent.getModel().getStaticMetadata() != null)
        m.replaceMetadata(this.parent.getModel().getStaticMetadata());
      if (this.parent.getModel().getExtendsConfig() != null)
        for (String configGroup : this.parent.getModel().getExtendsConfig())
          m.replaceMetadata(state.getGlobalConfigGroups().get(configGroup)
              .getMetadata());
    }
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

      m.replaceMetadata(this.parent.getInheritedStaticMetadata(state));
      if (this.parent.getModel().getStaticMetadata() != null)
        m.replaceMetadata(this.parent.getModel().getStaticMetadata());
      if (this.parent.getModel().getExtendsConfig() != null)
        for (String configGroup : this.parent.getModel().getExtendsConfig())
          m.replaceMetadata(state.getGlobalConfigGroups().get(configGroup)
              .getMetadata());
    }
    return m;
  }
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

        List<String> values = new Vector<String>();
        if (delim.length() > 0)
          values.addAll(Arrays.asList(value.split("\\" + delim)));
        else
          values.add(value);
        curMetadata.replaceMetadata(name, values);
      }
    }
    return curMetadata;
  }
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.