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

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.BenefitExpenseTransferSameFringeBenefitObjectCodeValidation
All Implemented Interfaces:
Validation

public class BenefitExpenseTransferSameFringeBenefitObjectCodeValidation
extends GenericValidation

benefit transfers cannot be made between two different fringe benefit labor object codes


Constructor Summary
BenefitExpenseTransferSameFringeBenefitObjectCodeValidation()
           
 
Method Summary
 org.kuali.rice.kns.document.Document getDocumentForValidation()
          Gets the accountingDocumentForValidation attribute.
protected  boolean hasSameFringeBenefitObjectCodes(AccountingDocument accountingDocument)
          Determines whether target accounting lines have the same fringe benefit object codes as source accounting lines
 void setDocumentForValidation(org.kuali.rice.kns.document.Document documentForValidation)
          Sets the accountingDocumentForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          Validates that the accounting lines in the accounting document have the same employee id 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

BenefitExpenseTransferSameFringeBenefitObjectCodeValidation

public BenefitExpenseTransferSameFringeBenefitObjectCodeValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Validates that the accounting lines in the accounting document have the same employee id 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[])

hasSameFringeBenefitObjectCodes

protected boolean hasSameFringeBenefitObjectCodes(AccountingDocument accountingDocument)
Determines whether target accounting lines have the same fringe benefit object codes as source accounting lines

Parameters:
accountingDocument - the given accounting document
Returns:
true if target accounting lines have the same fringe benefit object codes as source accounting lines; otherwise, false

getDocumentForValidation

public org.kuali.rice.kns.document.Document getDocumentForValidation()
Gets the accountingDocumentForValidation attribute.

Returns:
Returns the accountingDocumentForValidation.

setDocumentForValidation

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

Parameters:
accountingDocumentForValidation - The accountingDocumentForValidation to set.


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