|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.ucsb.nceas.morpho.datapackage.DataPackagePlugin
Class that implements the plugin for package editing
Constructor Summary | |
DataPackagePlugin()
Construct the plugin. |
Method Summary | |
void |
delete(java.lang.String docid,
java.lang.String location)
Deletes the package. |
void |
download(java.lang.String docid)
Downloads the package from metacat. |
void |
export(java.lang.String docid,
java.lang.String path,
java.lang.String location)
Exports the package. |
void |
exportToZip(java.lang.String docid,
java.lang.String path,
java.lang.String location)
Exports the package into a zip file |
void |
initialize(ClientFramework cf)
The plugin must store a reference to the ClientFramework in order to be able to call the services available through the framework. |
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,
boolean updateIds)
Uploads the package to metacat. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataPackagePlugin()
Method Detail |
public void initialize(ClientFramework cf)
initialize
in interface PluginInterface
public void openDataPackage(java.lang.String location, java.lang.String identifier, java.util.Vector relations)
DataPackageInterface
openDataPackage
in interface DataPackageInterface
edu.ucsb.nceas.morpho.framework.DataPackageInterface
location
- indicates the location from which to open the dataidentifier
- the unique identifier to use to open the datapublic void upload(java.lang.String docid, boolean updateIds) throws MetacatUploadException
upload
in interface DataPackageInterface
docid
- the id of the package to uploadpublic void download(java.lang.String docid)
download
in interface DataPackageInterface
docid
- the id of the package to downloadpublic void delete(java.lang.String docid, java.lang.String location)
delete
in interface DataPackageInterface
docid
- the id of the package to downloadpublic void export(java.lang.String docid, java.lang.String path, java.lang.String location)
export
in interface DataPackageInterface
docid
- the id of the package to exportpath
- the directory to which the package should be exported.location
- the location where the package is now: LOCAL, METACAT or
BOTHpublic void exportToZip(java.lang.String docid, java.lang.String path, java.lang.String location)
exportToZip
in interface DataPackageInterface
docid
- the id of the package to exportpath
- the directory to which the package should be exported.location
- the location where the package is now: LOCAL, METACAT or
BOTH
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |