org.kuali.kfs.module.cg.document.validation.impl
Class AwardPreRules
java.lang.Object
org.kuali.rice.kns.rules.PromptBeforeValidationBase
org.kuali.kfs.coa.document.validation.impl.MaintenancePreRulesBase
org.kuali.kfs.module.cg.document.validation.impl.AwardPreRules
- All Implemented Interfaces:
- org.kuali.rice.kns.rule.PromptBeforeValidation
public class AwardPreRules
- extends MaintenancePreRulesBase
PreRules checks for the Account that needs to occur while still in the Struts processing. This includes defaults, confirmations,
etc.
Nested classes/interfaces inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
org.kuali.rice.kns.rules.PromptBeforeValidationBase.ContextSession |
Fields inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
buttonClicked, event, form, question |
Constructor Summary |
AwardPreRules()
Constructs a AwardPreRules.java. |
Methods inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
abortRulesCheck, askOrAnalyzeYesNoQuestion, processPrompts |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static org.apache.log4j.Logger LOG
configService
protected org.kuali.rice.kns.service.KualiConfigurationService configService
dataDictionaryService
protected org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService
newAward
protected Award newAward
AwardPreRules
public AwardPreRules()
- Constructs a AwardPreRules.java.
doCustomPreRules
protected boolean doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument document)
- Description copied from class:
MaintenancePreRulesBase
- This is a hook for sub-classes to implement their own pre-rules. Override to get hooked into main class
- Overrides:
doCustomPreRules
in class MaintenancePreRulesBase
- Returns:
- true if rules pass
- See Also:
MaintenancePreRulesBase.doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument)
continueIfEntryDateBeforeBeginDate
protected boolean continueIfEntryDateBeforeBeginDate()
- Checks if the entry date is before the begin date. if so asks the user if they want to continue validation. if no is selected
further validation is aborted and the user is returned to the award document.
- Returns:
- true if the user selects yes, false otherwise
continueIfSubcontractorTotalGreaterThanAwardTotal
protected boolean continueIfSubcontractorTotalGreaterThanAwardTotal()
- Checks if the
Subcontractor
total amount is greater than the award total. If so asks the user if they want to
continue validation. if no is selected further validation is aborted and the user is returned to the award document.
- Returns:
- true if the user selects yes, false otherwise
buildConfirmationQuestion
protected String buildConfirmationQuestion(String messageKey,
String... parameters)
- Builds out the confirmation question.
- Parameters:
messageKey
- parameters
-
- Returns:
setupConvenienceObjects
protected void setupConvenienceObjects(org.kuali.rice.kns.document.MaintenanceDocument document)
- Parameters:
document
-
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.