org.kuali.kfs.module.ld.document.validation.impl
Class SalaryExpenseTransferValidAmountTransferredByObjectCodeValidation

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.module.ld.document.validation.impl.SalaryExpenseTransferValidAmountTransferredByObjectCodeValidation
All Implemented Interfaces:
Validation

public class SalaryExpenseTransferValidAmountTransferredByObjectCodeValidation
extends GenericValidation

Validates that an accounting document's balances by object codes are unchanged


Constructor Summary
SalaryExpenseTransferValidAmountTransferredByObjectCodeValidation()
           
 
Method Summary
protected  boolean hasEditPermissionOnObjectCode(SalaryExpenseTransferDocument expenseTransferDocument, org.kuali.rice.kns.workflow.service.KualiWorkflowDocument workflowDocument)
           
protected  boolean isObjectCodeBalancesUnchanged(AccountingDocument accountingDocument)
          Checks the current object code balance map of the document against the balances captured before the document was returned for approval.
 void setDocumentForValidation(org.kuali.rice.kns.document.Document documentForValidation)
          Sets the documentForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          Validates that an accounting document's unbalanced object code balances exist Expects an accounting document as the first a parameter
 
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

SalaryExpenseTransferValidAmountTransferredByObjectCodeValidation

public SalaryExpenseTransferValidAmountTransferredByObjectCodeValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Validates that an accounting document's unbalanced object code balances exist Expects an accounting document as the first a parameter

Returns:
true if validation should continue, false otherwise
See Also:
org.kuali.kfs.validation.Validation#validate(java.lang.Object[])

hasEditPermissionOnObjectCode

protected boolean hasEditPermissionOnObjectCode(SalaryExpenseTransferDocument expenseTransferDocument,
                                                org.kuali.rice.kns.workflow.service.KualiWorkflowDocument workflowDocument)

isObjectCodeBalancesUnchanged

protected boolean isObjectCodeBalancesUnchanged(AccountingDocument accountingDocument)
Checks the current object code balance map of the document against the balances captured before the document was returned for approval.

Parameters:
accountingDocument - SalaryExpenseTransferDocument to check
Returns:
true if the balances have not changed, false if they have

setDocumentForValidation

public void setDocumentForValidation(org.kuali.rice.kns.document.Document documentForValidation)
Sets the documentForValidation attribute value.

Parameters:
documentForValidation - The documentForValidation to set.


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