public class ExportingService extends ThreadedService
ThreadedService.SortReportsdataStore, dcsDataManager, dcsSetInfo, index, indexOnValidation, isProcessing, NUM_STATUS_MESSAGES, servletContext, sessionBean, statuses, stopProcessing, validateFiles| Constructor and Description |
|---|
ExportingService(javax.servlet.ServletContext servletContext,
java.lang.String exportingServiceDataDir,
java.lang.String exportBaseDir,
java.lang.String xslPath)
Constructor for the ExportingService object
|
| Modifier and Type | Method and Description |
|---|---|
void |
exportRecords(java.io.File destDir,
DcsSetInfo dcsSetInfo,
java.lang.String[] statuses,
SessionBean sessionBean)
Exports records from specified collection and having specified statuses to
disk in a separate ExportThread.
|
void |
exportRecords(java.io.File destDir,
DcsSetInfo dcsSetInfo,
java.lang.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(java.util.List idsToExport,
java.io.File destDir,
ThreadedServiceObserver observer)
Triggered by ExportThread.run, writes specified records to a directory on
disk and save report.
|
java.lang.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(java.io.File destDir)
Gets the legalExportDest attribute of the ExportingService object
|
protected static void |
prtln(java.lang.String s)
Print a line to standard out.
|
static java.io.File |
validateExportDestination(java.lang.String exportBaseDir,
java.lang.String relativeDestPath)
NOT YET DOCUMENTED
|
addStatusMessage, archiveServiceReport, buildQuery, clearServiceReport, clearStatusMessages, getArchivedReport, getArchivedReports, getDateStamp, getDocReader, getIdList, getIndexOnValidation, getIsProcessing, getServiceReport, getSessionId, getSimpleDateStamp, getStatusMessages, list2delimitedString, setDcsSetInfo, setIndexOnValidation, setServiceReport, setStatuses, setValidationEnabled, stopProcessing, validate, validationIsStalegetTaskProgress, setTaskProgresspublic ExportingService(javax.servlet.ServletContext servletContext,
java.lang.String exportingServiceDataDir,
java.lang.String exportBaseDir,
java.lang.String xslPath)
exportingServiceDataDir - Description of the ParameterservletContext - NOT YET DOCUMENTEDexportBaseDir - NOT YET DOCUMENTEDxslPath - NOT YET DOCUMENTEDpublic DcsSetInfo getExportingSetInfo()
public java.lang.String getExportBaseDir()
public boolean isLegalExportDest(java.io.File destDir)
destDir - NOT YET DOCUMENTEDpublic static java.io.File validateExportDestination(java.lang.String exportBaseDir,
java.lang.String relativeDestPath)
throws java.lang.Exception
exportBaseDir - NOT YET DOCUMENTEDrelativeDestPath - NOT YET DOCUMENTEDjava.lang.Exception - NOT YET DOCUMENTEDpublic ExportReport getExportReport()
public void exportRecords(java.io.File destDir,
DcsSetInfo dcsSetInfo,
java.lang.String[] statuses,
SessionBean sessionBean)
throws ExportingServiceException
destDir - export directorydcsSetInfo - setInfo for collection to be exportedstatuses - record statuses to be exportedsessionBean - NOT YET DOCUMENTEDExportingServiceException - if unable to exportpublic void exportRecords(java.io.File destDir,
DcsSetInfo dcsSetInfo,
java.lang.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 DOCUMENTEDpublic void exportRecords(java.util.List idsToExport,
java.io.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(java.lang.String s)
s - The String to print.