public class AwardFandaRateRule extends ResearchDocumentRuleBase implements AddFandaRateRule
CHOMP_LAST_LETTER_S_FROM_COLLECTION_NAME, DOCUMENT_ERROR_PATH, VALIDATION_REQUIRED| Constructor and Description |
|---|
AwardFandaRateRule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkValidFandARate(AwardFandaRate awardFandaRate,
String propertyPrefix)
This method checks whether FandaRares are available in valid Rate table or not;
|
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 boolean |
evaluateRuleForApplicableFandaRate(AwardFandaRate awardFandaRate,
String propertyPrefix)
This is a convenience method for evaluating the rule for applicableFandaRate field.
|
protected boolean |
evaluateRuleForFandaRateTypeCode(AwardFandaRate awardFandaRate,
String propertyPrefix)
This is a convenience method for evaluating the rule for fandaRateTypeCode field.
|
protected boolean |
evaluateRuleForFiscalYear(AwardFandaRate awardFandaRate,
String propertyPrefix)
This is a convenience method for evaluating the rule for fiscalYear field.
|
protected boolean |
evaluateRuleForStartAndEndDates(AwardFandaRate awardFandaRate,
String propertyPrefix)
This is a convenience method for evaluating the rule for startDate and endDate fields.
|
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 |
processAddFandaRateBusinessRules(AddAwardFandaRateEvent addAwardFandaRateEvent)
Rule invoked upon adding a indirect cost rate
|
boolean |
processSaveFandaRateBusinessRules(AwardFandaRateSaveEvent awardFandaRateSaveEvent) |
addAuditError, getBusinessObjectService, getErrorReporter, getKnsDictionaryValidationService, getSoftErrors, hasPermission, hasPermission, hasRole, hasRole, isInvalid, isValid, keyValue, processBudgetVersionsBusinessRule, processRunAuditBusinessRules, reportError, reportErrorWithoutFullErrorPath, reportSoftError, reportWarning, setBusinessObjectService, setParameterServicebuildDocumentTypeActionRequestPermissionDetails, buildDocumentTypePermissionDetails, getDataDictionaryService, getDictionaryValidationService, getDocumentDictionaryService, getGroupService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPermissionService, getPersonService, hasAdHocRouteCompletion, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteCompletionToInitiator, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processApproveDocument, processCompleteDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomCompleteDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processCustomSaveDocumentBusinessRules, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setDocumentDictionaryService, setMaxDictionaryValidationDepth, useKimPermission, validateSensitiveDataValuepublic boolean processAddFandaRateBusinessRules(AddAwardFandaRateEvent addAwardFandaRateEvent)
AddFandaRateRuleAwardDocumentprocessAddFandaRateBusinessRules in interface AddFandaRateRule#processAddFandaRateBusinessRules(org.kuali.kra.award.commitments.AddAwardFandaRateEvent)public boolean processSaveFandaRateBusinessRules(AwardFandaRateSaveEvent awardFandaRateSaveEvent)
protected boolean evaluateRuleForApplicableFandaRate(AwardFandaRate awardFandaRate, String propertyPrefix)
awardFandaRate - propertyPrefix - protected boolean evaluateRuleForFandaRateTypeCode(AwardFandaRate awardFandaRate, String propertyPrefix)
awardFandaRate - propertyPrefix - protected boolean evaluateRuleForFiscalYear(AwardFandaRate awardFandaRate, String propertyPrefix)
awardFandaRate - propertyPrefix - protected boolean evaluateRuleForStartAndEndDates(AwardFandaRate awardFandaRate, String propertyPrefix)
awardFandaRate - propertyPrefix - public boolean checkValidFandARate(AwardFandaRate awardFandaRate, String propertyPrefix)
awardFandaRateList - protected org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
ResearchDocumentRuleBasegetParameterService in class ResearchDocumentRuleBaseprotected 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 - Copyright © 2013 The Kuali Foundation. All Rights Reserved.