|
|||||||||||
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.files.MoveFile
Moves a file.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.lang.String |
mDestination
destination path |
private java.lang.String |
mOrigin
relative path of file to be moved |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
Constructor Summary | |
MoveFile()
Construct a new activity instance which moves a file. |
|
MoveFile(java.lang.String fromPath,
java.lang.String toPath)
Construct a new activity instance which moves the given file to the specified destination. |
Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
java.lang.String |
getDestination()
Returns the destination path where the file will be moved to. |
java.lang.String |
getOrigin()
Returns the path of the file to be moved. |
void |
setDestination(java.lang.String path)
|
void |
setOrigin(java.lang.String path)
Set the relative path of the file to delete. |
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 mOrigin
private java.lang.String mDestination
Constructor Detail |
public MoveFile()
public MoveFile(java.lang.String fromPath, java.lang.String toPath)
fromPath
- origin of the file to be movedtoPath
- destination of the file to be movedMethod Detail |
public void setOrigin(java.lang.String path)
path
- file to deletepublic void setDestination(java.lang.String path)
public java.lang.String getOrigin()
public java.lang.String getDestination()
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 |