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

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

public class CashReceiptCashDrawerOpenValidation
extends GenericValidation

Validation for the cash receipt document that verifies that the cash drawer is open at approval.


Constructor Summary
CashReceiptCashDrawerOpenValidation()
           
 
Method Summary
 CashDrawerService getCashDrawerService()
          Gets the cashDrawerService attribute.
 CashReceiptFamilyBase getCashReceiptDocumentForValidation()
          Gets the cashReceiptDocumentForValidation attribute.
 CashReceiptService getCashReceiptService()
          Gets the cashReceiptService attribute.
 void setCashDrawerService(CashDrawerService cashDrawerService)
          Sets the cashDrawerService attribute value.
 void setCashReceiptDocumentForValidation(CashReceiptFamilyBase cashReceiptFamilyDocumentForValidation)
          Sets the cashReceiptDocumentForValidation attribute value.
 void setCashReceiptService(CashReceiptService cashReceiptService)
          Sets the cashReceiptService attribute value.
 boolean validate(AttributedDocumentEvent event)
          Makes sure that the cash drawer for the verification unit associated with this CR doc is 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

CashReceiptCashDrawerOpenValidation

public CashReceiptCashDrawerOpenValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Makes sure that the cash drawer for the verification unit associated with this CR doc is open. If it's not, the the rule fails.

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

getCashReceiptDocumentForValidation

public CashReceiptFamilyBase getCashReceiptDocumentForValidation()
Gets the cashReceiptDocumentForValidation attribute.

Returns:
Returns the cashReceiptDocumentForValidation.

setCashReceiptDocumentForValidation

public void setCashReceiptDocumentForValidation(CashReceiptFamilyBase cashReceiptFamilyDocumentForValidation)
Sets the cashReceiptDocumentForValidation attribute value.

Parameters:
cashReceiptDocumentForValidation - The cashReceiptDocumentForValidation to set.

getCashDrawerService

public CashDrawerService getCashDrawerService()
Gets the cashDrawerService attribute.

Returns:
Returns the cashDrawerService.

setCashDrawerService

public void setCashDrawerService(CashDrawerService cashDrawerService)
Sets the cashDrawerService attribute value.

Parameters:
cashDrawerService - The cashDrawerService to set.

getCashReceiptService

public CashReceiptService getCashReceiptService()
Gets the cashReceiptService attribute.

Returns:
Returns the cashReceiptService.

setCashReceiptService

public void setCashReceiptService(CashReceiptService cashReceiptService)
Sets the cashReceiptService attribute value.

Parameters:
cashReceiptService - The cashReceiptService to set.


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