public class ElectronicPaymentClaimingServiceImpl extends Object implements ElectronicPaymentClaimingService
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CLAIMING_DOC_HELPER_BEAN_NAME |
protected static String |
CLAIMING_NOTE_PRELUDE |
protected static String |
DI_CLAIMING_DOC_HELPER_BEAN_NAME |
protected static String |
ELECTRONIC_FUNDS_CLAIM_SUMMARIES_PER_NOTE_PARAMETER |
protected static String |
ELECTRONIC_FUNDS_CLAIMANT_GROUP_PARAMETER |
protected static String |
ELECTRONIC_PAYMENT_ADMINISTRATOR_GROUP_PARAM_NAME |
protected static String |
ELECTRONIC_PAYMENT_CLAIM_ACCOUNTS_PARAMETER |
protected static String |
YEDI_CLAIMING_DOC_HELPER_BEAN_NAME |
| Constructor and Description |
|---|
ElectronicPaymentClaimingServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
claimElectronicPayments(List<ElectronicPaymentClaim> payments,
String documentNumber)
Sets the referenceFinancialDocumentNumber on each of the payments passed in with the given document number and then saves
them.
|
protected String |
constructNoteText(List<ElectronicPaymentClaim> claims,
int startPoint,
int maxSummariesPerNote)
This creates a note for the given point in the list of summaries.
|
List<String> |
constructNoteTextsForClaims(List<ElectronicPaymentClaim> claims)
Constructs a List of Notes that detail which ElectronicPaymentClaim records have been claimed by a document
|
protected ElectronicPaymentClaim |
createElectronicPayment(AdvanceDepositDocument document,
AccountingLine accountingLine)
Creates an electronic payment claim record to match the given accounting line on the document
|
String |
createPaymentClaimingDocument(List<ElectronicPaymentClaim> claims,
ElectronicPaymentClaimingDocumentGenerationStrategy documentCreationHelper,
org.kuali.rice.kim.api.identity.Person user)
Given a List of ElectronicPaymentClaim records and a ElectronicPaymentClaimingDocumentGenerationStrategy document helper
implementation, creates a document that will claim; this method should also do the work of "claiming" each of the given
ElectronicPaymentClaim records by filling in their referenceFinancialDocumentNumber field.
|
protected String |
createSummaryLineForClaim(ElectronicPaymentClaim claim)
Creates a summary line for a note from a claim
|
void |
declaimElectronicPaymentClaimsForDocument(org.kuali.rice.krad.document.Document document)
Unclaims all ElectronicPaymentClaim records claimed by the given document, by setting the ElectronicPaymentClaim's reference
document to null.
|
List<ElectronicPaymentClaim> |
generateElectronicPaymentClaimRecords(AdvanceDepositDocument doc)
Returns a list of SAVED electronic payment claims from the lines of an AdvanceDepositDocument
|
List<ElectronicPaymentClaimingDocumentGenerationStrategy> |
getClaimingDocumentChoices(org.kuali.rice.kim.api.identity.Person user)
Returns a list of which document types the given user can claim Electronic Payment Claims with.
|
boolean |
isAuthorizedForClaimingElectronicPayment(org.kuali.rice.kim.api.identity.Person user,
String workflowDocumentTypeName)
check whether the given user has permission to claim eletronic payment for the given document type defined in the specified
namespace
|
boolean |
representsElectronicFundAccount(AccountingLine accountingLine)
Determines if the given accounting line represents an electronic payment
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.
|
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Sets the dateTimeService attribute value.
|
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
Sets the documentService attribute value.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the parameterService attribute value.
|
protected static final String ELECTRONIC_FUNDS_CLAIMANT_GROUP_PARAMETER
protected static final String ELECTRONIC_PAYMENT_ADMINISTRATOR_GROUP_PARAM_NAME
protected static final String ELECTRONIC_FUNDS_CLAIM_SUMMARIES_PER_NOTE_PARAMETER
protected static final String CLAIMING_NOTE_PRELUDE
protected static final String DI_CLAIMING_DOC_HELPER_BEAN_NAME
protected static final String YEDI_CLAIMING_DOC_HELPER_BEAN_NAME
protected static final String CLAIMING_DOC_HELPER_BEAN_NAME
protected static final String ELECTRONIC_PAYMENT_CLAIM_ACCOUNTS_PARAMETER
public ElectronicPaymentClaimingServiceImpl()
public List<String> constructNoteTextsForClaims(List<ElectronicPaymentClaim> claims)
ElectronicPaymentClaimingServiceconstructNoteTextsForClaims in interface ElectronicPaymentClaimingServiceclaims - the ElectronicPaymentClaim record that will be claimed by a documentorg.kuali.ole.sys.service.ElectronicPaymentClaimingService#constructNotesForClaims(java.util.List)protected String constructNoteText(List<ElectronicPaymentClaim> claims, int startPoint, int maxSummariesPerNote)
claims - a List of ElectronicPaymentClaim records that are being claimedstartPoint - the point in the list the note is starting atmaxSummariesPerNote - the number of ElectronicPaymentClaim summaries we can have on a noteprotected String createSummaryLineForClaim(ElectronicPaymentClaim claim)
claim - the electronic payment claim to summarizepublic String createPaymentClaimingDocument(List<ElectronicPaymentClaim> claims, ElectronicPaymentClaimingDocumentGenerationStrategy documentCreationHelper, org.kuali.rice.kim.api.identity.Person user)
ElectronicPaymentClaimingServicecreatePaymentClaimingDocument in interface ElectronicPaymentClaimingServiceclaims - the List of ElectronicPaymentClaim records to claim with a documentdocumentCreationHelper - the document helper which will help this method in constructing the claiming documentuser - the Person record of the user who is claiming the given electronic paymentsorg.kuali.ole.sys.service.ElectronicPaymentClaimingService#createPaymentClaimingDocument(java.util.List,
org.kuali.ole.sys.service.ElectronicPaymentClaimingDocumentGenerationStrategy)public List<ElectronicPaymentClaimingDocumentGenerationStrategy> getClaimingDocumentChoices(org.kuali.rice.kim.api.identity.Person user)
ElectronicPaymentClaimingServicegetClaimingDocumentChoices in interface ElectronicPaymentClaimingServiceuser - the user attempting to use a document to claim ElectronicPaymentClaim recordsElectronicPaymentClaimingService.getClaimingDocumentChoices(org.kuali.rice.kim.api.identity.Person)public void claimElectronicPayments(List<ElectronicPaymentClaim> payments, String documentNumber)
claimElectronicPayments in interface ElectronicPaymentClaimingServicepayments - a list of payments to claimdocmentNumber - the document number of the claiming documentpublic void declaimElectronicPaymentClaimsForDocument(org.kuali.rice.krad.document.Document document)
ElectronicPaymentClaimingServicedeclaimElectronicPaymentClaimsForDocument in interface ElectronicPaymentClaimingServicedocument - the document that claimed ElectronicPaymentClaims and now needs to give them backElectronicPaymentClaimingService.declaimElectronicPaymentClaimsForDocument(org.kuali.rice.krad.document.Document)public boolean isAuthorizedForClaimingElectronicPayment(org.kuali.rice.kim.api.identity.Person user, String workflowDocumentTypeName)
ElectronicPaymentClaimingServiceisAuthorizedForClaimingElectronicPayment in interface ElectronicPaymentClaimingServiceuser - the given user being checkedworkflowDocumentTypeName - the workflow document type name of the document being claimedorg.kuali.ole.sys.service.ElectronicPaymentClaimingService#isAuthorizedForClaimingElectronicPayment(org.kuali.rice.kim.api.identity.Person,
java.lang.String, java.lang.String)public List<ElectronicPaymentClaim> generateElectronicPaymentClaimRecords(AdvanceDepositDocument doc)
ElectronicPaymentClaimingServicegenerateElectronicPaymentClaimRecords in interface ElectronicPaymentClaimingServicedoc - the document that is generating electronic payment claim recordsElectronicPaymentClaimingService.generateElectronicPaymentClaimRecords(org.kuali.ole.fp.document.AdvanceDepositDocument)public boolean representsElectronicFundAccount(AccountingLine accountingLine)
representsElectronicFundAccount in interface ElectronicPaymentClaimingServiceaccountingLine - the accounting line to checkprotected ElectronicPaymentClaim createElectronicPayment(AdvanceDepositDocument document, AccountingLine accountingLine)
accountingLine - an accounting line that an electronic payment claim record should be created forpublic void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService - The businessObjectService to set.public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
documentService - The documentService to set.public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService - The parameterService to set.public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService - The dateTimeService to set.Copyright © 2004–2016 The Kuali Foundation. All rights reserved.