org.kuali.kfs.module.ar.document.validation.impl
Class OrganizationAccountingDefaultRule

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


Field Summary
protected static org.apache.log4j.Logger LOG
           
protected  OrganizationAccountingDefault newOrganizationAccountingDefault
           
protected  ObjectTypeService objectTypeService
           
protected  OrganizationAccountingDefault oldOrganizationAccountingDefault
           
 
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
OrganizationAccountingDefaultRule()
           
 
Method Summary
protected  boolean checkOrgOptionsExists()
          This method checks to see if the Org specified in this document has an Org Options record for it
protected  boolean doesPaymentAccountNumberExist(OrganizationAccountingDefault organizationAccountingDefault)
          This method returns true if payment account number is provided and is valid.
protected  boolean doesPaymentChartOfAccountsCodeExist(OrganizationAccountingDefault organizationAccountingDefault)
          This method returns true if payment chart of accounts code is provided and is valid
protected  boolean doesPaymentFinancialObjectCodeExist(OrganizationAccountingDefault organizationAccountingDefault)
          This method returns true if payment financial object code is provided and is valid
protected  boolean doesWriteoffAccountNumberExist(OrganizationAccountingDefault organizationAccountingDefault)
          This method returns true if payment account number is provided and is valid.
protected  boolean doesWriteoffChartOfAccountsCodeExist(OrganizationAccountingDefault organizationAccountingDefault)
          This method returns true if payment chart of accounts code is provided and is valid
protected  boolean doesWriteoffFinancialObjectCodeExist(OrganizationAccountingDefault organizationAccountingDefault)
          This method returns true if payment financial object code is provided and is valid
 ObjectTypeService getObjectTypeService()
           
protected  boolean isDefaultInvoiceFinancialObjectValidIncome(OrganizationAccountingDefault organizationAccountingDefault)
          This method checks to see if the invoice object code is of type Income IN IC CH
protected  boolean isLateChargeObjectValidIncome(OrganizationAccountingDefault organizationAccountingDefault)
          This method checks that the Late Charge Object Code is of type Income Using the ParameterService to find this valid value? IN IC CH
protected  boolean isWriteOffObjectValidExpense(OrganizationAccountingDefault organizationAccountingDefault)
          This method checks that the Writeoff Object Code is of type Expense EX EE ES
protected  boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
           
protected  boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
           
 void setObjectTypeService(ObjectTypeService objectTypeService)
           
 void setupConvenienceObjects()
           
 
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, processCustomAddCollectionLineBusinessRules, processCustomApproveDocumentBusinessRules, 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

LOG

protected static org.apache.log4j.Logger LOG

objectTypeService

protected ObjectTypeService objectTypeService

newOrganizationAccountingDefault

protected OrganizationAccountingDefault newOrganizationAccountingDefault

oldOrganizationAccountingDefault

protected OrganizationAccountingDefault oldOrganizationAccountingDefault
Constructor Detail

OrganizationAccountingDefaultRule

public OrganizationAccountingDefaultRule()
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

doesWriteoffAccountNumberExist

protected boolean doesWriteoffAccountNumberExist(OrganizationAccountingDefault organizationAccountingDefault)
This method returns true if payment account number is provided and is valid.

Parameters:
doc -
Returns:

doesWriteoffChartOfAccountsCodeExist

protected boolean doesWriteoffChartOfAccountsCodeExist(OrganizationAccountingDefault organizationAccountingDefault)
This method returns true if payment chart of accounts code is provided and is valid

Parameters:
doc -
Returns:

doesWriteoffFinancialObjectCodeExist

protected boolean doesWriteoffFinancialObjectCodeExist(OrganizationAccountingDefault organizationAccountingDefault)
This method returns true if payment financial object code is provided and is valid

Parameters:
doc -
Returns:

processCustomSaveDocumentBusinessRules

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

checkOrgOptionsExists

protected boolean checkOrgOptionsExists()
This method checks to see if the Org specified in this document has an Org Options record for it

Returns:
false if it does not have an OrgOptions record

isWriteOffObjectValidExpense

protected boolean isWriteOffObjectValidExpense(OrganizationAccountingDefault organizationAccountingDefault)
This method checks that the Writeoff Object Code is of type Expense

Returns:
true if it is an expense object

isLateChargeObjectValidIncome

protected boolean isLateChargeObjectValidIncome(OrganizationAccountingDefault organizationAccountingDefault)
This method checks that the Late Charge Object Code is of type Income Using the ParameterService to find this valid value?

Returns:
true if it is an income object

isDefaultInvoiceFinancialObjectValidIncome

protected boolean isDefaultInvoiceFinancialObjectValidIncome(OrganizationAccountingDefault organizationAccountingDefault)
This method checks to see if the invoice object code is of type Income

Returns:
true if it is an income object

doesPaymentAccountNumberExist

protected boolean doesPaymentAccountNumberExist(OrganizationAccountingDefault organizationAccountingDefault)
This method returns true if payment account number is provided and is valid.

Parameters:
doc -
Returns:

doesPaymentChartOfAccountsCodeExist

protected boolean doesPaymentChartOfAccountsCodeExist(OrganizationAccountingDefault organizationAccountingDefault)
This method returns true if payment chart of accounts code is provided and is valid

Parameters:
doc -
Returns:

doesPaymentFinancialObjectCodeExist

protected boolean doesPaymentFinancialObjectCodeExist(OrganizationAccountingDefault organizationAccountingDefault)
This method returns true if payment financial object code is provided and is valid

Parameters:
doc -
Returns:

getObjectTypeService

public ObjectTypeService getObjectTypeService()

setObjectTypeService

public void setObjectTypeService(ObjectTypeService objectTypeService)


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