public class AwardTermsAuditRule extends Object implements org.kuali.rice.krad.rules.rule.DocumentAuditRule
| Constructor and Description |
|---|
AwardTermsAuditRule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addErrorToAuditErrors(String description)
This method creates and adds the Audit Error to the
auditError. |
protected List<org.kuali.rice.core.api.util.KeyValue> |
getSponsorTermTypesFromDatabase()
This method gets the list of Sponsor Term Types from the database.
|
protected boolean |
isSponsorTermTypeInAwardSponsorTerms(String key,
List<AwardSponsorTerm> awardSponsorTerms)
This method tests if there is an Award Sponsor Term with Sponsor Term Type Code that is equal to the parameter "key".
|
boolean |
processRunAuditBusinessRules(org.kuali.rice.krad.document.Document document) |
protected void |
reportAndCreateAuditCluster()
This method creates and adds the AuditCluster to the Global AuditErrorMap.
|
protected void |
setSponsorTermTypes()
This method checks if sponsorTermTypes is null if true sets the list to a list of database return from getSponsorTermTypesFromDatabase()
|
protected void |
setSponsorTermTypes(List<org.kuali.rice.core.api.util.KeyValue> sponsorTermTypes)
This method sets sponsor term types to List
|
public boolean processRunAuditBusinessRules(org.kuali.rice.krad.document.Document document)
processRunAuditBusinessRules in interface org.kuali.rice.krad.rules.rule.DocumentAuditRuleorg.kuali.core.rule.DocumentAuditRule#processRunAuditBusinessRules(org.kuali.core.document.Document)protected void setSponsorTermTypes()
protected void setSponsorTermTypes(List<org.kuali.rice.core.api.util.KeyValue> sponsorTermTypes)
sponsorTermTypes - protected boolean isSponsorTermTypeInAwardSponsorTerms(String key, List<AwardSponsorTerm> awardSponsorTerms)
key - awardSponsorTerms - protected void addErrorToAuditErrors(String description)
List auditError.description - protected void reportAndCreateAuditCluster()
protected List<org.kuali.rice.core.api.util.KeyValue> getSponsorTermTypesFromDatabase()
- Copyright © 2013 The Kuali Foundation. All Rights Reserved.