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

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

public class ServiceBillingAccountingLineAccessibleValidation
extends GenericValidation

A validation that checks whether the given accounting line is accessible to the given user or not


Nested Class Summary
static class ServiceBillingAccountingLineAccessibleValidation.AccountingLineAction
          Indicates what is being done to an accounting line.
 
Constructor Summary
ServiceBillingAccountingLineAccessibleValidation()
           
 
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.
 AccountingLine getAccountingLineForValidation()
          Gets the accountingLineForValidation attribute.
 org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
          Gets the dataDictionaryService attribute.
 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
 

Constructor Detail

ServiceBillingAccountingLineAccessibleValidation

public ServiceBillingAccountingLineAccessibleValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Validates that the given accounting line is accessible for editing by the current user. This method expects a document as the first parameter and an accounting line as the second

Returns:
true if validation should continue, false otherwise
See Also:
org.kuali.kfs.sys.document.validation.Validation#validate(java.lang.Object[])

convertEventToMessage

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

Parameters:
event - the event to use to determine the error message
Returns:
the key of the error message to display

getAccountingDocumentForValidation

public AccountingDocument getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute.

Returns:
Returns the accountingDocumentForValidation.

setAccountingDocumentForValidation

public void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value.

Parameters:
accountingDocumentForValidation - The accountingDocumentForValidation to set.

getAccountingLineForValidation

public AccountingLine getAccountingLineForValidation()
Gets the accountingLineForValidation attribute.

Returns:
Returns the accountingLineForValidation.

setAccountingLineForValidation

public void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
Sets the accountingLineForValidation attribute value.

Parameters:
accountingLineForValidation - The accountingLineForValidation 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.