org.bibalex.daf.retrievalplugins
Class FolderCopy
java.lang.Object
org.bibalex.daf.retrievalplugins.FolderCopy
public class FolderCopy
- extends java.lang.Object
Copyright (c) 2006-2007 by Bibliotheca Alexandrina
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
FolderCopy Class is responsible for copying job folder from its source
- Author:
- Niveen.Nagy
Method Summary |
static boolean |
copyFolder(java.io.File retrieveLocation,
Job job,
RetrievalEventNotifier notifier)
This method copies the job folder from its source to the retrieve location |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FolderCopy
public FolderCopy()
copyFolder
public static boolean copyFolder(java.io.File retrieveLocation,
Job job,
RetrievalEventNotifier notifier)
- This method copies the job folder from its source to the retrieve location
- Parameters:
retrieveLocation
- The location to retrieve from.job
- The Job
object to retrieve.transactionLogID
- transactionLogID The Transaction Log ID, used to create a
StatusDef
.notifier
- notifier is used to notify other observers by calling eventNotifier method
- Returns:
true
if retrieval was successfull,
false
otherwise.