public class JournalVoucherAccountingPeriodValidation extends GenericValidation
Constructor and Description |
---|
JournalVoucherAccountingPeriodValidation() |
Modifier and Type | Method and Description |
---|---|
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
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public JournalVoucherAccountingPeriodValidation()
public boolean validate(AttributedDocumentEvent event)
Validation.validate(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
protected String getLabelFromDataDictionary(Class entryClass, String attributeName)
entryClass
- the class of the attribute to lookup the label forattributeName
- the attribute to look up the label forpublic JournalVoucherDocument getJournalVoucherForValidation()
public void setJournalVoucherForValidation(JournalVoucherDocument journalVoucherForValidation)
journalVoucherForValidation
- The journalVoucherForValidation to set.public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
dataDictionaryService
- The dataDictionaryService to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.