|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.activity.Activity | +--uk.org.ogsadai.activity.files.AbstractFileActivity
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.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
protected java.lang.String |
mCredentials
The user's credentials |
protected FileAccessProvider |
mFileAccessProvider
The file access provider used to authorize file access |
protected java.io.File |
mTopDir
The directory in the filesystem of the associated file data service resource |
Fields inherited from class uk.org.ogsadai.activity.Activity |
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs |
Constructor Summary | |
protected |
AbstractFileActivity(org.w3c.dom.Element element)
|
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 |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
protected FileAccessProvider mFileAccessProvider
protected java.io.File mTopDir
protected java.lang.String mCredentials
Constructor Detail |
protected AbstractFileActivity(org.w3c.dom.Element element) throws ActivitySpecificationException, ActivityCreationException
Method Detail |
public void initialise() throws ActivitySpecificationException, ActivityExecutionException
initialise
in class Activity
ActivitySpecificationException
- If the user is not permitted to access the resource.
ActivityExecutionException
- If some internal problem occurs.Activity.initialise()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |