|
||||||||||
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.
Field Summary | |
static java.lang.String |
BOTH
used to signify that this package is stored on metacat and locally. |
static java.lang.String |
LOCAL
used to signify that this package is located locally |
static java.lang.String |
METACAT
used to signify that this package is located on a metacat server |
Method Summary | |
void |
createOpenPreviousVersionDialog(java.lang.String title,
int numOfVersion,
Morpho morpho,
boolean local)
This method will create a dialog for open previouse version of a datapackage |
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. |
java.lang.String |
getDocIdFromMorphoFrame(MorphoFrame morphoFrame)
Method to get docid from a given morpho frame |
java.lang.String |
getNextId(Morpho morpho)
returns the next local id from the config file returns null if configXML was unable to increment the id number |
boolean |
isDataPackageInLocal(MorphoFrame morphoFrame)
Method to determine a data package which in a morpho frame if is in local |
boolean |
isDataPackageInNetwork(MorphoFrame morphoFrame)
Method to determine a data package which in a morpho frame if is in network |
void |
openDataPackage(java.lang.String location,
java.lang.String identifier,
java.util.Vector relations,
ButterflyFlapCoordinator coordinator)
This method is called to open a data package that resides either locally (location=local) or on a Metacat server (location=metacat). |
java.lang.String |
upload(java.lang.String docid,
boolean updatedIds)
This method is called to upload a datapackage that is currently stored locally to metacat and return a new id or orignal id. |
Field Detail |
public static final java.lang.String METACAT
public static final java.lang.String LOCAL
public static final java.lang.String BOTH
Method Detail |
public void openDataPackage(java.lang.String location, java.lang.String identifier, java.util.Vector relations, ButterflyFlapCoordinator coordinator)
location
- indicates the location from which to open the dataidentifier
- the unique identifier to use to open the datacoordinator
- the coordinator for butterfly flappingpublic java.lang.String upload(java.lang.String docid, boolean updatedIds) throws MetacatUploadException
docid
- the id of the package to uploadupdateIds
- boolean to tell whether to automatically update ids
when a conflict is found.public 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 BOTHpublic void createOpenPreviousVersionDialog(java.lang.String title, int numOfVersion, Morpho morpho, boolean local)
title
- the title of the dialog, docid will be set as tilenumOfVersion
- the total number of versions in this docidmorpho
- the morpho filelocal
- the package is local or notpublic java.lang.String getNextId(Morpho morpho)
morpho
- the morpho filepublic java.lang.String getDocIdFromMorphoFrame(MorphoFrame morphoFrame)
morphoFrame
- the morphoFrame which contains a datapackagepublic boolean isDataPackageInLocal(MorphoFrame morphoFrame)
morphoFrame
- the morpho frame containing the data packagepublic boolean isDataPackageInNetwork(MorphoFrame morphoFrame)
morphoFrame
- the morpho frame containing the data package
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |