|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.baclava.store.RemoteSOAPStore
public class RemoteSOAPStore
Connects to the DataService.jws axis service in the Ouzo1.0 project to provide data / metadata storage and LSID allocation
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.embl.ebi.escience.baclava.LSIDProvider |
|---|
LSIDProvider.NamespaceEnumeration |
| Field Summary |
|---|
| Fields inherited from interface org.embl.ebi.escience.baclava.LSIDProvider |
|---|
DATATHINGCOLLECTION, DATATHINGLEAF, WFDEFINITION, WFINSTANCE |
| Constructor Summary | |
|---|---|
RemoteSOAPStore()
|
|
RemoteSOAPStore(java.util.Properties props)
|
|
| Method Summary | |
|---|---|
DataThing |
fetchDataThing(java.lang.String LSID)
Return a DataThing object from the store, extracting the child if this is not already a top level DataThing document. |
java.lang.String |
getID(LSIDProvider.NamespaceEnumeration namespaceObject)
Return a unique identifier to be used as an LSID or similar |
java.lang.String |
getMetadata(java.lang.String LSID)
Returns a string of all the metadata statements that reference the given LSID |
boolean |
hasData(java.lang.String LSID)
Whether the given LSID is resolvable to a concrete data object |
boolean |
hasMetadata(java.lang.String LSID)
Whether the given LSID is resolvable to a metadata reference |
void |
storeDataThing(DataThing theDataThing,
boolean silent)
Store a DataThing in the backing store, this must introspect on the DataThing object, determine any LSID values contained within and maintain appropriate references to such values. |
void |
storeMetadata(java.lang.String theMetadata)
Store a string containing RDF format metadata and one or more LSIDs as resources |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteSOAPStore()
public RemoteSOAPStore(java.util.Properties props)
| Method Detail |
|---|
public void storeDataThing(DataThing theDataThing,
boolean silent)
throws DuplicateLSIDException
BaclavaDataService
storeDataThing in interface BaclavaDataServicetheDataThing - DataThing object to storesilent - whether to throw exceptions if duplicate LSID values are
found. If set to false then the storage operation will fail
under this condition, if set to true then the store will
always succeed, but duplicate LSID values will not be stored.
This is potentially useful when a DataThing is a composition
of some previously stored entities and some new ones,
effectively setting silent to true allows these new data to be
stored and the duplicates safely ignored.
DuplicateLSIDException - if an LSID in the DataThing is already held in the store and
the silent parameter is set to false
public DataThing fetchDataThing(java.lang.String LSID)
throws NoSuchLSIDException
BaclavaDataService
fetchDataThing in interface BaclavaDataServiceLSID - a URI referencing an object within a previously stored
DataThing contained by the backing store.
NoSuchLSIDException - if the LSID is not found within the store.public void storeMetadata(java.lang.String theMetadata)
BaclavaDataService
storeMetadata in interface BaclavaDataServicepublic java.lang.String getID(LSIDProvider.NamespaceEnumeration namespaceObject)
LSIDProvider
getID in interface LSIDProviderpublic boolean hasData(java.lang.String LSID)
BaclavaDataService
hasData in interface BaclavaDataServicepublic boolean hasMetadata(java.lang.String LSID)
BaclavaDataService
hasMetadata in interface BaclavaDataServicepublic java.lang.String getMetadata(java.lang.String LSID)
BaclavaDataService
getMetadata in interface BaclavaDataService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||