|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.org.ogsadai.client.toolkit.activity.RequestComponent
|
+--uk.org.ogsadai.client.toolkit.activity.Activity
|
+--uk.org.ogsadai.client.toolkit.activity.xmldb.XMLCreateCollection
This activity creates a new collection within an XML database collection exposed by an XMLDB data service resource.
It has no input and one output - the name of the new collection. The format of the output is OGSA-DAI specific XML. For example:
<createdCollection name="someNewCollection"/>
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.lang.String |
mCollectionName
Collection name |
private java.lang.String |
mParentCollectionName
Parent Collection name |
| Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
| Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
| Constructor Summary | |
XMLCreateCollection()
Constructs a request to create a collection. |
|
XMLCreateCollection(java.lang.String collectionName)
Constructs a request to create a collection. |
|
| Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
ActivityOutput |
getOutput()
Gets the activity's only output - the name of the created collection. |
void |
setCollectionName(java.lang.String collectionName)
Set the name of the collection to be created. |
void |
setParentCollectionName(java.lang.String parentCollectionName)
Set the parent collection name. |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getDataService, getName, getSession, setDataService, setSession |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private java.lang.String mCollectionName
private java.lang.String mParentCollectionName
| Constructor Detail |
public XMLCreateCollection()
setCollectionName.
public XMLCreateCollection(java.lang.String collectionName)
collectionName - Name of collection to be created.
java.lang.IllegalArgumentException - If collectionName is null.| Method Detail |
public void setCollectionName(java.lang.String collectionName)
collectionName - Name of collection to be created.
java.lang.IllegalArgumentException - If collectionName is null.public void setParentCollectionName(java.lang.String parentCollectionName)
null then
the collection will be created in the base collection.
parentCollectionName - The name of the collection or null.public ActivityOutput getOutput()
protected java.lang.String generateXML()
RequestComponent
generateXML in class Activity
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||