org.kuali.kfs.module.endow.document.validation.impl
Class CashDocumentBaseRules

java.lang.Object
  extended by org.kuali.rice.kns.rules.DocumentRuleBase
      extended by org.kuali.rice.kns.rules.TransactionalDocumentRuleBase
          extended by org.kuali.kfs.module.endow.document.validation.impl.EndowmentTransactionalDocumentBaseRule
              extended by org.kuali.kfs.module.endow.document.validation.impl.EndowmentTransactionLinesDocumentBaseRules
                  extended by org.kuali.kfs.module.endow.document.validation.impl.CashDocumentBaseRules
All Implemented Interfaces:
AddTransactionLineRule<EndowmentTransactionLinesDocument,EndowmentTransactionLine>, DeleteTransactionLineRule<EndowmentTransactionLinesDocument,EndowmentTransactionLine>, RefreshTransactionLineRule<EndowmentTransactionLinesDocument,EndowmentTransactionLine,Number>, org.kuali.rice.kns.rule.AddAdHocRoutePersonRule, org.kuali.rice.kns.rule.AddAdHocRouteWorkgroupRule, org.kuali.rice.kns.rule.AddNoteRule, org.kuali.rice.kns.rule.ApproveDocumentRule, org.kuali.rice.kns.rule.BusinessRule, org.kuali.rice.kns.rule.RouteDocumentRule, org.kuali.rice.kns.rule.SaveDocumentRule, org.kuali.rice.kns.rule.SendAdHocRequestsRule
Direct Known Subclasses:
CashDecreaseDocumentRules, CashIncreaseDocumentRules, CashTransferDocumentRules

public class CashDocumentBaseRules
extends EndowmentTransactionLinesDocumentBaseRules


Constructor Summary
CashDocumentBaseRules()
           
 
Method Summary
protected  boolean isSecurityCodeEmpty(EndowmentTransactionalDocument document, boolean isSource)
          This method validate the Security code.
 boolean processAddTransactionLineRules(EndowmentTransactionLinesDocument document, EndowmentTransactionLine line)
           
protected  boolean validateCashTransactionLine(EndowmentTransactionLinesDocument document, EndowmentTransactionLine line, int index)
          This method should be overridden by children rule classes as a hook to implement document specific business rule checks for the general validating a transaction line.
protected  boolean validateEtranTypeBasedOnDocSource(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument, EndowmentTransactionLine line, String prefix)
          This method...
 
Methods inherited from class org.kuali.kfs.module.endow.document.validation.impl.EndowmentTransactionLinesDocumentBaseRules
canKEMIDHaveAPrincipalTransaction, checkCashTransactionEndowmentCode, checkWhetherHaveSufficientFundsForCashBasedTransaction, checkWhetherReducePermanentlyRestrictedFund, getErrorPrefix, getRegistrationForValidation, getSecurityForValidation, getSecurityIDForValidation, hasEtranCode, isActiveKemId, isEndowmentTransactionCodeEmpty, isKemIdCodeEmpty, nonCashTransaction, processCustomRouteDocumentBusinessRules, processDeleteTransactionLineRules, processRefreshTransactionLineRules, templateMethod, transactionLineSizeGreaterThanZero, validateChartMatch, validateEndowmentTransactionCode, validateEndowmentTransactionTypeCode, validateKemId, validateNonDuplicateSecurityCodes, validateNoTransactionRestriction, validateRegistration, validateSecurity, validateSecurityEtranChartMatch, validateSourceTargetAmountEqual, validateSourceTargetUnitsEqual, validateSufficientUnits, validateTaxLots, validateTotalUnits, validateTransactionAmountGreaterThanZero, validateTransactionAmountLessThanZero, validateTransactionLine, validateTransactionUnitsAmountEqual, validateTransactionUnitsGreaterThanZero, validateTransactionUnitsLessThanZero
 
Methods inherited from class org.kuali.kfs.module.endow.document.validation.impl.EndowmentTransactionalDocumentBaseRule
errorAlreadyExists, getEndowmentTransactionSecurity, getEndowmentTransactionSecurityPrefix, isRegistrationCodeActive, isRegistrationCodeEmpty, isSecurityActive, isSubTypeEmpty, putDocumentError, putDocumentError, putFieldError, putFieldError, putFieldError, putGlobalError, putGlobalError, putGlobalError, putGlobalsError, putGlobalsError, validateRegistrationCode, validateSecurityClassCodeTypeNotLiability, validateSecurityClassTypeCode, validateSecurityCode
 
Methods inherited from class org.kuali.rice.kns.rules.DocumentRuleBase
getDataDictionaryService, getDictionaryValidationService, getDocumentHelperService, getIdentityManagementService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPersonService, getWorkflowInfoService, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processApproveDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomSaveDocumentBusinessRules, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setMaxDictionaryValidationDepth, validateSensitiveDataValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CashDocumentBaseRules

public CashDocumentBaseRules()
Method Detail

isSecurityCodeEmpty

protected boolean isSecurityCodeEmpty(EndowmentTransactionalDocument document,
                                      boolean isSource)
Description copied from class: EndowmentTransactionalDocumentBaseRule
This method validate the Security code.

Overrides:
isSecurityCodeEmpty in class EndowmentTransactionalDocumentBaseRule
Returns:

processAddTransactionLineRules

public boolean processAddTransactionLineRules(EndowmentTransactionLinesDocument document,
                                              EndowmentTransactionLine line)
Specified by:
processAddTransactionLineRules in interface AddTransactionLineRule<EndowmentTransactionLinesDocument,EndowmentTransactionLine>
Overrides:
processAddTransactionLineRules in class EndowmentTransactionLinesDocumentBaseRules
See Also:
EndowmentTransactionLinesDocumentBaseRules.processAddTransactionLineRules(org.kuali.kfs.module.endow.document.EndowmentTransactionLinesDocument, org.kuali.kfs.module.endow.businessobject.EndowmentTransactionLine)

validateCashTransactionLine

protected boolean validateCashTransactionLine(EndowmentTransactionLinesDocument document,
                                              EndowmentTransactionLine line,
                                              int index)
This method should be overridden by children rule classes as a hook to implement document specific business rule checks for the general validating a transaction line.

Parameters:
line -
index -
Returns:
boolean True if the rules checks passed, false otherwise.

validateEtranTypeBasedOnDocSource

protected boolean validateEtranTypeBasedOnDocSource(EndowmentTransactionLinesDocument endowmentTransactionLinesDocument,
                                                    EndowmentTransactionLine line,
                                                    String prefix)
This method...

Parameters:
endowmentTransactionLinesDocument -
line -
prefix -
Returns:


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