org.kuali.kfs.fp.document.validation.event
Class CashieringTransactionApplicationEventBase

java.lang.Object
  extended by org.kuali.rice.kns.rule.event.KualiDocumentEventBase
      extended by org.kuali.kfs.fp.document.validation.event.CashieringTransactionApplicationEventBase
All Implemented Interfaces:
CashieringTransactionApplicationEvent, org.kuali.rice.kns.rule.event.KualiDocumentEvent

public class CashieringTransactionApplicationEventBase
extends org.kuali.rice.kns.rule.event.KualiDocumentEventBase
implements CashieringTransactionApplicationEvent

The default implementation of the CashieringTransactionApplicationEvent interface


Field Summary
 
Fields inherited from class org.kuali.rice.kns.rule.event.KualiDocumentEventBase
document
 
Constructor Summary
CashieringTransactionApplicationEventBase(String description, String errorPathPrefix, org.kuali.rice.kns.document.Document document, CashDrawer cashDrawer, CashieringTransaction cashieringTransaction)
          Constructs a CashieringTransactionApplicationEventBase
 
Method Summary
 CashDrawer getCashDrawer()
          Returns the cash drawer the cashiering transaction will apply to
 CashieringTransaction getCashieringTransaction()
          Returns the cashieringTransaction to validate
 Class getRuleInterfaceClass()
          Returns CashManagingRule.class
 boolean invokeRuleMethod(org.kuali.rice.kns.rule.BusinessRule rule)
          Casts the rule to CashManagingRule and calls processCashieringTransactionApplication
 
Methods inherited from class org.kuali.rice.kns.rule.event.KualiDocumentEventBase
generateEvents, getDescription, getDocument, getDocumentId, getErrorPathPrefix, getName, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kns.rule.event.KualiDocumentEvent
generateEvents, getDescription, getDocument, getErrorPathPrefix, getName, validate
 

Constructor Detail

CashieringTransactionApplicationEventBase

public CashieringTransactionApplicationEventBase(String description,
                                                 String errorPathPrefix,
                                                 org.kuali.rice.kns.document.Document document,
                                                 CashDrawer cashDrawer,
                                                 CashieringTransaction cashieringTransaction)
Constructs a CashieringTransactionApplicationEventBase

Parameters:
description -
errorPathPrefix -
document -
cashieringTransaction -
Method Detail

getCashieringTransaction

public CashieringTransaction getCashieringTransaction()
Returns the cashieringTransaction to validate

Specified by:
getCashieringTransaction in interface CashieringTransactionApplicationEvent
Returns:
the cashiering transaction to be validated
See Also:
CashieringTransactionApplicationEvent.getCashieringTransaction()

getCashDrawer

public CashDrawer getCashDrawer()
Returns the cash drawer the cashiering transaction will apply to

Specified by:
getCashDrawer in interface CashieringTransactionApplicationEvent
Returns:
the cash drawer's current state on the cash management document initiating the cashiering transaction
See Also:
CashieringTransactionApplicationEvent.getCashDrawer()

getRuleInterfaceClass

public Class getRuleInterfaceClass()
Returns CashManagingRule.class

Specified by:
getRuleInterfaceClass in interface org.kuali.rice.kns.rule.event.KualiDocumentEvent
See Also:
KualiDocumentEvent.getRuleInterfaceClass()

invokeRuleMethod

public boolean invokeRuleMethod(org.kuali.rice.kns.rule.BusinessRule rule)
Casts the rule to CashManagingRule and calls processCashieringTransactionApplication

Specified by:
invokeRuleMethod in interface org.kuali.rice.kns.rule.event.KualiDocumentEvent
See Also:
KualiDocumentEvent.invokeRuleMethod(org.kuali.rice.kns.rule.BusinessRule)


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