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

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

public class AuxiliaryVoucherAccountingPeriodAllowedByParameterValidation
extends GenericValidation

A validation for the Auxiliary Voucher document, this checks that the given accounting period on the document is allowed by the associated system paramter.


Constructor Summary
AuxiliaryVoucherAccountingPeriodAllowedByParameterValidation()
           
 
Method Summary
 AccountingPeriodService getAccountingPeriodService()
          Gets the accountingPeriodService attribute.
 AuxiliaryVoucherDocument getAuxiliaryVoucherDocumentForValidation()
          Gets the auxiliaryVoucherDocumentForValidation attribute.
 org.kuali.rice.kns.service.ParameterService getParameterService()
          Gets the parameterService attribute.
 void setAccountingPeriodService(AccountingPeriodService accountingPeriodService)
          Sets the accountingPeriodService attribute value.
 void setAuxiliaryVoucherDocumentForValidation(AuxiliaryVoucherDocument auxiliaryVoucherDocumentForValidation)
          Sets the auxiliaryVoucherDocumentForValidation attribute value.
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
          Sets the parameterService attribute value.
 boolean validate(AttributedDocumentEvent event)
          Using the KFS-FP / AuxiliaryVoucherDocument / RestrictedPeriodCodes parameter, checks that the accounting period specified on the document is valid.
 
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

AuxiliaryVoucherAccountingPeriodAllowedByParameterValidation

public AuxiliaryVoucherAccountingPeriodAllowedByParameterValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Using the KFS-FP / AuxiliaryVoucherDocument / RestrictedPeriodCodes parameter, checks that the accounting period specified on the document is valid.

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

getAuxiliaryVoucherDocumentForValidation

public AuxiliaryVoucherDocument getAuxiliaryVoucherDocumentForValidation()
Gets the auxiliaryVoucherDocumentForValidation attribute.

Returns:
Returns the auxiliaryVoucherDocumentForValidation.

setAuxiliaryVoucherDocumentForValidation

public void setAuxiliaryVoucherDocumentForValidation(AuxiliaryVoucherDocument auxiliaryVoucherDocumentForValidation)
Sets the auxiliaryVoucherDocumentForValidation attribute value.

Parameters:
auxiliaryVoucherDocumentForValidation - The auxiliaryVoucherDocumentForValidation to set.

getParameterService

public org.kuali.rice.kns.service.ParameterService getParameterService()
Gets the parameterService attribute.

Returns:
Returns the parameterService.

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value.

Parameters:
parameterService - The parameterService to set.

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.


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