edu.ucsb.nceas.morpho.framework
Interface DataPackageInterface

All Known Implementing Classes:
DataPackagePlugin

public interface DataPackageInterface

All component plugins that handle access to data packages should implement this interface and register themselves as a service provider for the interface withthe framework.


Method Summary
 void delete(java.lang.String docid, java.lang.String location)
          This method is called to delete a datapackage from metacat or the local disk.
 void download(java.lang.String docid)
          This method is called to download a datapackage from metacat to the local disk.
 void openDataPackage(java.lang.String location, java.lang.String identifier, java.util.Vector relations)
          This method is called to open a data package that resides either locally (location=local) or on a Metacat server (location=metacat).
 void upload(java.lang.String docid)
          This method is called to upload a datapackage that is currently stored locally to metacat
 

Method Detail

openDataPackage

public void openDataPackage(java.lang.String location,
                            java.lang.String identifier,
                            java.util.Vector relations)
This method is called to open a data package that resides either locally (location=local) or on a Metacat server (location=metacat).
Parameters:
location - indicates the location from which to open the data
identifier - the unique identifier to use to open the data

upload

public void upload(java.lang.String docid)
This method is called to upload a datapackage that is currently stored locally to metacat
Parameters:
docid - the id of the package to upload

download

public void download(java.lang.String docid)
This method is called to download a datapackage from metacat to the local disk.
Parameters:
docid - the docid of the package to download

delete

public void delete(java.lang.String docid,
                   java.lang.String location)
This method is called to delete a datapackage from metacat or the local disk.
Parameters:
docid - the id of the package to delete
location - the location to delete it from. we do not necessarilly want to delete the package from metacat and the local disk. the user could just want to delete it in one of those places.


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.