public class AccountingLineAccessibleValidation extends GenericValidation
Modifier and Type | Class and Description |
---|---|
static class |
AccountingLineAccessibleValidation.AccountingLineAction
Indicates what is being done to an accounting line.
|
Modifier and Type | Field and Description |
---|---|
protected AccountingDocument |
accountingDocumentForValidation |
protected AccountingLine |
accountingLineForValidation |
protected org.kuali.rice.krad.service.DataDictionaryService |
dataDictionaryService |
Constructor and Description |
---|
AccountingLineAccessibleValidation() |
Modifier and Type | Method and Description |
---|---|
protected String |
convertEventToMessage(org.kuali.rice.krad.rules.rule.event.KualiDocumentEvent event)
Determines what error message should be shown based on the event that required this validation
|
AccountingDocument |
getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute.
|
protected String |
getAccountingLineCollectionProperty()
Determines the property of the accounting line collection from the error prefixes
|
AccountingLine |
getAccountingLineForValidation()
Gets the accountingLineForValidation attribute.
|
org.kuali.rice.krad.service.DataDictionaryService |
getDataDictionaryService()
Gets the dataDictionaryService attribute.
|
protected String |
getGroupName()
Returns the name of the accounting line group which holds the proper authorizer to do the KIM check
|
protected AccountingLineAuthorizer |
lookupAccountingLineAuthorizer() |
void |
setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value.
|
void |
setAccountingLineForValidation(AccountingLine accountingLineForValidation)
Sets the accountingLineForValidation attribute value.
|
void |
setDataDictionaryService(org.kuali.rice.krad.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
Validates that the given accounting line is accessible for editing by the current user.
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
protected org.kuali.rice.krad.service.DataDictionaryService dataDictionaryService
protected AccountingDocument accountingDocumentForValidation
protected AccountingLine accountingLineForValidation
public AccountingLineAccessibleValidation()
public boolean validate(AttributedDocumentEvent event)
org.kuali.ole.sys.document.validation.Validation#validate(java.lang.Object[])
protected String getGroupName()
protected AccountingLineAuthorizer lookupAccountingLineAuthorizer()
protected String getAccountingLineCollectionProperty()
protected String convertEventToMessage(org.kuali.rice.krad.rules.rule.event.KualiDocumentEvent event)
event
- the event to use to determine the error messagepublic AccountingDocument getAccountingDocumentForValidation()
public void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
accountingDocumentForValidation
- The accountingDocumentForValidation to set.public AccountingLine getAccountingLineForValidation()
public void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
accountingLineForValidation
- The accountingLineForValidation to set.public org.kuali.rice.krad.service.DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(org.kuali.rice.krad.service.DataDictionaryService dataDictionaryService)
dataDictionaryService
- The dataDictionaryService to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.