|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.schemedit.threadedservices.MonitoredTask
org.dlese.dpc.schemedit.threadedservices.ThreadedService
org.dlese.dpc.schemedit.threadedservices.ExportingService
public class ExportingService
Supports exporting of collections and portions of collections to disk. Exported records are stripped of cataloger information.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.dlese.dpc.schemedit.threadedservices.ThreadedService |
|---|
ThreadedService.SortReports |
| Field Summary |
|---|
| Fields inherited from class org.dlese.dpc.schemedit.threadedservices.ThreadedService |
|---|
dataStore, dcsDataManager, dcsSetInfo, index, indexOnValidation, isProcessing, NUM_STATUS_MESSAGES, servletContext, sessionBean, statuses, stopProcessing, validateFiles |
| Constructor Summary | |
|---|---|
ExportingService(ServletContext servletContext,
String exportingServiceDataDir,
String exportBaseDir,
String xslPath)
Constructor for the ExportingService object |
|
| Method Summary | |
|---|---|
void |
exportRecords(File destDir,
DcsSetInfo dcsSetInfo,
String[] statuses,
SessionBean sessionBean)
Exports records from specified collection and having specified statuses to disk in a separate ExportThread. |
void |
exportRecords(File destDir,
DcsSetInfo dcsSetInfo,
String[] statuses,
SessionBean sessionBean,
ThreadedServiceObserver observer)
Exports records from specified collection and having specified statuses to disk, notifying observer when ExportThread is completed. |
void |
exportRecords(List idsToExport,
File destDir,
ThreadedServiceObserver observer)
Triggered by ExportThread.run, writes specified records to a directory on disk and save report. |
String |
getExportBaseDir()
Gets the exportBaseDir attribute of the ExportingService object |
DcsSetInfo |
getExportingSetInfo()
Gets the exportingSetInfo attribute of the ExportingService object |
ExportReport |
getExportReport()
Gets the exportReport attribute of the ExportingService object |
boolean |
isLegalExportDest(File destDir)
Gets the legalExportDest attribute of the ExportingService object |
protected static void |
prtln(String s)
Print a line to standard out. |
static File |
validateExportDestination(String exportBaseDir,
String relativeDestPath)
NOT YET DOCUMENTED |
| Methods inherited from class org.dlese.dpc.schemedit.threadedservices.ThreadedService |
|---|
addStatusMessage, archiveServiceReport, buildQuery, clearServiceReport, clearStatusMessages, getArchivedReport, getArchivedReports, getDateStamp, getDocReader, getIdList, getIndexOnValidation, getIsProcessing, getServiceReport, getSessionId, getSimpleDateStamp, getStatusMessages, list2delimitedString, setDcsSetInfo, setIndexOnValidation, setServiceReport, setStatuses, setValidationEnabled, stopProcessing, validate, validationIsStale |
| Methods inherited from class org.dlese.dpc.schemedit.threadedservices.MonitoredTask |
|---|
getTaskProgress, setTaskProgress |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExportingService(ServletContext servletContext,
String exportingServiceDataDir,
String exportBaseDir,
String xslPath)
exportingServiceDataDir - Description of the ParameterservletContext - NOT YET DOCUMENTEDexportBaseDir - NOT YET DOCUMENTEDxslPath - NOT YET DOCUMENTED| Method Detail |
|---|
public DcsSetInfo getExportingSetInfo()
public String getExportBaseDir()
public boolean isLegalExportDest(File destDir)
destDir - NOT YET DOCUMENTED
public static File validateExportDestination(String exportBaseDir,
String relativeDestPath)
throws Exception
exportBaseDir - NOT YET DOCUMENTEDrelativeDestPath - NOT YET DOCUMENTED
Exception - NOT YET DOCUMENTEDpublic ExportReport getExportReport()
public void exportRecords(File destDir,
DcsSetInfo dcsSetInfo,
String[] statuses,
SessionBean sessionBean)
throws ExportingServiceException
destDir - export directorydcsSetInfo - setInfo for collection to be exportedstatuses - record statuses to be exportedsessionBean - NOT YET DOCUMENTED
ExportingServiceException - if unable to export
public void exportRecords(File destDir,
DcsSetInfo dcsSetInfo,
String[] statuses,
SessionBean sessionBean,
ThreadedServiceObserver observer)
throws ExportingServiceException
This method will not complete if another ExportThread is active.
destDir - export directorydcsSetInfo - setInfo for collection to be exportedstatuses - record statuses to be exportedsessionBean - NOT YET DOCUMENTEDobserver - observer receives notification when
export is complete.
ExportingServiceException - NOT YET DOCUMENTED
public void exportRecords(List idsToExport,
File destDir,
ThreadedServiceObserver observer)
NOTE: this method assumes the destination directory has been validated and exists.
destDir - Description of the ParameteridsToExport - NOT YET DOCUMENTEDobserver - NOT YET DOCUMENTEDprotected static void prtln(String s)
s - The String to print.
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||