org.kuali.kfs.sys.document.validation.impl
Class TaxRegionRule

java.lang.Object
  extended by org.kuali.rice.kns.rules.DocumentRuleBase
      extended by org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
          extended by org.kuali.kfs.sys.document.validation.impl.KfsMaintenanceDocumentRuleBase
              extended by org.kuali.kfs.sys.document.validation.impl.TaxRegionRule
All Implemented Interfaces:
org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRule, org.kuali.rice.kns.rule.AddAdHocRoutePersonRule, org.kuali.rice.kns.rule.AddAdHocRouteWorkgroupRule, org.kuali.rice.kns.rule.AddCollectionLineRule, 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

public class TaxRegionRule
extends KfsMaintenanceDocumentRuleBase

This class implements add collection line business rule for tax district rate.


Field Summary
protected  org.kuali.rice.kns.service.BusinessObjectService businessObjectService
           
 
Fields inherited from class org.kuali.kfs.sys.document.validation.impl.KfsMaintenanceDocumentRuleBase
financialSystemUserService, personService
 
Fields inherited from class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
boDictionaryService, boService, businessObjectAuthorizationService, configService, ddService, dictionaryValidationService, DOCUMENT_ERROR_PREFIX, documentHelperService, LOG, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, maintDocDictionaryService, persistenceService, persistenceStructureService, priorErrorPath, roleService, workflowDocumentService
 
Constructor Summary
TaxRegionRule()
           
 
Method Summary
protected  boolean isValidEffectiveDate(TaxRegionRate taxRegionRate)
          This method returns true if the effective date is not a date in the past or today's date.
protected  boolean isValidTaxRate(TaxRegionRate taxRegionRate)
          This method returns true if the tax rate is between 0 and 1.
protected  boolean isValidTaxRegionCounty(TaxRegionCounty taxRegionCounty)
          This method returns true if the state and county on the tax region county object is valid.
protected  boolean isValidTaxRegionPostalCode(TaxRegionPostalCode taxRegionPostalCode)
          This method returns true if the postal code on the tax region postal code is valid.
protected  boolean isValidTaxRegionRate(TaxRegionRate taxRegionRate, TaxRegion taxRegion)
           
protected  boolean isValidTaxRegionState(TaxRegionState taxRegionState)
          This method returns true if the state on tax region state object is valid.
 boolean processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document, String collectionName, org.kuali.rice.kns.bo.PersistableBusinessObject bo)
           
 
Methods inherited from class org.kuali.kfs.sys.document.validation.impl.KfsMaintenanceDocumentRuleBase
getFinancialSystemUserService, getKfsUserService
 
Methods inherited from class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
apcRuleFails, applyApcRule, checkEmptyBOField, checkEmptyDocumentField, checkEmptyValue, checkForPartiallyFilledOutReferenceForeignKeys, clearErrorPath, consolidateFieldNames, dataDictionaryValidate, errorAlreadyExists, getBoDictionaryService, getBoService, getBusinessObjectAuthorizationService, getConfigService, getDateTimeService, getDdService, getDictionaryValidationService, getDocumentHelperService, getFieldLabel, getFieldLabel, getHumanReadablePrimaryKeyFieldNames, getMaintDocDictionaryService, getNewBo, getOldBo, getPersistenceService, getPersistenceStructureService, getPersonService, getRoleService, getWorkflowDocumentService, isCorrectMaintenanceClass, isDocumentInactivatingBusinessObject, isDocumentValidForSave, primaryKeyCheck, processAddCollectionLineBusinessRules, processApproveDocument, processCustomApproveDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processCustomSaveDocumentBusinessRules, processGlobalApproveDocumentBusinessRules, processGlobalRouteDocumentBusinessRules, processGlobalSaveDocumentBusinessRules, processInactivationBlockChecking, processInactivationBlockChecking, processRouteDocument, processSaveDocument, putDocumentError, putDocumentError, putFieldError, putFieldError, putFieldError, putFieldErrorWithShortLabel, putGlobalError, putGlobalError, putGlobalError, putGlobalsError, putGlobalsError, putInactivationBlockingErrorOnPage, resumeErrorPath, setBoDictionaryService, setBoService, setBusinessObjectAuthorizationService, setConfigService, setDdService, setDictionaryValidationService, setDocumentHelperService, setMaintDocDictionaryService, setNewBo, setPersistenceService, setPersistenceStructureService, setPersonService, setupBaseConvenienceObjects, setupConvenienceObjects, setWorkflowDocumentService, showErrorMap, validateDocumentStructure, validateDuplicateIdentifierInDataDictionary, validateGlobalBusinessObjectPersistable, validateMaintenanceDocument
 
Methods inherited from class org.kuali.rice.kns.rules.DocumentRuleBase
getDataDictionaryService, getIdentityManagementService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getWorkflowInfoService, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processCustomSaveDocumentBusinessRules, processCustomSendAdHocRequests, processSendAdHocRequests, setMaxDictionaryValidationDepth, validateSensitiveDataValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

businessObjectService

protected org.kuali.rice.kns.service.BusinessObjectService businessObjectService
Constructor Detail

TaxRegionRule

public TaxRegionRule()
Method Detail

processCustomAddCollectionLineBusinessRules

public boolean processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document,
                                                           String collectionName,
                                                           org.kuali.rice.kns.bo.PersistableBusinessObject bo)
Overrides:
processCustomAddCollectionLineBusinessRules in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
See Also:
MaintenanceDocumentRuleBase.processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument, java.lang.String, org.kuali.rice.kns.bo.PersistableBusinessObject)

isValidTaxRegionRate

protected boolean isValidTaxRegionRate(TaxRegionRate taxRegionRate,
                                       TaxRegion taxRegion)
See Also:
MaintenanceDocumentRuleBase.processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument, java.lang.String, org.kuali.rice.kns.bo.PersistableBusinessObject)

isValidEffectiveDate

protected boolean isValidEffectiveDate(TaxRegionRate taxRegionRate)
This method returns true if the effective date is not a date in the past or today's date.

Parameters:
taxRegionRate -
Returns:

isValidTaxRate

protected boolean isValidTaxRate(TaxRegionRate taxRegionRate)
This method returns true if the tax rate is between 0 and 1.

Parameters:
taxRegionRate -
Returns:

isValidTaxRegionState

protected boolean isValidTaxRegionState(TaxRegionState taxRegionState)
This method returns true if the state on tax region state object is valid.

Parameters:
taxRegionState -
Returns:

isValidTaxRegionCounty

protected boolean isValidTaxRegionCounty(TaxRegionCounty taxRegionCounty)
This method returns true if the state and county on the tax region county object is valid.

Parameters:
taxRegionCounty -
Returns:

isValidTaxRegionPostalCode

protected boolean isValidTaxRegionPostalCode(TaxRegionPostalCode taxRegionPostalCode)
This method returns true if the postal code on the tax region postal code is valid.

Parameters:
taxRegionPostalCode -
Returns:


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