|
|||||||||||
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.XMLCreateResourceFromActivityOutput
This activity creates a new resource within an XML database collection exposed by an XMLDB data service resource.
This activity has one input - the XML content of the new resource - and one output - the name of the new resource. The format of the output is OGSA-DAI specific XML. For example:
<createdResource name="someNewResource"/>
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.lang.String |
mParentCollectionName
Parent Collection name |
private java.lang.String |
mResourceName
Resource 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 | |
XMLCreateResourceFromActivityOutput()
Constructs a request to create a resource. |
|
XMLCreateResourceFromActivityOutput(java.lang.String resourceName)
Constructs a request to create a resource. |
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 new resource. |
java.lang.String |
getResourceName()
Gets the name of the new resource. |
void |
setInput(ActivityOutput input)
Sets the input of this activity to be the output from another activity that will provide the XML content of the new resource. |
void |
setParentCollectionName(java.lang.String parentCollectionName)
Set the parent collection name. |
void |
setResourceName(java.lang.String resourceName)
Set the name of the resource to be created. |
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 mResourceName
private java.lang.String mParentCollectionName
Constructor Detail |
public XMLCreateResourceFromActivityOutput()
setInput
.
public XMLCreateResourceFromActivityOutput(java.lang.String resourceName)
setInput
.
resourceName
- Name of resource to be created. If null
then
it is assumed the XMLDB resource will assign it a name.Method Detail |
public void setResourceName(java.lang.String resourceName)
resourceName
- Name of resource to be created. If null
then
it is assumed the XMLDB resource will assign it a name.public void setParentCollectionName(java.lang.String parentCollectionName)
null
then
the resource will be created in the base collection.
parentCollectionName
- The name of the collection or null
.public final void setInput(ActivityOutput input)
input
- Output from another activity.
java.lang.IllegalArgumentException
- If input
is null
.public ActivityOutput getOutput()
public java.lang.String getResourceName() throws NoActivityOutputException, DataFormatException
NoActivityOutputException
- if there is no output data or the data has not yet been
processed to this output or the activity that generates
this output has not yet been executed.
DataFormatException
- if the output from the activity cannot be parsed into a
name.protected java.lang.String generateXML()
RequestComponent
generateXML
in class Activity
Activity.generateXML()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |