|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.GenericValidation
org.kuali.kfs.sys.document.validation.impl.AccountingLineAccessibleValidation
public class AccountingLineAccessibleValidation
A validation that checks whether the given accounting line is accessible to the given user or not
Nested Class Summary | |
---|---|
static class |
AccountingLineAccessibleValidation.AccountingLineAction
Indicates what is being done to an accounting line. |
Field Summary | |
---|---|
protected AccountingDocument |
accountingDocumentForValidation
|
protected AccountingLine |
accountingLineForValidation
|
protected org.kuali.rice.kns.service.DataDictionaryService |
dataDictionaryService
|
Constructor Summary | |
---|---|
AccountingLineAccessibleValidation()
|
Method Summary | |
---|---|
protected String |
convertEventToMessage(org.kuali.rice.kns.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.kns.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.kns.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. |
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 |
Field Detail |
---|
protected org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService
protected AccountingDocument accountingDocumentForValidation
protected AccountingLine accountingLineForValidation
Constructor Detail |
---|
public AccountingLineAccessibleValidation()
Method Detail |
---|
public boolean validate(AttributedDocumentEvent event)
org.kuali.kfs.sys.document.validation.Validation#validate(java.lang.Object[])
protected String getGroupName()
protected AccountingLineAuthorizer lookupAccountingLineAuthorizer()
protected String getAccountingLineCollectionProperty()
protected String convertEventToMessage(org.kuali.rice.kns.rule.event.KualiDocumentEvent event)
event
- the event to use to determine the error message
public 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.kns.service.DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
dataDictionaryService
- The dataDictionaryService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |