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

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

public class AuxiliaryVoucherAccountingPeriodOpenValidation
extends GenericValidation

Validates that the accounting period given by the document is currently open


Constructor Summary
AuxiliaryVoucherAccountingPeriodOpenValidation()
           
 
Method Summary
 AccountingPeriodService getAccountingPeriodService()
          Gets the accountingPeriodService attribute.
 AuxiliaryVoucherDocument getAuxliaryVoucherDocumentForValidation()
          Gets the auxliaryVoucherDocumentForValidation attribute.
 void setAccountingPeriodService(AccountingPeriodService accountingPeriodService)
          Sets the accountingPeriodService attribute value.
 void setAuxliaryVoucherDocumentForValidation(AuxiliaryVoucherDocument auxliaryVoucherDocumentForValidation)
          Sets the auxliaryVoucherDocumentForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          Uses the accounting period service to get the accounting period for the document and checks that it's open
 
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

AuxiliaryVoucherAccountingPeriodOpenValidation

public AuxiliaryVoucherAccountingPeriodOpenValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Uses the accounting period service to get the accounting period for the document and checks that it's open

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

getAccountingPeriodService

public AccountingPeriodService getAccountingPeriodService()
Gets the accountingPeriodService attribute.

Returns:
Returns the accountingPeriodService.

setAccountingPeriodService

public void setAccountingPeriodService(AccountingPeriodService accountingPeriodService)
Sets the accountingPeriodService attribute value.

Parameters:
accountingPeriodService - The accountingPeriodService to set.

getAuxliaryVoucherDocumentForValidation

public AuxiliaryVoucherDocument getAuxliaryVoucherDocumentForValidation()
Gets the auxliaryVoucherDocumentForValidation attribute.

Returns:
Returns the auxliaryVoucherDocumentForValidation.

setAuxliaryVoucherDocumentForValidation

public void setAuxliaryVoucherDocumentForValidation(AuxiliaryVoucherDocument auxliaryVoucherDocumentForValidation)
Sets the auxliaryVoucherDocumentForValidation attribute value.

Parameters:
auxliaryVoucherDocumentForValidation - The auxliaryVoucherDocumentForValidation to set.


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