|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.ld.batch.service.impl.FileEnterpriseFeederServiceImpl
public class FileEnterpriseFeederServiceImpl
This class iterates through the files in the enterprise feeder staging directory, which is injected by Spring. Note: this class is NOT annotated as transactional. This allows the helper service, which is defined as transactional, to do a per-file transaction.
Field Summary |
---|
Fields inherited from interface org.kuali.kfs.module.ld.batch.service.EnterpriseFeederService |
---|
DATA_FILE_SUFFIX, DONE_FILE_SUFFIX, RECON_FILE_SUFFIX |
Constructor Summary | |
---|---|
FileEnterpriseFeederServiceImpl()
|
Method Summary | |
---|---|
void |
feed(String processName,
boolean performNotifications)
Feeds file sets in the directory whose name is returned by the invocation to getDirectoryName() |
protected void |
generateFilesLoadedStatusReport(List<EnterpriseFeederStatusAndErrorMessagesWrapper> statusAndErrorsList)
|
protected void |
generateReport(List<EnterpriseFeederStatusAndErrorMessagesWrapper> statusAndErrorsList,
LedgerSummaryReport report,
String outputFileName)
|
protected File |
getDataFile(File doneFile)
Given the doneFile, this method finds the data file corresponding to the done file |
org.kuali.rice.kns.service.DateTimeService |
getDateTimeService()
Gets the dateTimeService attribute. |
String |
getDirectoryName()
Gets the directoryName attribute. |
EnterpriseFeederNotificationService |
getEnterpriseFeederNotificationService()
Gets the enterpriseFeederNotificationService attribute. |
FileEnterpriseFeederHelperService |
getFileEnterpriseFeederHelperService()
Gets the fileEnterpriseFeederHelperService attribute. |
OriginEntryGroupService |
getOriginEntryGroupService()
Gets the originEntryGroupService attribute. |
String |
getReconciliationTableId()
Gets the reconciliationTableId attribute. |
protected File |
getReconFile(File doneFile)
Given the doneFile, this method finds the reconciliation file corresponding to the data file |
protected void |
reorderDoneFiles(File[] doneFiles)
Reorders the files in case there's a dependency on the order in which files are fed upon. |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the dateTimeService attribute value. |
void |
setDirectoryName(String directoryName)
Sets the directoryName attribute value. |
void |
setEnterpriseFeederNotificationService(EnterpriseFeederNotificationService enterpriseFeederNotificationService)
Sets the enterpriseFeederNotificationService attribute value. |
void |
setFileEnterpriseFeederHelperService(FileEnterpriseFeederHelperService fileEnterpriseFeederHelperServiceImpl)
Sets the fileEnterpriseFeederHelperService attribute value. |
void |
setLaborOriginEntryDirectoryName(String laborOriginEntryDirectoryName)
Sets the laborOriginEntryDirectoryName attribute value. |
void |
setOriginEntryGroupService(OriginEntryGroupService originEntryGroupService)
Sets the originEntryGroupService attribute value. |
void |
setReconciliationTableId(String reconciliationTableId)
Sets the reconciliationTableId attribute value. |
void |
setReportWriterService(ReportWriterService reportWriterService)
Sets the reportWriterService attribute value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileEnterpriseFeederServiceImpl()
Method Detail |
---|
public void feed(String processName, boolean performNotifications)
feed
in interface EnterpriseFeederService
processName
- this merely identifies the process executing the feed. It will be used to build any error messages, but
computationally it should be ignored.performNotifications
- whether notifications should be sent outorg.kuali.kfs.gl.batch.service.EnterpriseFeederService#feed(java.lang.String)
public void setLaborOriginEntryDirectoryName(String laborOriginEntryDirectoryName)
laborOriginEntryDirectoryName
- The laborOriginEntryDirectoryName to set.protected void reorderDoneFiles(File[] doneFiles)
doneFiles
- protected File getDataFile(File doneFile)
doneFile
-
protected File getReconFile(File doneFile)
doneFile
-
public String getDirectoryName()
getDirectoryName
in interface EnterpriseFeederService
public void setDirectoryName(String directoryName)
directoryName
- The directoryName to set.public OriginEntryGroupService getOriginEntryGroupService()
public void setOriginEntryGroupService(OriginEntryGroupService originEntryGroupService)
originEntryGroupService
- The originEntryGroupService to set.public org.kuali.rice.kns.service.DateTimeService getDateTimeService()
public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.public FileEnterpriseFeederHelperService getFileEnterpriseFeederHelperService()
public void setFileEnterpriseFeederHelperService(FileEnterpriseFeederHelperService fileEnterpriseFeederHelperServiceImpl)
fileEnterpriseFeederHelperService
- The fileEnterpriseFeederHelperService to set.public EnterpriseFeederNotificationService getEnterpriseFeederNotificationService()
public void setEnterpriseFeederNotificationService(EnterpriseFeederNotificationService enterpriseFeederNotificationService)
enterpriseFeederNotificationService
- The enterpriseFeederNotificationService to set.public String getReconciliationTableId()
public void setReconciliationTableId(String reconciliationTableId)
reconciliationTableId
- The reconciliationTableId to set.protected void generateReport(List<EnterpriseFeederStatusAndErrorMessagesWrapper> statusAndErrorsList, LedgerSummaryReport report, String outputFileName)
protected void generateFilesLoadedStatusReport(List<EnterpriseFeederStatusAndErrorMessagesWrapper> statusAndErrorsList)
public void setReportWriterService(ReportWriterService reportWriterService)
reportWriterService
- The reportWriterService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |