public class BudgetRequestImportServiceImpl extends Object implements BudgetRequestImportService
Modifier and Type | Field and Description |
---|---|
protected BudgetDocumentService |
budgetDocumentService |
protected BudgetParameterService |
budgetParameterService |
protected org.kuali.rice.krad.service.BusinessObjectService |
businessObjectService |
protected org.kuali.rice.kns.service.DictionaryValidationService |
dictionaryValidationService |
protected org.kuali.rice.kns.service.DocumentHelperService |
documentHelperService |
protected org.kuali.rice.krad.service.DocumentService |
documentService |
protected ImportRequestDao |
importRequestDao |
protected LaborModuleService |
laborModuleService |
protected LockService |
lockService |
protected OptionsService |
optionsService |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
parameterService |
protected org.kuali.rice.krad.service.PersistenceService |
persistenceServiceOjb |
Constructor and Description |
---|
BudgetRequestImportServiceImpl() |
Modifier and Type | Method and Description |
---|---|
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.krad.service.DocumentService |
getDocumentService() |
ImportRequestDao |
getImportRequestDao() |
LaborModuleService |
getLaborModuleService() |
protected ObjectCode |
getObjectCode(BudgetConstructionRequestMove record,
Integer budgetYear) |
OptionsService |
getOptionsService() |
org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService()
Gets the parameterService attribute.
|
org.kuali.rice.krad.service.PersistenceService |
getPersistenceServiceOjb()
Gets the persistenceServiceOjb attribute.
|
protected SubObjectCode |
getSubObjectCode(BudgetConstructionRequestMove record,
Integer budgetYear) |
List<String> |
loadBudget(org.kuali.rice.kim.api.identity.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.krad.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.krad.service.DocumentService documentService) |
void |
setImportRequestDao(ImportRequestDao dao) |
void |
setLaborModuleService(LaborModuleService laborModuleService) |
void |
setLockService(LockService lockService) |
void |
setOptionsService(OptionsService optionsService) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the parameterService attribute.
|
void |
setPersistenceServiceOjb(org.kuali.rice.krad.service.PersistenceService persistenceServiceOjb)
Sets the persistenceServiceOjb attribute.
|
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
|
protected org.kuali.rice.krad.service.BusinessObjectService businessObjectService
protected ImportRequestDao importRequestDao
protected org.kuali.rice.kns.service.DictionaryValidationService dictionaryValidationService
protected LockService lockService
protected BudgetDocumentService budgetDocumentService
protected LaborModuleService laborModuleService
protected BudgetParameterService budgetParameterService
protected OptionsService optionsService
protected org.kuali.rice.kns.service.DocumentHelperService documentHelperService
protected org.kuali.rice.krad.service.DocumentService documentService
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
protected org.kuali.rice.krad.service.PersistenceService persistenceServiceOjb
public BudgetRequestImportServiceImpl()
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.krad.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.api.identity.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.krad.service.DocumentService getDocumentService()
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
public org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService
- The parameterService to set.public org.kuali.rice.krad.service.PersistenceService getPersistenceServiceOjb()
public void setPersistenceServiceOjb(org.kuali.rice.krad.service.PersistenceService persistenceServiceOjb)
persistenceServiceOjb
- The persistenceServiceOjb to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.