|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.kns.rules.DocumentRuleBase
org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
org.kuali.kfs.sys.document.validation.impl.KfsMaintenanceDocumentRuleBase
org.kuali.kfs.coa.document.validation.impl.AccountRule
org.kuali.kfs.module.external.kc.document.validation.impl.AccountAutoCreateDefaultsRule
public class AccountAutoCreateDefaultsRule
Business rule(s) applicable to AccountMaintenance documents.
Field Summary | |
---|---|
protected AccountService |
accountService
|
protected ContractsAndGrantsModuleService |
contractsAndGrantsModuleService
|
protected static org.apache.log4j.Logger |
LOG
|
protected AccountAutoCreateDefaults |
newAccountAutoCreateDefaults
|
protected AccountAutoCreateDefaults |
oldAccountAutoCreateDefaults
|
protected static org.kuali.rice.kns.service.ParameterService |
parameterService
|
Fields inherited from class org.kuali.kfs.coa.document.validation.impl.AccountRule |
---|
ACCT_CAPITAL_SUBFUNDGROUP, ACCT_PREFIX_RESTRICTION, balanceService, BUDGET_RECORDING_LEVEL_MIXED, ENDOWMENT_FUND_CD, GENERAL_FUND_CD, generalLedgerPendingEntryService, newAccount, oldAccount, PLANT_FUND_CD, RESTRICTED_CD_RESTRICTED, RESTRICTED_CD_TEMPORARILY_RESTRICTED, RESTRICTED_CD_UNRESTRICTED, RESTRICTED_FUND_CD, subFundGroupService |
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, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, maintDocDictionaryService, persistenceService, persistenceStructureService, priorErrorPath, roleService, workflowDocumentService |
Constructor Summary | |
---|---|
AccountAutoCreateDefaultsRule()
|
Method Summary | |
---|---|
protected boolean |
checkCGFieldNotFilledIn(String propertyName)
|
protected boolean |
checkCgRequiredFields()
|
protected boolean |
checkContractsAndGrants(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
This method checks to see if any Contracts and Grants business rules were violated Calls the following sub-rules: checkCgRequiredFields checkCgIncomeStreamRequired |
protected boolean |
checkEmptyValues(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
This method checks the basic rules for empty values in an account and associated objects with this account If guidelines are required for this Business Object it checks to make sure that it is filled out It also checks for partially filled out reference keys on the following: continuationAccount incomeStreamAccount endowmentIncomeAccount reportsToAccount contractControlAccount indirectCostRecoveryAcct |
protected boolean |
checkFringeBenefitAccountRule()
|
protected boolean |
checkGeneralRules(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
This method checks some of the general business rules associated with this document Calls the following rules: accountNumberStartsWithAllowedPrefix isNonSystemSupervisorEditingAClosedAccount hasTemporaryRestrictedStatusCodeButNoRestrictedStatusDate checkFringeBenefitAccountRule checkUserStatusAndType (on fiscal officer, supervisor and manager) ensures that the fiscal officer, supervisor and manager are not the same isContinuationAccountExpired |
protected boolean |
checkIncomeStreamAccountRule()
the income stream account is required if account's sub fund group code's fund group code is either GF or CG. |
protected boolean |
checkIncomeStreamValid()
|
protected boolean |
checkRequiredKcUnit(AccountAutoCreateDefaults newAccountAutoCreateDefaults,
boolean isNew)
This method checks to make sure that the kcUnit field exists and is entered correctly |
org.kuali.rice.kns.service.ParameterService |
getParameterService()
|
protected boolean |
isContinuationAccountExpired()
|
protected boolean |
isSupervisorSameAsFiscalOfficer()
|
protected boolean |
isSupervisorSameAsManager()
|
protected boolean |
processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
This method calls the following rules: checkAccountGuidelinesValidation checkEmptyValues checkGeneralRules checkCloseAccount checkContractsAndGrants checkExpirationDate checkFundGroup checkSubFundGroup checkFiscalOfficerIsValidKualiUser this rule will fail on routing |
protected boolean |
processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
This method calls the route rules but does not fail if any of them fail (this only happens on routing) |
void |
setContractsAndGrantsModuleService(ContractsAndGrantsModuleService contractsAndGrantsModuleService)
Sets the contractsAndGrantsModuleService attribute value. |
void |
setupConvenienceObjects()
This method sets the convenience objects like newAccountAutoCreateDefaults and oldAccountAutoCreateDefaults, so you have short and easy handles to the new and old objects contained in the maintenance document. |
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, 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 |
---|
protected static org.apache.log4j.Logger LOG
protected static org.kuali.rice.kns.service.ParameterService parameterService
protected AccountService accountService
protected ContractsAndGrantsModuleService contractsAndGrantsModuleService
protected AccountAutoCreateDefaults oldAccountAutoCreateDefaults
protected AccountAutoCreateDefaults newAccountAutoCreateDefaults
Constructor Detail |
---|
public AccountAutoCreateDefaultsRule()
Method Detail |
---|
public void setupConvenienceObjects()
setupConvenienceObjects
in interface org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRule
setupConvenienceObjects
in class AccountRule
protected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
processCustomSaveDocumentBusinessRules
in class AccountRule
MaintenanceDocumentRuleBase.processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument)
protected boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
processCustomRouteDocumentBusinessRules
in class AccountRule
MaintenanceDocumentRuleBase.processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument)
protected boolean checkEmptyValues(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
AccountRule
checkEmptyValues
in class AccountRule
protected boolean checkGeneralRules(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
AccountRule
checkGeneralRules
in class AccountRule
protected boolean checkFringeBenefitAccountRule()
protected boolean isSupervisorSameAsFiscalOfficer()
protected boolean isSupervisorSameAsManager()
protected boolean isContinuationAccountExpired()
protected boolean checkContractsAndGrants(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
AccountRule
checkContractsAndGrants
in class AccountRule
protected boolean checkCgRequiredFields()
protected boolean checkIncomeStreamValid()
protected boolean checkCGFieldNotFilledIn(String propertyName)
protected boolean checkIncomeStreamAccountRule()
AccountRule
checkIncomeStreamAccountRule
in class AccountRule
protected boolean checkRequiredKcUnit(AccountAutoCreateDefaults newAccountAutoCreateDefaults, boolean isNew)
newAccountAutoCreateDefaults
-
public void setContractsAndGrantsModuleService(ContractsAndGrantsModuleService contractsAndGrantsModuleService)
setContractsAndGrantsModuleService
in class AccountRule
contractsAndGrantsModuleService
- The contractsAndGrantsModuleService to set.public org.kuali.rice.kns.service.ParameterService getParameterService()
getParameterService
in class AccountRule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |