|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
export(java.lang.String docid,
java.lang.String path,
java.lang.String location)
This method exports an entire data package to a given location. |
void |
exportToZip(java.lang.String docid,
java.lang.String path,
java.lang.String location)
This method exports an entire data package to a given location in a zip file. |
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 |
public void openDataPackage(java.lang.String location, java.lang.String identifier, java.util.Vector relations)
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)
docid
- the id of the package to uploadpublic void download(java.lang.String docid)
docid
- the docid of the package to downloadpublic void delete(java.lang.String docid, java.lang.String location)
docid
- the id of the package to deletelocation
- 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.public void export(java.lang.String docid, java.lang.String path, java.lang.String location)
id
- the docid of the package to exportpath
- the location to export it tolocation
- the current location of the package: METACAT, LOCAL or BOTHpublic void exportToZip(java.lang.String docid, java.lang.String path, java.lang.String location)
id
- the docid of the package to exportpath
- the location to export it tolocation
- the current location of the package: METACAT, LOCAL or BOTH
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |