uk.org.ogsadai.activity.files
Class AbstractFileActivity
java.lang.Object
|
+--uk.org.ogsadai.activity.Activity
|
+--uk.org.ogsadai.activity.files.AbstractFileActivity
- Direct Known Subclasses:
- AddAndIndexFileActivity, DirectoryAccessActivity, FileAccessActivity, FileManipulationActivity, FileReadingActivity, FileWritingActivity, SearchIndexedFileActivity
- public abstract class AbstractFileActivity
- extends Activity
Abstract superclass for all activities which are intended for use with data resources that implement the FileAccessProvider
interface.
Sub-classes may override the initialise()
method, but call super.initialise()
in order to perform some checks on the connection managers's configuration.
- Author:
- The OGSA-DAI Project Team
Method Summary |
void |
initialise()
Gets the data resource accessor for the files data resource according to whether the users credentials permit this access. |
Methods inherited from class uk.org.ogsadai.activity.Activity |
cleanUp, connectsTo, createOutputPipe, getActivityConfiguration, getActivityName, getCause, getName, getObservableStatus, getProperties, getSession, getStatus, hasActivityConfiguration, hasProperties, process, processBlock, processFirst, setActivityName, setCompleted, setError |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT_NOTICE
private static final java.lang.String COPYRIGHT_NOTICE
-
Copyright statement
- See Also:
- Constant Field Values
mFileAccessProvider
protected FileAccessProvider mFileAccessProvider
-
The file access provider used to authorize file access
mTopDir
protected java.io.File mTopDir
-
The directory in the filesystem of the associated file data service resource
mCredentials
protected java.lang.String mCredentials
-
The user's credentials
AbstractFileActivity
protected AbstractFileActivity(org.w3c.dom.Element element)
throws ActivitySpecificationException,
ActivityCreationException
initialise
public void initialise()
throws ActivitySpecificationException,
ActivityExecutionException
-
Gets the data resource accessor for the files data resource according to whether the users credentials permit this access.
-
- Overrides:
initialise
in class Activity
-
- Throws:
ActivitySpecificationException
- If the user is not permitted to access the resource.
ActivityExecutionException
- If some internal problem occurs.
- See Also:
Activity.initialise()