org.kuali.kfs.coa.document.validation.impl
Class IndirectCostRecoveryRateRule

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.coa.document.validation.impl.IndirectCostRecoveryRateRule
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 IndirectCostRecoveryRateRule
extends org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase


Field Summary
protected  IndirectCostRecoveryRate indirectCostRecoveryRate
           
protected  IndirectCostRecoveryRateDetail indirectCostRecoveryRateDetail
           
protected  List<IndirectCostRecoveryRateDetail> indirectCostRecoveryRateDetails
           
protected static String MAINTAINABLE_DETAIL_ADDLINE_ERROR_PATH
           
protected static String MAINTAINABLE_DETAIL_ERROR_PATH
           
 
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, personService, priorErrorPath, roleService, workflowDocumentService
 
Constructor Summary
IndirectCostRecoveryRateRule()
           
 
Method Summary
protected  boolean checkAccountNumberNotWildcardRules(IndirectCostRecoveryRateDetail item)
           
protected  boolean checkAccountNumberWildcardRules(IndirectCostRecoveryRateDetail item)
           
protected  boolean checkAtMostOneWildcardUsed(IndirectCostRecoveryRateDetail item)
           
 boolean checkCreditsAndDebits(BigDecimal credits, BigDecimal debits)
           
 boolean checkExistence(IndirectCostRecoveryRateDetail item)
           
 boolean checkExistenceFromTable(Class clazz, Map fieldValues)
           
protected  boolean checkObjectCodeWildcardRules(IndirectCostRecoveryRateDetail item)
           
 boolean checkRateFormat(IndirectCostRecoveryRateDetail item)
           
protected  boolean checkSubAccountWildcardRules(IndirectCostRecoveryRateDetail item)
           
protected  boolean checkSubObjectWildcardRules(IndirectCostRecoveryRateDetail item)
           
 boolean checkWildcardRules(IndirectCostRecoveryRateDetail item)
           
 boolean itemPassesWildcardRules(IndirectCostRecoveryRateDetail item)
           
 boolean itemUsesWildcard(IndirectCostRecoveryRateDetail item)
           
 void logErrorUtility(String propertyName, String errorKey)
           
protected  boolean processAccount(IndirectCostRecoveryRateDetail item)
           
protected  boolean processChart(IndirectCostRecoveryRateDetail item)
           
 boolean processCollectionLine(IndirectCostRecoveryRateDetail item)
           
 boolean processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document, String collectionName, org.kuali.rice.kns.bo.PersistableBusinessObject line)
           
protected  boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
           
protected  boolean processObjectCode(IndirectCostRecoveryRateDetail item)
           
protected  boolean processSubAccount(IndirectCostRecoveryRateDetail item)
           
protected  boolean processSubObjectCode(IndirectCostRecoveryRateDetail item)
           
 boolean processYear()
           
 boolean propertyIsWildcard(String property)
           
 void setupConvenienceObjects()
           
 boolean validateWildcards(IndirectCostRecoveryRateDetail item)
           
 
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, 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, 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

MAINTAINABLE_DETAIL_ERROR_PATH

protected static final String MAINTAINABLE_DETAIL_ERROR_PATH
See Also:
Constant Field Values

MAINTAINABLE_DETAIL_ADDLINE_ERROR_PATH

protected static final String MAINTAINABLE_DETAIL_ADDLINE_ERROR_PATH
See Also:
Constant Field Values

indirectCostRecoveryRate

protected IndirectCostRecoveryRate indirectCostRecoveryRate

indirectCostRecoveryRateDetail

protected IndirectCostRecoveryRateDetail indirectCostRecoveryRateDetail

indirectCostRecoveryRateDetails

protected List<IndirectCostRecoveryRateDetail> indirectCostRecoveryRateDetails
Constructor Detail

IndirectCostRecoveryRateRule

public IndirectCostRecoveryRateRule()
Method Detail

setupConvenienceObjects

public void setupConvenienceObjects()
Specified by:
setupConvenienceObjects in interface org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRule
Overrides:
setupConvenienceObjects in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase

processCustomRouteDocumentBusinessRules

protected boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
Overrides:
processCustomRouteDocumentBusinessRules in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase

checkCreditsAndDebits

public boolean checkCreditsAndDebits(BigDecimal credits,
                                     BigDecimal debits)

processCustomAddCollectionLineBusinessRules

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

processCollectionLine

public boolean processCollectionLine(IndirectCostRecoveryRateDetail item)

checkExistence

public boolean checkExistence(IndirectCostRecoveryRateDetail item)

processYear

public boolean processYear()

processChart

protected boolean processChart(IndirectCostRecoveryRateDetail item)

processAccount

protected boolean processAccount(IndirectCostRecoveryRateDetail item)

processSubAccount

protected boolean processSubAccount(IndirectCostRecoveryRateDetail item)

processObjectCode

protected boolean processObjectCode(IndirectCostRecoveryRateDetail item)

processSubObjectCode

protected boolean processSubObjectCode(IndirectCostRecoveryRateDetail item)

checkExistenceFromTable

public boolean checkExistenceFromTable(Class clazz,
                                       Map fieldValues)

validateWildcards

public boolean validateWildcards(IndirectCostRecoveryRateDetail item)

itemPassesWildcardRules

public boolean itemPassesWildcardRules(IndirectCostRecoveryRateDetail item)

itemUsesWildcard

public boolean itemUsesWildcard(IndirectCostRecoveryRateDetail item)

propertyIsWildcard

public boolean propertyIsWildcard(String property)

checkAccountNumberWildcardRules

protected boolean checkAccountNumberWildcardRules(IndirectCostRecoveryRateDetail item)

checkAccountNumberNotWildcardRules

protected boolean checkAccountNumberNotWildcardRules(IndirectCostRecoveryRateDetail item)

checkObjectCodeWildcardRules

protected boolean checkObjectCodeWildcardRules(IndirectCostRecoveryRateDetail item)

checkSubObjectWildcardRules

protected boolean checkSubObjectWildcardRules(IndirectCostRecoveryRateDetail item)

checkSubAccountWildcardRules

protected boolean checkSubAccountWildcardRules(IndirectCostRecoveryRateDetail item)

checkWildcardRules

public boolean checkWildcardRules(IndirectCostRecoveryRateDetail item)

checkAtMostOneWildcardUsed

protected boolean checkAtMostOneWildcardUsed(IndirectCostRecoveryRateDetail item)

checkRateFormat

public boolean checkRateFormat(IndirectCostRecoveryRateDetail item)

logErrorUtility

public void logErrorUtility(String propertyName,
                            String errorKey)


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