public class AccountGlobalRule extends GlobalDocumentRuleBase
AccountGlobal
business objectsGlobalDocumentRuleBase.CheckOnlyOneChartResult
Modifier and Type | Field and Description |
---|---|
protected static String |
GENERAL_FUND_CD
Deprecated.
|
protected static org.apache.log4j.Logger |
LOG |
protected AccountGlobal |
newAccountGlobal |
protected static String |
SUB_FUND_GROUP_MEDICAL_PRACTICE_FUNDS
Deprecated.
|
protected Timestamp |
today |
financialSystemUserService, personService
boDictionaryService, boService, businessObjectAuthorizationService, businessObjectMetaDataService, configService, dataObjectMetaDataService, ddService, dictionaryValidationService, DOCUMENT_ERROR_PREFIX, documentHelperService, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, maintDocDictionaryService, persistenceStructureService, priorErrorPath, roleService, workflowDocumentService
Constructor and Description |
---|
AccountGlobalRule() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
areTwoUsersTheSame(org.kuali.rice.kim.api.identity.Person user1,
org.kuali.rice.kim.api.identity.Person user2)
This method checks to see if two users are the same Person using their identifiers
|
boolean |
checkAccountDetails(AccountGlobalDetail dtl)
This method ensures that each
AccountGlobalDetail is valid and has a valid account number |
boolean |
checkAccountDetails(org.kuali.rice.kns.document.MaintenanceDocument document,
List<AccountGlobalDetail> details)
This method loops through the list of
AccountGlobalDetail s and passes them off to checkAccountDetails for further
rule analysis One rule it does check is checkOnlyOneChartErrorWrapper |
protected boolean |
checkAccountUsers(AccountGlobalDetail detail,
org.kuali.rice.kim.api.identity.Person newFiscalOfficer,
org.kuali.rice.kim.api.identity.Person newManager,
org.kuali.rice.kim.api.identity.Person newSupervisor,
int index)
This method checks that the new users (fiscal officer, supervisor, manager) are not the same individual for the
Account being changed (contained in the AccountGlobalDetail ) |
protected boolean |
checkAllAccountUsers(AccountGlobal doc,
org.kuali.rice.kim.api.identity.Person newFiscalOfficer,
org.kuali.rice.kim.api.identity.Person newManager,
org.kuali.rice.kim.api.identity.Person newSupervisor)
This method checks to make sure that if the users are filled out (fiscal officer, supervisor, manager) that they are not the
same individual Only need to check this if these are new users that override existing users on the
Account object |
protected boolean |
checkCgIncomeStreamRequired(AccountGlobal accountGlobals)
This method checks to see if the contracts and grants income stream account is required
|
protected boolean |
checkContinuationAccount(org.kuali.rice.kns.document.MaintenanceDocument document,
Date newExpDate)
This method validates that a continuation account is required and that the values provided exist
|
protected boolean |
checkContractsAndGrants()
This method checks to see if any Contracts and Grants business rules were violated
|
protected boolean |
checkEmptyValues()
This method checks the basic rules for empty reference key values on a continuation account and an income stream account
|
protected boolean |
checkExpirationDate(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
This method checks to see if any expiration date field rules were violated Loops through each detail object and calls
checkExpirationDate(MaintenanceDocument, AccountGlobalDetail) |
protected boolean |
checkExpirationDate(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument,
AccountGlobalDetail detail)
This method checks to see if any expiration date field rules were violated in relation to the given detail record
|
protected boolean |
checkGeneralRules(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
This method checks some of the general business rules associated with this document Such as: valid user for fiscal officer,
supervisor or account manager (and not the same individual) are they trying to use an expired continuation account
|
protected boolean |
checkOrganizationValidity(AccountGlobal acctGlobal)
Validate that the object code on the form (if entered) is valid for all charts used in the detail sections.
|
protected boolean |
isContinuationAccountExpired(AccountGlobal accountGlobals)
This method tests whether the continuation account entered (if any) has expired or not.
|
protected boolean |
isSupervisorSameAsFiscalOfficer(AccountGlobal accountGlobals)
This method is a helper method for checking if the supervisor user is the same as the fiscal officer Calls
areTwoUsersTheSame(Person, Person) |
protected boolean |
isSupervisorSameAsManager(AccountGlobal accountGlobals)
This method is a helper method for checking if the supervisor user is the same as the manager Calls
areTwoUsersTheSame(Person, Person) |
protected boolean |
isUpdatedExpirationDateInvalid(Account oldAccount,
AccountGlobal newAccountGlobal)
This method checks to see if the updated expiration is not a valid one Only gets checked for specific
SubFundGroup s |
boolean |
processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document,
String collectionName,
org.kuali.rice.krad.bo.PersistableBusinessObject bo)
This method calls checkAccountDetails checkExpirationDate checkOnlyOneChartAddLineErrorWrapper whenever a new
AccountGlobalDetail is added to this global |
protected boolean |
processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
This method checks the following rules: checkEmptyValues checkGeneralRules checkContractsAndGrants checkExpirationDate
checkOnlyOneChartErrorWrapper checkFiscalOfficerIsValidKualiUser but does fail if any of these rule checks fail
|
protected boolean |
processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
This method checks the following rules: checkEmptyValues checkGeneralRules checkContractsAndGrants checkExpirationDate
checkOnlyOneChartErrorWrapper checkFiscalOfficerIsValidKualiUser but does not fail if any of them fail (this only happens on
routing)
|
void |
setupConvenienceObjects()
This method sets the convenience objects like newAccountGlobal and oldAccount, so you have short and easy handles to the new
and old objects contained in the maintenance document.
|
checkOnlyOneChart, checkOnlyOneChartAddLine, checkOnlyOneChartAddLineErrorWrapper, checkOnlyOneChartErrorWrapper
getFinancialSystemUserService, getKfsUserService
checkEmptyBOField, checkEmptyDocumentField, checkEmptyValue, checkForPartiallyFilledOutReferenceForeignKeys, clearErrorPath, consolidateFieldNames, dataDictionaryValidate, errorAlreadyExists, getBoService, getConfigService, getDataObjectMetaDataService, getDateTimeService, getDdService, getDictionaryValidationService, getDocumentHelperService, getFieldLabel, getFieldLabel, getHumanReadablePrimaryKeyFieldNames, getMaintDocDictionaryService, getNewBo, getOldBo, getPersistenceStructureService, getPersonService, getRoleService, getWorkflowDocumentService, isCorrectMaintenanceClass, isDocumentInactivatingBusinessObject, isDocumentValidForSave, primaryKeyCheck, processAddCollectionLineBusinessRules, processApproveDocument, processCustomApproveDocumentBusinessRules, processGlobalApproveDocumentBusinessRules, processGlobalRouteDocumentBusinessRules, processGlobalSaveDocumentBusinessRules, processInactivationBlockChecking, processInactivationBlockChecking, processRouteDocument, processSaveDocument, putDocumentError, putDocumentError, putFieldError, putFieldError, putFieldError, putFieldErrorWithShortLabel, putGlobalError, putGlobalError, putGlobalError, putGlobalsError, putGlobalsError, putInactivationBlockingErrorOnPage, resumeErrorPath, setBoDictionaryService, setBoService, setBusinessObjectAuthorizationService, setBusinessObjectMetaDataService, setConfigService, setDataObjectMetaDataService, setDdService, setDictionaryValidationService, setDocumentHelperService, setMaintDocDictionaryService, setNewBo, setPersistenceStructureService, setPersonService, setupBaseConvenienceObjects, setWorkflowDocumentService, showErrorMap, validateDocumentStructure, validateDuplicateIdentifierInDataDictionary, validateGlobalBusinessObjectPersistable, validateMaintenanceDocument
buildDocumentTypeActionRequestPermissionDetails, buildDocumentTypePermissionDetails, getDataDictionaryService, getDocumentDictionaryService, getGroupService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPermissionService, hasAdHocRouteCompletion, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteCompletionToInitiator, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processCompleteDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomCompleteDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processCustomSaveDocumentBusinessRules, processCustomSendAdHocRequests, processSendAdHocRequests, setDocumentDictionaryService, setMaxDictionaryValidationDepth, useKimPermission, validateSensitiveDataValue
protected static final org.apache.log4j.Logger LOG
@Deprecated protected static final String GENERAL_FUND_CD
@Deprecated protected static final String SUB_FUND_GROUP_MEDICAL_PRACTICE_FUNDS
protected AccountGlobal newAccountGlobal
public AccountGlobalRule()
public void setupConvenienceObjects()
setupConvenienceObjects
in interface org.kuali.rice.kns.rules.MaintenanceDocumentRule
setupConvenienceObjects
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
protected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
processCustomSaveDocumentBusinessRules
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
MaintenanceDocumentRuleBase.processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument)
protected boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
processCustomRouteDocumentBusinessRules
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
MaintenanceDocumentRuleBase.processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument)
public boolean checkAccountDetails(org.kuali.rice.kns.document.MaintenanceDocument document, List<AccountGlobalDetail> details)
AccountGlobalDetail
s and passes them off to checkAccountDetails for further
rule analysis One rule it does check is checkOnlyOneChartErrorWrapperdocument
- details
- AccountGlobalDetail
s passes the sub-rulespublic boolean checkAccountDetails(AccountGlobalDetail dtl)
AccountGlobalDetail
is valid and has a valid account numberdtl
- protected boolean checkEmptyValues()
protected boolean checkGeneralRules(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
maintenanceDocument
- protected boolean checkAllAccountUsers(AccountGlobal doc, org.kuali.rice.kim.api.identity.Person newFiscalOfficer, org.kuali.rice.kim.api.identity.Person newManager, org.kuali.rice.kim.api.identity.Person newSupervisor)
Account
objectdoc
- newFiscalOfficer
- newManager
- newSupervisor
- protected boolean checkAccountUsers(AccountGlobalDetail detail, org.kuali.rice.kim.api.identity.Person newFiscalOfficer, org.kuali.rice.kim.api.identity.Person newManager, org.kuali.rice.kim.api.identity.Person newSupervisor, int index)
Account
being changed (contained in the AccountGlobalDetail
)detail
- - where the Account information is storednewFiscalOfficer
- newManager
- newSupervisor
- index
- - for storing the error lineprotected boolean isSupervisorSameAsFiscalOfficer(AccountGlobal accountGlobals)
areTwoUsersTheSame(Person, Person)
accountGlobals
- protected boolean isSupervisorSameAsManager(AccountGlobal accountGlobals)
areTwoUsersTheSame(Person, Person)
accountGlobals
- protected boolean areTwoUsersTheSame(org.kuali.rice.kim.api.identity.Person user1, org.kuali.rice.kim.api.identity.Person user2)
user1
- user2
- protected boolean checkExpirationDate(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
checkExpirationDate(MaintenanceDocument, AccountGlobalDetail)
maintenanceDocument
- protected boolean checkExpirationDate(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument, AccountGlobalDetail detail)
maintenanceDocument
- detail
- - the account detail we are investigatingprotected boolean isUpdatedExpirationDateInvalid(Account oldAccount, AccountGlobal newAccountGlobal)
SubFundGroup
soldAccount
- newAccountGlobal
- protected boolean isContinuationAccountExpired(AccountGlobal accountGlobals)
accountGlobals
- protected boolean checkContractsAndGrants()
protected boolean checkCgIncomeStreamRequired(AccountGlobal accountGlobals)
accountGlobals
- public boolean processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document, String collectionName, org.kuali.rice.krad.bo.PersistableBusinessObject bo)
AccountGlobalDetail
is added to this globalprocessCustomAddCollectionLineBusinessRules
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
MaintenanceDocumentRuleBase.processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument,
java.lang.String, org.kuali.rice.krad.bo.PersistableBusinessObject)
protected boolean checkContinuationAccount(org.kuali.rice.kns.document.MaintenanceDocument document, Date newExpDate)
document
- An instance of the maintenance document being validated.newExpDate
- The expiration date assigned to the account being validated for submission.protected boolean checkOrganizationValidity(AccountGlobal acctGlobal)
acctGlobal
- Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.