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

java.lang.Object
  extended by org.kuali.kfs.sys.document.validation.ParameterizedValidation
      extended by org.kuali.kfs.sys.document.validation.GenericValidation
          extended by org.kuali.kfs.fp.document.validation.impl.BudgetAdjustmentFundGroupAdjustmentRestrictionValidation
All Implemented Interfaces:
Validation

public class BudgetAdjustmentFundGroupAdjustmentRestrictionValidation
extends GenericValidation

Validation for Budget Adjustment document that checks that the fund groups are correctly adjusted.


Constructor Summary
BudgetAdjustmentFundGroupAdjustmentRestrictionValidation()
           
 
Method Summary
 BudgetAdjustmentDocument getAccountingDocumentForValidation()
          Gets the accountingDocumentForValidation attribute.
 AccountingLineRuleHelperService getAccountingLineRuleHelperService()
          Gets the accountingLineRuleHelperService attribute.
 void setAccountingDocumentForValidation(BudgetAdjustmentDocument accountingDocumentForValidation)
          Sets the accountingDocumentForValidation attribute value.
 void setAccountingLineRuleHelperService(AccountingLineRuleHelperService accountingLineRuleHelperService)
          Sets the accountingLineRuleHelperService attribute value.
 boolean validate(AttributedDocumentEvent event)
          Retrieves the fund group and sub fund group for each accounting line.
 
Methods inherited from class org.kuali.kfs.sys.document.validation.GenericValidation
setQuitOnFail, shouldQuitOnFail, stageValidation
 
Methods inherited from class org.kuali.kfs.sys.document.validation.ParameterizedValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BudgetAdjustmentFundGroupAdjustmentRestrictionValidation

public BudgetAdjustmentFundGroupAdjustmentRestrictionValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Retrieves the fund group and sub fund group for each accounting line. Then verifies that the codes associated with the 'Budget Adjustment Restriction Code' field are met.

Returns:
true if validation should continue, false otherwise
See Also:
Validation.validate(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)

getAccountingDocumentForValidation

public BudgetAdjustmentDocument getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute.

Returns:
Returns the accountingDocumentForValidation.

setAccountingDocumentForValidation

public void setAccountingDocumentForValidation(BudgetAdjustmentDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value.

Parameters:
accountingDocumentForValidation - The accountingDocumentForValidation to set.

getAccountingLineRuleHelperService

public AccountingLineRuleHelperService getAccountingLineRuleHelperService()
Gets the accountingLineRuleHelperService attribute.

Returns:
Returns the accountingLineRuleHelperService.

setAccountingLineRuleHelperService

public void setAccountingLineRuleHelperService(AccountingLineRuleHelperService accountingLineRuleHelperService)
Sets the accountingLineRuleHelperService attribute value.

Parameters:
accountingLineRuleHelperService - The accountingLineRuleHelperService to set.


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