Activity - xmlCollectionManagement

Activity Type: XML

Description

Run collection management operations on XMLDB data resources. The following operations are supported:

Examples

<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>

Specification

Element xmlCollectionManagement:

Input and Output Types

Data Resource Accessor

This activity requires a data resource accessor that implements the following interface: uk.org.ogsadai.dataresource.XMLDBCollectionProvider

Required Libraries

The use of this activity requires the following jar to be loaded on the server:

XML Schema

OGSA-DAI/schema/ogsadai/xsd/activities/xml_collection_management.xsd

Class

uk.org.ogsadai.activity.xmldb.XMLCollectionManagementActivity

Client Toolkit Classes

uk.org.ogsadai.client.toolkit.activity.xmldb.XMLCreateCollection uk.org.ogsadai.client.toolkit.activity.xmldb.XMLListCollections uk.org.ogsadai.client.toolkit.activity.xmldb.XMLRemoveCollection