@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.
|
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 |
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)
FormatService
getDataForFormat
in interface FormatService
user
- 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)
FormatService
getFormatProcessStartDate
in interface FormatService
campus
- 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)
FormatService
startFormatProcess
in interface FormatService
FormatService.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
FormatService
performFormat
in interface FormatService
FormatException
FormatService.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)
FormatService
clearUnfinishedFormat
in interface FormatService
FormatService.clearUnfinishedFormat(java.lang.Integer)
public void resetFormatPayments(Integer processId)
FormatService
resetFormatPayments
in interface FormatService
FormatService.resetFormatPayments(java.lang.Integer)
public void endFormatProcess(String campus)
FormatService
endFormatProcess
in interface FormatService
FormatService.endFormatProcess(java.lang.String)
public List<CustomerProfile> getAllCustomerProfiles()
FormatService
getAllCustomerProfiles
in interface FormatService
FormatService.getAllCustomerProfiles()
public List<DisbursementNumberRange> getAllDisbursementNumberRanges()
FormatService
getAllDisbursementNumberRanges
in interface FormatService
FormatService.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 forDisbursementNumberRange
public 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()
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.