org.kuali.kfs.module.bc.document.service.impl
Class PayrateImportServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.bc.document.service.impl.PayrateImportServiceImpl
All Implemented Interfaces:
PayrateImportService

public class PayrateImportServiceImpl
extends Object
implements PayrateImportService


Nested Class Summary
protected static class PayrateImportServiceImpl.DefaultImportFileFormat
          File format for payrate import file
 
Constructor Summary
PayrateImportServiceImpl()
           
 
Method Summary
protected  void doRollback()
          If retrieving budget locks fails, this method rolls back previous changes
 void generatePdf(List<ExternalizedMessageWrapper> logMessages, ByteArrayOutputStream baos)
          Generates the log file
protected  String getLockingKeyString(PendingBudgetConstructionAppointmentFunding record)
          Creates the locking key to use in retrieving account locks
protected  boolean getPayrateLock(List<PendingBudgetConstructionAppointmentFunding> lockedRecords, List<ExternalizedMessageWrapper> messageList, Integer budgetYear, org.kuali.rice.kim.bo.Person user, List<BudgetConstructionPayRateHolding> records)
          Retrieves Account locks for payrate import records
 boolean importFile(InputStream fileImportStream, List<ExternalizedMessageWrapper> messageList, String principalId)
          Parses file and creates payrate holding records for each import line
 void setBudgetDocumentService(BudgetDocumentService budgetDocumentService)
          Sets the budgetDocumentService attribute value.
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the business object service
 void setLockService(LockService lockService)
          sets lock service
 void setOptionsService(OptionsService optionsService)
          sets option service
 void setPayrateImportDao(PayrateImportDao payrateImportDao)
          sets payrate import dao
 void update(Integer budgetYear, org.kuali.rice.kim.bo.Person user, List<ExternalizedMessageWrapper> messageList, String principalId)
          Processes all payrate holding records
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PayrateImportServiceImpl

public PayrateImportServiceImpl()
Method Detail

importFile

@Transactional
public boolean importFile(InputStream fileImportStream,
                                        List<ExternalizedMessageWrapper> messageList,
                                        String principalId)
Description copied from interface: PayrateImportService
Parses file and creates payrate holding records for each import line

Specified by:
importFile in interface PayrateImportService
Returns:
See Also:
org.kuali.kfs.module.bc.service.PayrateImportService#importFile(java.io.InputStream)

update

@Transactional
public void update(Integer budgetYear,
                                 org.kuali.rice.kim.bo.Person user,
                                 List<ExternalizedMessageWrapper> messageList,
                                 String principalId)
Description copied from interface: PayrateImportService
Processes all payrate holding records

Specified by:
update in interface PayrateImportService
See Also:
org.kuali.kfs.module.bc.service.PayrateImportService#update()

generatePdf

public void generatePdf(List<ExternalizedMessageWrapper> logMessages,
                        ByteArrayOutputStream baos)
                 throws com.lowagie.text.DocumentException
Description copied from interface: PayrateImportService
Generates the log file

Specified by:
generatePdf in interface PayrateImportService
Throws:
com.lowagie.text.DocumentException
See Also:
org.kuali.kfs.module.bc.service.PayrateImportService#generatePdf(java.lang.StringBuilder, java.io.ByteArrayOutputStream)

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the business object service

Parameters:
businessObjectService -

setLockService

public void setLockService(LockService lockService)
sets lock service

Parameters:
lockService -

setOptionsService

public void setOptionsService(OptionsService optionsService)
sets option service

Parameters:
optionsService -

setPayrateImportDao

public void setPayrateImportDao(PayrateImportDao payrateImportDao)
sets payrate import dao

Parameters:
payrateImportDao -

setBudgetDocumentService

public void setBudgetDocumentService(BudgetDocumentService budgetDocumentService)
Sets the budgetDocumentService attribute value.

Parameters:
budgetDocumentService - The budgetDocumentService to set.

getLockingKeyString

protected String getLockingKeyString(PendingBudgetConstructionAppointmentFunding record)
Creates the locking key to use in retrieving account locks

Parameters:
record -
Returns:

getPayrateLock

@Transactional
protected boolean getPayrateLock(List<PendingBudgetConstructionAppointmentFunding> lockedRecords,
                                               List<ExternalizedMessageWrapper> messageList,
                                               Integer budgetYear,
                                               org.kuali.rice.kim.bo.Person user,
                                               List<BudgetConstructionPayRateHolding> records)
Retrieves Account locks for payrate import records

Parameters:
lockMap -
messageList -
budgetYear -
user -
records -
Returns:

doRollback

protected void doRollback()
If retrieving budget locks fails, this method rolls back previous changes



Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.