|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.bc.document.service.impl.BudgetRequestImportServiceImpl
public class BudgetRequestImportServiceImpl
Contains services relevent to the budget construction import request process
Constructor Summary | |
---|---|
BudgetRequestImportServiceImpl()
|
Method Summary | |
---|---|
protected void |
deleteBudgetConstructionMoveRecords(String principalId)
Clears BudgetConstructionRequestMove |
protected List<BudgetConstructionFundingLock> |
findBudgetLocks(BudgetConstructionRequestMove record,
Integer budgetYear)
|
void |
generatePdf(List<String> errorMessages,
ByteArrayOutputStream baos)
Generates the log file |
BudgetParameterService |
getBudgetParameterService()
|
org.kuali.rice.kns.service.DocumentHelperService |
getDocumentHelperService()
|
protected org.kuali.rice.kns.service.DocumentService |
getDocumentService()
|
ImportRequestDao |
getImportRequestDao()
|
LaborModuleService |
getLaborModuleService()
|
protected ObjectCode |
getObjectCode(BudgetConstructionRequestMove record,
Integer budgetYear)
|
OptionsService |
getOptionsService()
|
protected SubObjectCode |
getSubObjectCode(BudgetConstructionRequestMove record,
Integer budgetYear)
|
List<String> |
loadBudget(org.kuali.rice.kim.bo.Person user,
String fileType,
Integer budgetYear)
Loads all budget request records that do not have error codes |
List |
processImportFile(InputStream fileImportStream,
String principalId,
String fieldSeperator,
String textDelimiter,
String fileType,
Integer budgetYear)
Takes an import request file (either monthly or annual) and creates the BudgetConstructionMove objects for each line of the file. |
void |
setBudgetDocumentService(BudgetDocumentService budgetDocumentService)
Sets BudgetDocumentService |
void |
setBudgetParameterService(BudgetParameterService budgetParameterService)
|
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the business object service |
void |
setDictionaryValidationService(org.kuali.rice.kns.service.DictionaryValidationService dictionaryValidationService)
|
void |
setDocumentHelperService(org.kuali.rice.kns.service.DocumentHelperService documentHelperService)
|
void |
setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
|
void |
setImportRequestDao(ImportRequestDao dao)
|
void |
setLaborModuleService(LaborModuleService laborModuleService)
|
void |
setLockService(LockService lockService)
|
void |
setOptionsService(OptionsService optionsService)
|
protected void |
udpateBenefits(String fileType,
BudgetConstructionHeader header)
Updates benefits |
protected String |
updateBudgetAmounts(String fileType,
BudgetConstructionRequestMove importLine,
BudgetConstructionHeader header,
Integer budgetYear)
updates budget amounts |
List<String> |
validateData(Integer budgetYear,
String principalId)
Checks the imported request records for valid data. |
protected String |
validateLine(BudgetConstructionRequestMove budgetConstructionRequestMove,
int lineNumber,
boolean isAnnual)
Checks line validations and returns error messages for line |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BudgetRequestImportServiceImpl()
Method Detail |
---|
public void generatePdf(List<String> errorMessages, ByteArrayOutputStream baos) throws com.lowagie.text.DocumentException
BudgetRequestImportService
generatePdf
in interface BudgetRequestImportService
com.lowagie.text.DocumentException
BudgetRequestImportService.generatePdf(java.util.List, java.io.ByteArrayOutputStream)
@Transactional public List processImportFile(InputStream fileImportStream, String principalId, String fieldSeperator, String textDelimiter, String fileType, Integer budgetYear) throws IOException
BudgetRequestImportService
processImportFile
in interface BudgetRequestImportService
IOException
org.kuali.kfs.module.bc.document.service.BudgetRequestImportService#processImportFile(java.io.InputStream, java.lang.String,
java.lang.String, java.lang.String)
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- @Transactional public List<String> validateData(Integer budgetYear, String principalId)
BudgetRequestImportService
validateData
in interface BudgetRequestImportService
org.kuali.kfs.module.bc.document.service.BudgetRequestImportService#validateData()
@Transactional public List<String> loadBudget(org.kuali.rice.kim.bo.Person user, String fileType, Integer budgetYear) throws Exception
BudgetRequestImportService
loadBudget
in interface BudgetRequestImportService
Exception
org.kuali.kfs.module.bc.document.service.BudgetRequestImportService#loadBudget()
public ImportRequestDao getImportRequestDao()
org.kuali.kfs.module.bc.document.service.BudgetRequestImportService#getImportRequestDao()
public void setImportRequestDao(ImportRequestDao dao)
org.kuali.kfs.module.bc.document.service.BudgetRequestImportService#setImportRequestDao(org.kuali.kfs.module.bc.document.dataaccess.ImportRequestDao)
protected String updateBudgetAmounts(String fileType, BudgetConstructionRequestMove importLine, BudgetConstructionHeader header, Integer budgetYear)
fileType
- importLine
-
protected void udpateBenefits(String fileType, BudgetConstructionHeader header)
fileType
- importLine
- protected String validateLine(BudgetConstructionRequestMove budgetConstructionRequestMove, int lineNumber, boolean isAnnual)
budgetConstructionRequestMove
- lineNumber
- isAnnual
-
protected ObjectCode getObjectCode(BudgetConstructionRequestMove record, Integer budgetYear)
protected SubObjectCode getSubObjectCode(BudgetConstructionRequestMove record, Integer budgetYear)
protected List<BudgetConstructionFundingLock> findBudgetLocks(BudgetConstructionRequestMove record, Integer budgetYear)
protected void deleteBudgetConstructionMoveRecords(String principalId)
principalId
- public void setDictionaryValidationService(org.kuali.rice.kns.service.DictionaryValidationService dictionaryValidationService)
org.kuali.kfs.module.bc.document.service.BudgetRequestImportService#setDictionaryValidationService(org.kuali.rice.kns.service.DictionaryValidationService)
public void setLockService(LockService lockService)
org.kuali.kfs.module.bc.document.service.BudgetRequestImportService#setLockService(org.kuali.kfs.module.bc.document.service.LockService)
public void setBudgetDocumentService(BudgetDocumentService budgetDocumentService)
budgetDocumentService
- public void setLaborModuleService(LaborModuleService laborModuleService)
public LaborModuleService getLaborModuleService()
public BudgetParameterService getBudgetParameterService()
public void setBudgetParameterService(BudgetParameterService budgetParameterService)
public OptionsService getOptionsService()
public void setOptionsService(OptionsService optionsService)
public org.kuali.rice.kns.service.DocumentHelperService getDocumentHelperService()
public void setDocumentHelperService(org.kuali.rice.kns.service.DocumentHelperService documentHelperService)
protected org.kuali.rice.kns.service.DocumentService getDocumentService()
public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |