org.kuali.kfs.module.cg.document.validation.impl
Class AwardPreRules

java.lang.Object
  extended by org.kuali.rice.kns.rules.PromptBeforeValidationBase
      extended by org.kuali.kfs.coa.document.validation.impl.MaintenancePreRulesBase
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase
org.kuali.rice.kns.rules.PromptBeforeValidationBase.ContextSession
 
Field Summary
protected  org.kuali.rice.kns.service.KualiConfigurationService configService
           
protected  org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService
           
protected static org.apache.log4j.Logger LOG
           
protected  Award newAward
           
 
Fields inherited from class org.kuali.kfs.coa.document.validation.impl.MaintenancePreRulesBase
accountService
 
Fields inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase
buttonClicked, event, form, question
 
Constructor Summary
AwardPreRules()
          Constructs a AwardPreRules.java.
 
Method Summary
protected  String buildConfirmationQuestion(String messageKey, String... parameters)
          Builds out the confirmation question.
protected  boolean continueIfEntryDateBeforeBeginDate()
          Checks if the entry date is before the begin date.
protected  boolean continueIfSubcontractorTotalGreaterThanAwardTotal()
          Checks if the Subcontractor total amount is greater than the award total.
protected  boolean doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument document)
          This is a hook for sub-classes to implement their own pre-rules.
protected  void setupConvenienceObjects(org.kuali.rice.kns.document.MaintenanceDocument document)
           
 
Methods inherited from class org.kuali.kfs.coa.document.validation.impl.MaintenancePreRulesBase
buildContinuationConfirmationQuestion, checkForContinuationAccount, checkForContinuationAccount, doPrompts, getAccountService, getConfigService, setAccountService, setConfigService
 
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
 

Field Detail

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
Constructor Detail

AwardPreRules

public AwardPreRules()
Constructs a AwardPreRules.java.

Method Detail

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.