public class AwardFandARateAuditRule extends Object implements org.kuali.rice.krad.rules.rule.DocumentAuditRule
| Constructor and Description |
|---|
AwardFandARateAuditRule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createHashMapsForRuleEvaluation(List<AwardFandaRate> awardFandaRateList,
HashMap<String,String> a1,
HashMap<String,String> b1)
This method iterates through the awardFandaRateList and creates two hashmaps;
one with on campus values and other with off campus values in it.
|
protected boolean |
evaluateRule(List<AwardFandaRate> awardFandaRateList,
HashMap<String,String> a1,
HashMap<String,String> b1) |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService()
Looks up and returns the ParameterService.
|
protected boolean |
isFandaRateInputInPairs(List<AwardFandaRate> awardFandaRateList)
This method takes as the input a list of
AwardFandaRate,
iterates through it twice to find out whether both on campus and off campus entries
are present for every indirectRateTypeCode. |
boolean |
processRunAuditBusinessRules(org.kuali.rice.krad.document.Document document) |
protected void |
reportAndCreateAuditCluster()
This method creates and adds the AuditCluster to the Global AuditErrorMap.
|
protected org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public boolean processRunAuditBusinessRules(org.kuali.rice.krad.document.Document document)
processRunAuditBusinessRules in interface org.kuali.rice.krad.rules.rule.DocumentAuditRuleprotected boolean isFandaRateInputInPairs(List<AwardFandaRate> awardFandaRateList)
AwardFandaRate,
iterates through it twice to find out whether both on campus and off campus entries
are present for every indirectRateTypeCode.
Returns true if they both are present.awardFandaRateList - protected void createHashMapsForRuleEvaluation(List<AwardFandaRate> awardFandaRateList, HashMap<String,String> a1, HashMap<String,String> b1)
awardFandaRateList - a1 - b1 - protected boolean evaluateRule(List<AwardFandaRate> awardFandaRateList, HashMap<String,String> a1, HashMap<String,String> b1)
awardFandaRateList - a1 - b1 - protected void reportAndCreateAuditCluster()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.