@Transactional public class FormatServiceImpl extends Object implements FormatService
| Modifier and Type | Class and Description |
|---|---|
protected class |
FormatServiceImpl.PaymentInfo
This class holds disbursement number and noteLines info for payment group disbursement number assignment and combine checks.
|
| Modifier and Type | Field and Description |
|---|---|
protected AchService |
achService |
protected org.kuali.rice.krad.service.BusinessObjectService |
businessObjectService |
protected org.kuali.rice.core.api.datetime.DateTimeService |
dateTimeService |
protected ExtractPaymentService |
extractPaymentService |
protected FormatPaymentDao |
formatPaymentDao |
protected PendingTransactionService |
glPendingTransactionService |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
parameterService |
protected PaymentDetailDao |
paymentDetailDao |
protected PaymentGroupDao |
paymentGroupDao |
protected PaymentGroupService |
paymentGroupService |
protected org.kuali.rice.kim.api.identity.PersonService |
personService |
protected ProcessDao |
processDao |
protected SchedulerService |
schedulerService |
| Constructor and Description |
|---|
FormatServiceImpl()
Constructs a FormatServiceImpl.java.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.kuali.rice.core.api.util.type.KualiInteger |
assignDisbursementNumber(String campus,
DisbursementNumberRange range,
PaymentGroup paymentGroup,
FormatProcessSummary postFormatProcessSummary)
This method gets a new disbursement number and sets it on the payment group and process summary.
|
protected boolean |
assignDisbursementNumbersAndCombineChecks(PaymentProcess paymentProcess,
FormatProcessSummary postFormatProcessSummary)
This method assigns disbursement numbers and tries to combine payment groups with disbursement type check if possible.
|
void |
clearUnfinishedFormat(Integer processId)
If the start format process was run and the user doesn't want to continue,
this needs to be run to set all payments back to open.
|
void |
endFormatProcess(String campus)
This method removes the format process from the format process table
|
protected void |
extractChecks()
runs the extract process.
|
List<CustomerProfile> |
getAllCustomerProfiles()
This method gets all customer profiles
|
List<DisbursementNumberRange> |
getAllDisbursementNumberRanges()
This method gets all disbursement number ranges
|
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute.
|
FormatSelection |
getDataForFormat(org.kuali.rice.kim.api.identity.Person user)
This method gets the data for the format process
|
protected ExtractPaymentService |
getExtractPaymentService()
Gets the extractPaymentService attribute.
|
Date |
getFormatProcessStartDate(String campus)
This method gets the format process by campus code and returns the start date for that process.
|
protected int |
getMaxNoteLines()
This method gets the maximum number of lines in a note.
|
OleSelectDocumentService |
getOleSelectDocumentService() |
protected org.kuali.rice.kim.api.identity.PersonService |
getPersonService() |
protected DisbursementNumberRange |
getRange(List<DisbursementNumberRange> ranges,
Bank bank,
String disbursementTypeCode)
Given the List of disbursement number ranges for the processing campus, finds matches for the bank code and disbursement type
code.
|
void |
performFormat(Integer processId)
This method formats the data for check printing.
|
protected boolean |
processPaymentGroup(PaymentGroup paymentGroup,
PaymentProcess paymentProcess)
This method processes the payment group data.
|
void |
resetFormatPayments(Integer processId)
If the start format process was run and errored out,
this needs to be run to allow formats to continue to function
|
void |
setAchService(AchService as)
This method sets the achService
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService bos)
This method sets the businessObjectService
|
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
This method sets the dateTimeService
|
void |
setExtractPaymentService(ExtractPaymentService extractPaymentService)
Sets the extractPaymentService attribute value.
|
void |
setFormatPaymentDao(FormatPaymentDao fpd)
This method sets the formatPaymentDao
|
void |
setGlPendingTransactionService(PendingTransactionService gs)
This method sets the glPendingTransactionService
|
void |
setOleSelectDocumentService(OleSelectDocumentService oleSelectDocumentService) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
This method sets the parameterService
|
void |
setPaymentDetailDao(PaymentDetailDao pdd)
This method sets the paymentDetailDao
|
void |
setPaymentGroupDao(PaymentGroupDao pgd)
This method sets the paymentGroupDao
|
void |
setPaymentGroupService(PaymentGroupService paymentGroupService)
This method sets the paymentGroupService
|
void |
setProcessDao(ProcessDao pd)
This method sets the processDao
|
void |
setSchedulerService(SchedulerService ss)
This method sets the schedulerService
|
FormatProcessSummary |
startFormatProcess(org.kuali.rice.kim.api.identity.Person user,
String campus,
List<CustomerProfile> customers,
Date paydate,
String paymentTypes)
This method marks the process log so a format only happens once per campus.
|
protected boolean |
validateAndUpdatePaymentGroupBankCode(PaymentGroup paymentGroup,
DisbursementType disbursementType,
CustomerProfile customer)
Verifies a valid bank is set on the payment group.
|
protected PaymentDetailDao paymentDetailDao
protected PaymentGroupDao paymentGroupDao
protected ProcessDao processDao
protected AchService achService
protected PendingTransactionService glPendingTransactionService
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
protected FormatPaymentDao formatPaymentDao
protected SchedulerService schedulerService
protected org.kuali.rice.krad.service.BusinessObjectService businessObjectService
protected PaymentGroupService paymentGroupService
protected org.kuali.rice.core.api.datetime.DateTimeService dateTimeService
protected ExtractPaymentService extractPaymentService
protected org.kuali.rice.kim.api.identity.PersonService personService
public FormatServiceImpl()
public FormatSelection getDataForFormat(org.kuali.rice.kim.api.identity.Person user)
FormatServicegetDataForFormat in interface FormatServiceuser - the user that initiated the format processorg.kuali.ole.pdp.service.FormatProcessService#getDataForFormat(org.kuali.rice.kim.api.identity.Person)public Date getFormatProcessStartDate(String campus)
FormatServicegetFormatProcessStartDate in interface FormatServicecampus - the campus codeFormatService.getFormatProcessStartDate(java.lang.String)public FormatProcessSummary startFormatProcess(org.kuali.rice.kim.api.identity.Person user, String campus, List<CustomerProfile> customers, Date paydate, String paymentTypes)
FormatServicestartFormatProcess in interface FormatServiceFormatService.startFormatProcess(org.kuali.rice.kim.api.identity.Person, java.lang.String,
java.util.List, java.util.Date, java.lang.String)protected int getMaxNoteLines()
public void performFormat(Integer processId) throws FormatException
FormatServiceperformFormat in interface FormatServiceFormatExceptionFormatService.performFormat(java.lang.Integer)protected boolean processPaymentGroup(PaymentGroup paymentGroup, PaymentProcess paymentProcess)
paymentGroup - paymentProcess - protected boolean validateAndUpdatePaymentGroupBankCode(PaymentGroup paymentGroup, DisbursementType disbursementType, CustomerProfile customer)
paymentGroup - group to set bank ondisbursementType - type of disbursement for given payment groupcustomer - customer profile for payment groupprotected boolean assignDisbursementNumbersAndCombineChecks(PaymentProcess paymentProcess, FormatProcessSummary postFormatProcessSummary)
paymentProcess - postFormatProcessSummary - protected org.kuali.rice.core.api.util.type.KualiInteger assignDisbursementNumber(String campus, DisbursementNumberRange range, PaymentGroup paymentGroup, FormatProcessSummary postFormatProcessSummary)
campus - range - paymentGroup - postFormatProcessSummary - protected void extractChecks()
public void clearUnfinishedFormat(Integer processId)
FormatServiceclearUnfinishedFormat in interface FormatServiceFormatService.clearUnfinishedFormat(java.lang.Integer)public void resetFormatPayments(Integer processId)
FormatServiceresetFormatPayments in interface FormatServiceFormatService.resetFormatPayments(java.lang.Integer)public void endFormatProcess(String campus)
FormatServiceendFormatProcess in interface FormatServiceFormatService.endFormatProcess(java.lang.String)public List<CustomerProfile> getAllCustomerProfiles()
FormatServicegetAllCustomerProfiles in interface FormatServiceFormatService.getAllCustomerProfiles()public List<DisbursementNumberRange> getAllDisbursementNumberRanges()
FormatServicegetAllDisbursementNumberRanges in interface FormatServiceFormatService.getAllDisbursementNumberRanges()protected DisbursementNumberRange getRange(List<DisbursementNumberRange> ranges, Bank bank, String disbursementTypeCode)
ranges - List of disbursement ranges to search (already filtered to processing campus, active, and start date before or
equal to today)bank - bank code to find range fordisbursementTypeCode - disbursement type code to find range forDisbursementNumberRangepublic void setFormatPaymentDao(FormatPaymentDao fpd)
fpd - public void setGlPendingTransactionService(PendingTransactionService gs)
gs - public void setAchService(AchService as)
as - public void setProcessDao(ProcessDao pd)
pd - public void setPaymentGroupDao(PaymentGroupDao pgd)
pgd - public void setPaymentDetailDao(PaymentDetailDao pdd)
pdd - public void setSchedulerService(SchedulerService ss)
ss - public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService - public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService bos)
bos - public void setPaymentGroupService(PaymentGroupService paymentGroupService)
paymentGroupService - public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService - protected ExtractPaymentService getExtractPaymentService()
public void setExtractPaymentService(ExtractPaymentService extractPaymentService)
extractPaymentService - The extractPaymentService to set.protected org.kuali.rice.kim.api.identity.PersonService getPersonService()
public OleSelectDocumentService getOleSelectDocumentService()
public void setOleSelectDocumentService(OleSelectDocumentService oleSelectDocumentService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.