|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.fp.batch.service.impl.DistributionOfIncomeAndExpenseElectronicPaymentClaimingHelperStrategyImpl
public class DistributionOfIncomeAndExpenseElectronicPaymentClaimingHelperStrategyImpl
Constructor Summary | |
---|---|
DistributionOfIncomeAndExpenseElectronicPaymentClaimingHelperStrategyImpl()
|
Method Summary | |
---|---|
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.bo.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.bo.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 |
org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService()
Gets the dataDictionaryService attribute. |
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 |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the ddService attribute value. |
void |
setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
Sets the documentService attribute value. |
void |
setElectronicPaymentClaimingService(ElectronicPaymentClaimingService electronicPaymentClaimingService)
Sets the electronicPaymentClaimingService attribute value. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value. |
boolean |
userMayUseToClaim(org.kuali.rice.kim.bo.Person claimingUser)
This always returns true if the given user in the claiming workgroup. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DistributionOfIncomeAndExpenseElectronicPaymentClaimingHelperStrategyImpl()
Method Detail |
---|
public String createDocumentFromElectronicPayments(List<ElectronicPaymentClaim> electronicPayments, org.kuali.rice.kim.bo.Person user)
ElectronicPaymentClaimingDocumentGenerationStrategy
createDocumentFromElectronicPayments
in interface ElectronicPaymentClaimingDocumentGenerationStrategy
electronicPayments
- a List of ElectronicPaymentClaim recordsuser
- the user doing the claiming
org.kuali.kfs.sys.service.ElectronicPaymentClaimingDocumentGenerationStrategy#createDocumentFromElectronicPayments(java.util.List)
protected String getURLForDocument(DistributionOfIncomeAndExpenseDocument doc)
doc
- the document to build the URL for
protected void addNotesToDocument(DistributionOfIncomeAndExpenseDocument claimingDoc, List<ElectronicPaymentClaim> claims, org.kuali.rice.kim.bo.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 payments
protected SourceAccountingLine copyAccountingLineToNew(SourceAccountingLine line, SourceAccountingLine newLine)
line
- the original accounting line
public 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.bo.Person claimingUser)
userMayUseToClaim
in interface ElectronicPaymentClaimingDocumentGenerationStrategy
claimingUser
- the user attempting to claim ElectronicPaymentClaim records with a document
ElectronicPaymentClaimingDocumentGenerationStrategy.userMayUseToClaim(org.kuali.rice.kim.bo.Person)
public boolean isDocumentReferenceValid(String referenceDocumentNumber)
ElectronicPaymentClaimingDocumentGenerationStrategy
isDocumentReferenceValid
in interface ElectronicPaymentClaimingDocumentGenerationStrategy
referenceDocumentNumber
- the document number reference to validate
ElectronicPaymentClaimingDocumentGenerationStrategy.isDocumentReferenceValid(java.lang.String)
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
ddService
- The ddService to set.public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
documentService
- The documentService to set.public void setElectronicPaymentClaimingService(ElectronicPaymentClaimingService electronicPaymentClaimingService)
electronicPaymentClaimingService
- The electronicPaymentClaimingService to set.public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService
- The parameterService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |