org.kuali.kfs.module.purap.document.validation.impl
Class ThresholdRule

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


Field Summary
protected  AccountService accountService
           
protected  ChartService chartService
           
protected static org.apache.log4j.Logger LOG
           
protected  ReceivingThreshold newThreshold
           
protected  ReceivingThreshold oldThreshold
           
 
Fields inherited from class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
boDictionaryService, boService, businessObjectAuthorizationService, configService, ddService, dictionaryValidationService, DOCUMENT_ERROR_PREFIX, documentHelperService, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, maintDocDictionaryService, persistenceService, persistenceStructureService, personService, priorErrorPath, roleService, workflowDocumentService
 
Constructor Summary
ThresholdRule()
           
 
Method Summary
protected  void constructFieldError(ReceivingThreshold threshold)
           
protected  boolean isDocumentValidForSave(org.kuali.rice.kns.document.MaintenanceDocument document)
           
protected  boolean isDuplicateEntry(ReceivingThreshold newThreshold)
           
protected  boolean isValidChartCode(ReceivingThreshold threshold)
           
protected  boolean isValidCommodityCode(ReceivingThreshold threshold)
           
protected  boolean isValidDocument(ReceivingThreshold newThreshold, boolean checkDuplicate)
           
protected  boolean isValidObjectCode(ReceivingThreshold threshold)
           
protected  boolean isValidOrgCode(ReceivingThreshold threshold)
           
protected  boolean isValidSubFund(ReceivingThreshold threshold)
           
protected  boolean isValidThresholdCriteria(ReceivingThreshold threshold)
           
protected  boolean isValidVendorNumber(ReceivingThreshold threshold)
           
 
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, primaryKeyCheck, processAddCollectionLineBusinessRules, processApproveDocument, processCustomAddCollectionLineBusinessRules, 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

LOG

protected static org.apache.log4j.Logger LOG

chartService

protected ChartService chartService

accountService

protected AccountService accountService

newThreshold

protected ReceivingThreshold newThreshold

oldThreshold

protected ReceivingThreshold oldThreshold
Constructor Detail

ThresholdRule

public ThresholdRule()
Method Detail

isDocumentValidForSave

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

isValidDocument

protected boolean isValidDocument(ReceivingThreshold newThreshold,
                                  boolean checkDuplicate)

constructFieldError

protected void constructFieldError(ReceivingThreshold threshold)

isValidChartCode

protected boolean isValidChartCode(ReceivingThreshold threshold)

isValidSubFund

protected boolean isValidSubFund(ReceivingThreshold threshold)

isValidCommodityCode

protected boolean isValidCommodityCode(ReceivingThreshold threshold)

isValidObjectCode

protected boolean isValidObjectCode(ReceivingThreshold threshold)

isValidOrgCode

protected boolean isValidOrgCode(ReceivingThreshold threshold)

isValidVendorNumber

protected boolean isValidVendorNumber(ReceivingThreshold threshold)

isValidThresholdCriteria

protected boolean isValidThresholdCriteria(ReceivingThreshold threshold)

isDuplicateEntry

protected boolean isDuplicateEntry(ReceivingThreshold newThreshold)


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