gov.nasa.pds.harvest.association
Class AssociationPublisher
java.lang.Object
gov.nasa.pds.harvest.association.AssociationPublisher
public class AssociationPublisher
- extends Object
Class to publish associations to the PDS Registry Service upon
successful ingestion of the product.
- Author:
- mcayanan
Method Summary |
boolean |
publish(File product,
gov.nasa.jpl.oodt.cas.metadata.Metadata productMetadata)
Publish the association. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssociationPublisher
public AssociationPublisher(String registryUrl,
RegistryIngester ingester)
throws MalformedURLException
- Constructor.
- Parameters:
registryUrl
- The URL to the registry service.ingester
- The registry ingester.
- Throws:
gov.nasa.pds.registry.exception.RegistryClientException
MalformedURLException
publish
public boolean publish(File product,
gov.nasa.jpl.oodt.cas.metadata.Metadata productMetadata)
- Publish the association.
- Parameters:
product
- The file containing the associations.productMetadata
- The metadata associated with the given product.
- Returns:
- 'true' if the associations were registered successfully.
Copyright © 2010-2011 Planetary Data System. All Rights Reserved.