org.kuali.kfs.fp.document.validation.impl
Class BudgetAdjustmentDocumentPreRules

java.lang.Object
  extended by org.kuali.rice.kns.rules.PromptBeforeValidationBase
      extended by org.kuali.kfs.fp.document.validation.impl.BudgetAdjustmentDocumentPreRules
All Implemented Interfaces:
org.kuali.rice.kns.rule.PromptBeforeValidation

public class BudgetAdjustmentDocumentPreRules
extends org.kuali.rice.kns.rules.PromptBeforeValidationBase

Checks warnings and prompt conditions for ba document.


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 kualiConfiguration
           
 
Fields inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase
buttonClicked, event, form, LOG, question
 
Constructor Summary
BudgetAdjustmentDocumentPreRules()
           
 
Method Summary
protected  boolean askLaborBenefitsGeneration(BudgetAdjustmentDocument budgetDocument)
          Calls service to determine if any labor object codes are present on the ba document.
protected  boolean canGenerateLaborBenefitsByRouteStatus(BudgetAdjustmentDocument budgetAdjustmentDocument)
          Based on the routing status of the document, determines if labor benefits can be generated on the document
protected  List deepCopyAccountingLinesList(List originals)
          TODO: remove this method once baseline accounting lines has been removed
 boolean doPrompts(org.kuali.rice.kns.document.Document document)
          Execute pre-rules for BudgetAdjustmentDocument
 
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

kualiConfiguration

protected org.kuali.rice.kns.service.KualiConfigurationService kualiConfiguration
Constructor Detail

BudgetAdjustmentDocumentPreRules

public BudgetAdjustmentDocumentPreRules()
Method Detail

doPrompts

public boolean doPrompts(org.kuali.rice.kns.document.Document document)
Execute pre-rules for BudgetAdjustmentDocument

Specified by:
doPrompts in class org.kuali.rice.kns.rules.PromptBeforeValidationBase
Returns:
true if pre-rules fire without problem
See Also:
org.kuali.rice.kns.rules.PromptBeforeValidationBase#doRules(org.kuali.rice.kns.document.MaintenanceDocument)

askLaborBenefitsGeneration

protected boolean askLaborBenefitsGeneration(BudgetAdjustmentDocument budgetDocument)
Calls service to determine if any labor object codes are present on the ba document. If so, asks the user if they want the system to automatically generate the benefit lines. If Yes, calls service to generate the accounting lines.

Parameters:
budgetDocument - submitted budget document
Returns:
true if labor benefits generation question is NOT asked

deepCopyAccountingLinesList

protected List deepCopyAccountingLinesList(List originals)
TODO: remove this method once baseline accounting lines has been removed


canGenerateLaborBenefitsByRouteStatus

protected boolean canGenerateLaborBenefitsByRouteStatus(BudgetAdjustmentDocument budgetAdjustmentDocument)
Based on the routing status of the document, determines if labor benefits can be generated on the document

Parameters:
budgetAdjustmentDocument - the budget adjustment document that labor benefits would be generated on
Returns:
true if labor benefits can be generated, false otherwise


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.