Activity Type: XML
Run XMLDB resource management operations on XMLDB data resources. XMLDB resources are XML documents which are stored within XMLDB collections (not to be confused with an XMLDB data resource itself or data service resources). The following operations are supported:
<xmlResourceManagement name="statement"> <collection>musicians/folksingers</collection> <createResource name="newResource"> <entry xmlns="http://folksingers/contact-details"> <name>Smithers-Jones</name> <address>12 Mill Hill East, London</address> <phone>02636328605</phone> </entry> </createResource> <outputStream name="statementOutput"/> </xmlResourceManagement>
<xmlResourceManagement name="statement"> <createResource name="newResource" from="someActivityOutput"/> <outputStream name="statementOutput"/> </xmlResourceManagement>
<xmlResourceManagement name="statement"> <removeResource name="someResource"/> <outputStream name="statementOutput"/> </xmlResourceManagement>
<xmlResourceManagement name="statement"> <listResources/> <outputStream name="statementOutput"/> </xmlResourceManagement>
Element xmlResourceManagement:
<entry> <name>Yanick McTavish</name> <address>23 Somewhere Street</address> <phone>45645456</phone> </entry>
Create new XMLDB resources — the following format is used:
<createdResource name="RESOURCE"/>where RESOURCE is the name of the newly created resource.
Remove existing XMLDB resources — the following format is used:
<removedResource name="RESOURCE"/>where RESOURCE is the name of the removed resource.
List existing XMLDB resources — the following format is used:
<resourceNames count="N"> <name>NAME1</name> <name>NAME2</name> .... </resourceNames>where N is the number of resources and NAME1, NAME2 etc. are the names of the resources.
This activity requires a data resource accessor that implements the following interface: uk.org.ogsadai.dataresource.XMLDBCollectionProvider
The use of this activity requires the following jar to be loaded on the server:
OGSA-DAI/schema/ogsadai/xsd/activities/xml_resource_management.xsd
uk.org.ogsadai.activity.xmldb.XMLResourceManagementActivity
uk.org.ogsadai.client.toolkit.activity.xmldb.XMLCreateResource uk.org.ogsadai.client.toolkit.activity.xmldb.XMLCreateResourceFromActivityOutput uk.org.ogsadai.client.toolkit.activity.xmldb.XMLListResources uk.org.ogsadai.client.toolkit.activity.xmldb.XMLRemoveResource
Up: Activities | ||
© International Business Machines Corporation, 2002-2006 | © The University of Edinburgh, 2002-2006 |