Activity Type: XML
Run collection management operations on XMLDB data resources. The following operations are supported:
<xmlCollectionManagement name="statement"> <collection>musicians</collection> <createCollection name="folksingers"/> <outputStream name="statementOutput"/> </xmlCollectionManagement>
<xmlCollectionManagement name="statement"> <removeCollection name="jazzsingers"/>; <outputStream name="statementOutput"/> </xmlCollectionManagement>
<xmlCollectionManagement name="statement"> <<listCollections/> <outputStream name="statementOutput"/> </xmlCollectionManagement>
Element xmlCollectionManagement:
Create new collections — the following format is used:
<createdCollection name="COLLECTION"/>where COLLECTION is the name of the newly created collection.
Remove existing collections — the following format is used:
<removedCollection name="COLLECTION"/>where COLLECTION is the name of the removed collection.
List existing collections — the following format is used:
<collectionNames count="N"> <name>NAME1</name> <name>NAME2</name> .... </collectionNames>where N is the number of collections and NAME1, NAME2 etc. are the names of the collections.
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_collection_management.xsd
uk.org.ogsadai.activity.xmldb.XMLCollectionManagementActivity
uk.org.ogsadai.client.toolkit.activity.xmldb.XMLCreateCollection uk.org.ogsadai.client.toolkit.activity.xmldb.XMLListCollections uk.org.ogsadai.client.toolkit.activity.xmldb.XMLRemoveCollection
Up: Activities | ||
© International Business Machines Corporation, 2002-2006 | © The University of Edinburgh, 2002-2006 |