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

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

public class LaborJournalVoucherPositionCodeExistenceCheckValidation
extends GenericValidation

Validates that a labor journal voucher document's accounting lines have valid Position Code


Constructor Summary
LaborJournalVoucherPositionCodeExistenceCheckValidation()
           
 
Method Summary
 AccountingLine getAccountingLineForValidation()
          Gets the accountingLineForValidation attribute.
protected  boolean positionCodeExistenceCheck(String positionNumber)
          Checks whether employee id exists
 void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
          Sets the accountingLineForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          Validates that the accounting line in the labor journal voucher document for valid position code
 
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

LaborJournalVoucherPositionCodeExistenceCheckValidation

public LaborJournalVoucherPositionCodeExistenceCheckValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Validates that the accounting line in the labor journal voucher document for valid position code

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

positionCodeExistenceCheck

protected boolean positionCodeExistenceCheck(String positionNumber)
Checks whether employee id exists

Parameters:
positionNumber - positionNumber is checked against the collection of position number matches
Returns:
True if the given position number exists, false otherwise.

getAccountingLineForValidation

public AccountingLine getAccountingLineForValidation()
Gets the accountingLineForValidation attribute.

Returns:
Returns the accountingLineForValidation.

setAccountingLineForValidation

public void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
Sets the accountingLineForValidation attribute value.

Parameters:
accountingLineForValidation - The accountingLineForValidation to set.


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