Examples of MetadataResource


Examples of com.nardoz.restopengov.ckan.models.MetadataResource

    public void onReceive(Object message) {

        if(message instanceof MetadataResource) {

            final MetadataResource resource = (MetadataResource) message;

            String index = ConfigFactory.load().getString("restopengov.index");
            GetResponse response = client.prepareGet(index, resource.metadata_name, resource.id).execute().actionGet();

            if(response.getSource() != null) {
View Full Code Here

Examples of com.nardoz.restopengov.ckan.models.MetadataResource

    public void onReceive(Object message) {

        if (message instanceof MetadataResource) {

            final MetadataResource resource = (MetadataResource) message;

            String index = ConfigFactory.load().getString("restopengov.index");
            GetResponse response = client.prepareGet(index, resource.metadata_name, resource.id).execute().actionGet();

            if(response.getSource() != null) {
View Full Code Here

Examples of org.apache.oodt.cas.product.jaxrs.resources.MetadataResource

            parameters);
        }
      }

      // Add the product's metadata to the zip file.
      MetadataResource metadataResource = resource.getMetadataResource();
      Metadata metadata = metadataResource.getMetadata();

      ByteArrayOutputStream os = new ByteArrayOutputStream();
      SerializableMetadata serMetadata = new SerializableMetadata(metadata);
      serMetadata.writeMetadataToXmlStream(os);
      ByteArrayInputStream bis = new ByteArrayInputStream(os.toByteArray());
View Full Code Here

Examples of org.apache.oodt.cas.product.jaxrs.resources.MetadataResource

        XMLUtils.addAttribute(doc, productRdf, "rdf:about",
          getBaseUri() + "product?productId=" + productId);

        if (configuration != null)
        {
          MetadataResource metadataResource = productResource
            .getMetadataResource();
          for (MetadataEntry entry : metadataResource.getMetadataEntries())
          {
            for (String value : entry.getValues())
            {
              Element metaElement = configuration.createElement(entry.getKey(),
                value, doc);
View Full Code Here

Examples of org.apache.oodt.cas.product.jaxrs.resources.MetadataResource

          throw new IOException(message);
        }
      }

      // Add the dataset's metadata to the zip.
      MetadataResource metadataResource = resource.getMetadataResource();
      Metadata metadata = metadataResource.getMetadata();

      ByteArrayOutputStream os = new ByteArrayOutputStream();
      SerializableMetadata serMetadata = new SerializableMetadata(metadata);
      serMetadata.writeMetadataToXmlStream(os);
      ByteArrayInputStream bis = new ByteArrayInputStream(os.toByteArray());
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.