public class DistributionOfIncomeAndExpenseElectronicPaymentClaimingHelperStrategyImpl extends Object implements ElectronicPaymentClaimingDocumentGenerationStrategy
Modifier and Type | Field and Description |
---|---|
protected static String |
DOCUMENT_DESCRIPTION_PARAM_NAME
The name of the parameter to get the description for this document; without a description, we can't save the document, and if
we don't save the document, there's a chance that electronic payment claims will go to limbo
|
protected org.kuali.rice.krad.service.DocumentService |
documentService |
protected ElectronicPaymentClaimingService |
electronicPaymentClaimingService |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
parameterService |
protected static String |
URL_DOC_TYPE |
protected static String |
URL_MIDDLE |
protected static String |
URL_PREFIX |
protected static String |
URL_SUFFIX |
Constructor and Description |
---|
DistributionOfIncomeAndExpenseElectronicPaymentClaimingHelperStrategyImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAccountingLinesToDocument(DistributionOfIncomeAndExpenseDocument document,
List<ElectronicPaymentClaim> electronicPayments)
Adds an accounting line to the document for each ElectronicPaymentClaim record that is being added
|
protected void |
addDescriptionToDocument(DistributionOfIncomeAndExpenseDocument document)
Adds the parameterized description to the document, so the doc can be saved
|
protected void |
addNotesToDocument(DistributionOfIncomeAndExpenseDocument claimingDoc,
List<ElectronicPaymentClaim> claims,
org.kuali.rice.kim.api.identity.Person user)
Creates notes for the claims (using the ElectronicPaymentClaimingService) and then adds them to the document
|
protected SourceAccountingLine |
copyAccountingLineToNew(SourceAccountingLine line,
SourceAccountingLine newLine)
Copies an original accounting line to a new accounting line
|
String |
createDocumentFromElectronicPayments(List<ElectronicPaymentClaim> electronicPayments,
org.kuali.rice.kim.api.identity.Person user)
Creates a document to claim a given list of ElectronicPaymentClaim records.
|
protected SourceAccountingLine |
createNewAccountingLineForDocument(DistributionOfIncomeAndExpenseDocument document)
Creates a new accounting line, based on what the source accounting line class for the document is
|
String |
getClaimingDocumentWorkflowDocumentType()
get the workflow document type code of the claiming document
|
String |
getDocumentLabel()
Uses the data dictionary to find the label for this document
|
protected String |
getUrlDocType() |
protected String |
getURLForDocument(DistributionOfIncomeAndExpenseDocument doc)
Builds the URL that can be used to redirect to the correct document
|
boolean |
isDocumentReferenceValid(String referenceDocumentNumber)
Determines whether the given document number would be considered valid by the system that the document this strategy
interacts with
|
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
Sets the documentService attribute value.
|
void |
setElectronicPaymentClaimingService(ElectronicPaymentClaimingService electronicPaymentClaimingService)
Sets the electronicPaymentClaimingService attribute value.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the parameterService attribute value.
|
boolean |
userMayUseToClaim(org.kuali.rice.kim.api.identity.Person claimingUser)
This always returns true if the given user in the claiming workgroup.
|
protected org.kuali.rice.krad.service.DocumentService documentService
protected ElectronicPaymentClaimingService electronicPaymentClaimingService
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
protected static final String DOCUMENT_DESCRIPTION_PARAM_NAME
protected static final String URL_PREFIX
protected static final String URL_MIDDLE
protected static final String URL_SUFFIX
protected static final String URL_DOC_TYPE
public DistributionOfIncomeAndExpenseElectronicPaymentClaimingHelperStrategyImpl()
public String createDocumentFromElectronicPayments(List<ElectronicPaymentClaim> electronicPayments, org.kuali.rice.kim.api.identity.Person user)
ElectronicPaymentClaimingDocumentGenerationStrategy
createDocumentFromElectronicPayments
in interface ElectronicPaymentClaimingDocumentGenerationStrategy
electronicPayments
- a List of ElectronicPaymentClaim recordsuser
- the user doing the claimingorg.kuali.ole.sys.service.ElectronicPaymentClaimingDocumentGenerationStrategy#createDocumentFromElectronicPayments(java.util.List)
protected String getURLForDocument(DistributionOfIncomeAndExpenseDocument doc)
doc
- the document to build the URL forprotected void addNotesToDocument(DistributionOfIncomeAndExpenseDocument claimingDoc, List<ElectronicPaymentClaim> claims, org.kuali.rice.kim.api.identity.Person user)
claimingDoc
- the claiming documentclaims
- the electronic payments being claimeduser
- the user doing the claimingprotected void addAccountingLinesToDocument(DistributionOfIncomeAndExpenseDocument document, List<ElectronicPaymentClaim> electronicPayments)
document
- the claiming Distribution of Income and Expense documentelectronicPayments
- the list of ElectronicPaymentClaim records that are being claimedprotected void addDescriptionToDocument(DistributionOfIncomeAndExpenseDocument document)
document
- the document to add a description toprotected SourceAccountingLine createNewAccountingLineForDocument(DistributionOfIncomeAndExpenseDocument document)
document
- the document that is claiming these paymentsprotected SourceAccountingLine copyAccountingLineToNew(SourceAccountingLine line, SourceAccountingLine newLine)
line
- the original accounting linepublic String getClaimingDocumentWorkflowDocumentType()
ElectronicPaymentClaimingDocumentGenerationStrategy
getClaimingDocumentWorkflowDocumentType
in interface ElectronicPaymentClaimingDocumentGenerationStrategy
ElectronicPaymentClaimingDocumentGenerationStrategy.getClaimingDocumentWorkflowDocumentType()
protected String getUrlDocType()
public String getDocumentLabel()
getDocumentLabel
in interface ElectronicPaymentClaimingDocumentGenerationStrategy
ElectronicPaymentClaimingDocumentGenerationStrategy.getDocumentLabel()
public boolean userMayUseToClaim(org.kuali.rice.kim.api.identity.Person claimingUser)
userMayUseToClaim
in interface ElectronicPaymentClaimingDocumentGenerationStrategy
claimingUser
- the user attempting to claim ElectronicPaymentClaim records with a documentElectronicPaymentClaimingDocumentGenerationStrategy.userMayUseToClaim(org.kuali.rice.kim.api.identity.Person)
public boolean isDocumentReferenceValid(String referenceDocumentNumber)
ElectronicPaymentClaimingDocumentGenerationStrategy
isDocumentReferenceValid
in interface ElectronicPaymentClaimingDocumentGenerationStrategy
referenceDocumentNumber
- the document number reference to validateElectronicPaymentClaimingDocumentGenerationStrategy.isDocumentReferenceValid(java.lang.String)
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
documentService
- The documentService to set.public void setElectronicPaymentClaimingService(ElectronicPaymentClaimingService electronicPaymentClaimingService)
electronicPaymentClaimingService
- The electronicPaymentClaimingService to set.public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService
- The parameterService to set.Copyright © 2004–2014 The Kuali Foundation. All rights reserved.