|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bibalex.daf.retrievalplugins.DriveRetrieval
public class DriveRetrieval
Copyright (c) 2006-2007 by Bibliotheca Alexandrina
Field Summary | |
---|---|
private java.io.File |
drive
|
private boolean |
retrievalCancelled
|
Constructor Summary | |
---|---|
DriveRetrieval()
|
Method Summary | |
---|---|
java.lang.String[] |
getMediaTypes()
This method is called to get the available media types for this plugin, it retrievs them from the resource file |
java.lang.String |
getPlugInName()
Gets the name of the Plug-In. |
boolean |
initialize()
This method launches the dialog needed to choose the drive to retrieve from |
boolean |
retrieveJob(Job job,
int version,
java.lang.String mediaBarcode,
BackupInfoDef backupInfo,
RetrievalEventNotifier notifier)
When implemented i a class it retrieves the job from the suitable media |
private void |
setDrive(java.io.File drive)
sets the drive file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.File drive
private boolean retrievalCancelled
Constructor Detail |
---|
public DriveRetrieval()
Method Detail |
---|
public java.lang.String getPlugInName()
IRetrievalPlugin
getPlugInName
in interface IRetrievalPlugin
public boolean initialize()
initialize
in interface IRetrievalPlugin
private void setDrive(java.io.File drive)
drive
- public java.lang.String[] getMediaTypes()
public boolean retrieveJob(Job job, int version, java.lang.String mediaBarcode, BackupInfoDef backupInfo, RetrievalEventNotifier notifier)
retrieveJob
in interface IRetrievalPlugin
job
- The Job
object to retrieve for.version
- The version to retrieve.mediaBarcode
- The mediaBarcode, in this case it is empty stringbackupInfo
- The backupInfo, to know from the 'BackupAs' whether this is an old system
or new system data retrieval.notifier
- This obfect is used to notify the observers for the GUI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |