|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable org.bibalex.daf.managers.checkin.RetrievalManager
public class RetrievalManager
This class holds the functionality implementation provided by the Retrieval Module.
Constructor Summary | |
---|---|
RetrievalManager()
|
Method Summary | |
---|---|
private boolean |
adjustRemainigFiles(java.lang.String rootFolder,
StatusDef statusDef)
Removes the extra files if exists. |
static boolean |
assignJobTo(Job job,
int jobTypeID,
int phaseID,
int userID)
Assigns and uploads the given Job to the listed phase and user. |
static boolean |
checkInJob(Job job,
int phaseID,
int userID)
Moves the records of this job from the OldTransactionLog to the TransactionLog |
private boolean |
deCompressJob(Job job,
StatusDef statusDef,
boolean removeExtraFiles)
|
private void |
deleteFile(java.lang.String filePath)
Deletes a specific file. |
private void |
removeExtraFiles(java.lang.String rootFolder,
StatusDef statusDef)
Removes the extra files if exists. |
static void |
removeJobFromWorkingDirectory(Job job)
Deletes the Imported Job files from the working directory if they exists. |
private void |
removeThumbFile(java.lang.String rootFolder)
Removes the thumbs.db file if it exists. |
private void |
renameAllFileNames(java.lang.String rootFolder,
java.lang.String oldFileName,
java.lang.String newFileName,
boolean recursive)
Renames all the files Upon the new naming Convention of the new System. |
boolean |
retrieve(Job job,
StatusDef statusDef,
boolean removeExtraFiles)
This method completes the retrieval operation |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RetrievalManager()
Method Detail |
---|
public boolean retrieve(Job job, StatusDef statusDef, boolean removeExtraFiles)
job
- The job to be retrievedstatusDef
- The status definition of the job to be retrievedremoveExtraFiles
- Indicates wether to remove any Extra Files or Not.
private boolean deCompressJob(Job job, StatusDef statusDef, boolean removeExtraFiles)
job
- The Job
object to retrieve.statusDef
- the status definition of the job
true
if decompression is successfull, false
otherwise.public static boolean checkInJob(Job job, int phaseID, int userID)
job
- the job to move the records for.phaseID
- The phase ID to move to.userID
- The user ID to assign to.
true
if check in is successfull, false
otherwise.public static boolean assignJobTo(Job job, int jobTypeID, int phaseID, int userID)
Job
to the listed phase and user.
If the job is already in the system then it is considered a simple assign or Job Type change,
otherwise the job has also to be moved from the OldTransactionLog
table to the Active one (TransactionLog
table).
job
- The Job
to be assigned.jobTypeID
- The JobType
ID to be modified to if necessary.phaseID
- The Phase
ID to assign to within this JobType
.userID
- The User
ID to assign to.
true
if assign is successfull, false
otherwise.public static void removeJobFromWorkingDirectory(Job job)
job
- The Job
object to remove the files for.private void renameAllFileNames(java.lang.String rootFolder, java.lang.String oldFileName, java.lang.String newFileName, boolean recursive)
Job
s
rootFolder
- the Root folder of the Job
.oldFileName
- The old file name to be renamed.newFileName
- The new file name to use.recursive
- Defines wether the renaming is recrusive on the SubFolders also or not.private void deleteFile(java.lang.String filePath)
filePath
- The Path of the file to delete.private void removeThumbFile(java.lang.String rootFolder)
rootFolder
- The root folder to start removing from.private void removeExtraFiles(java.lang.String rootFolder, StatusDef statusDef)
rootFolder
- The root folder to start removing from.private boolean adjustRemainigFiles(java.lang.String rootFolder, StatusDef statusDef)
rootFolder
- The root folder to start removing from.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |