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

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

public class JournalVoucherAccountingPeriodValidation
extends GenericValidation

Validation of the accounting period on a Journal Voucher document.


Constructor Summary
JournalVoucherAccountingPeriodValidation()
           
 
Method Summary
 org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
          Gets the dataDictionaryService attribute.
 JournalVoucherDocument getJournalVoucherForValidation()
          Gets the journalVoucherForValidation attribute.
protected  String getLabelFromDataDictionary(Class entryClass, String attributeName)
          Looks up a label from the data dictionary
 void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
          Sets the dataDictionaryService attribute value.
 void setJournalVoucherForValidation(JournalVoucherDocument journalVoucherForValidation)
          Sets the journalVoucherForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          Checks that the accounting period for a journal voucher is present in the persistence store and currently 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

JournalVoucherAccountingPeriodValidation

public JournalVoucherAccountingPeriodValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Checks that the accounting period for a journal voucher is present in the persistence store and currently open

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

getLabelFromDataDictionary

protected String getLabelFromDataDictionary(Class entryClass,
                                            String attributeName)
Looks up a label from the data dictionary

Parameters:
entryClass - the class of the attribute to lookup the label for
attributeName - the attribute to look up the label for
Returns:
the label

getJournalVoucherForValidation

public JournalVoucherDocument getJournalVoucherForValidation()
Gets the journalVoucherForValidation attribute.

Returns:
Returns the journalVoucherForValidation.

setJournalVoucherForValidation

public void setJournalVoucherForValidation(JournalVoucherDocument journalVoucherForValidation)
Sets the journalVoucherForValidation attribute value.

Parameters:
journalVoucherForValidation - The journalVoucherForValidation to set.

getDataDictionaryService

public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
Gets the dataDictionaryService attribute.

Returns:
Returns the dataDictionaryService.

setDataDictionaryService

public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value.

Parameters:
dataDictionaryService - The dataDictionaryService to set.


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