public class SubObjCdGlobalRule extends GlobalDocumentRuleBase
SubObjCdGlobal
Maintenance Document.GlobalDocumentRuleBase.CheckOnlyOneChartResult
Modifier and Type | Field and Description |
---|---|
protected SubObjectCodeGlobal |
subObjCdGlobal |
financialSystemUserService, personService
boDictionaryService, boService, businessObjectAuthorizationService, businessObjectMetaDataService, configService, dataObjectMetaDataService, ddService, dictionaryValidationService, DOCUMENT_ERROR_PREFIX, documentHelperService, LOG, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, maintDocDictionaryService, persistenceStructureService, priorErrorPath, roleService, workflowDocumentService
Constructor and Description |
---|
SubObjCdGlobalRule() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkAccountDetails(AccountGlobalDetail dtl)
This checks that if the account and chart are entered that the account associated with the AccountGlobalDetail is valid
|
boolean |
checkAccountDetails(List<AccountGlobalDetail> details)
This calls the
checkAccountDetails(AccountGlobalDetail) on each AccountGlobalDetail as well as calling
GlobalDocumentRuleBase.checkOnlyOneChartErrorWrapper(List) to ensure there is just one chart |
protected boolean |
checkChartAllLines(SubObjectCodeGlobal socChangeDocument)
This checks that the chart is the same on the document, SubObjCdGlobalDetails and AccountGlobalDetails
|
protected boolean |
checkChartOnAccountDetails(SubObjectCodeGlobal socChangeDocument,
AccountGlobalDetail acctDetail,
int lineNum,
boolean add)
This checks that the chart of accounts on the
AccountGlobalDetail is not empty and matches
the document's chart matches the detail's chart |
protected boolean |
checkChartOnSubObjCodeDetails(SubObjectCodeGlobal socChangeDocument,
SubObjectCodeGlobalDetail socChangeDetail,
int lineNum,
boolean add)
This checks to make sure that the chart of accounts on the
SubObjCdGlobalDetail is not empty and
the document's chart matches the detail's chart |
protected boolean |
checkFiscalYear(SubObjectCodeGlobal socChangeDocument,
SubObjectCodeGlobalDetail socChangeDetail,
int lineNum,
boolean add)
This checks to make sure that the fiscal year on the
SubObjCdGlobalDetail is not empty and
the document's fiscal year matches the detail's fiscal year |
protected boolean |
checkFiscalYearAllLines(SubObjectCodeGlobal socChangeDocument)
This checks that the fiscal year is the same on the doc and all SubObjCdGlobalDetails
|
protected boolean |
checkForAccountGlobalDetails(List<AccountGlobalDetail> acctChangeDetails)
This checks that the AccountGlobalDetail list isn't empty or null
|
protected boolean |
checkForSubObjCdGlobalDetails(List<SubObjectCodeGlobalDetail> subObjCdGlobalDetails)
This checks that the SubObjCdGlobalDetail list isn't empty or null
|
protected boolean |
checkSimpleRulesAllLines()
This method checks the simple rules for all lines at once and gets called on save, submit, etc.
|
boolean |
checkSubObjectCodeDetails(SubObjectCodeGlobalDetail dtl)
This checks that if the object code, chart code, and fiscal year are entered it is a valid Object Code, chart, and Fiscal Year
associated with this SubObjectCode
|
boolean |
processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document,
String collectionName,
org.kuali.rice.krad.bo.PersistableBusinessObject bo)
Before adding either a
AccountGlobalDetail or SubObjCdGlobalDetail this checks to make sure
that the account and chart are filled in, in the case of SubObjCdGlobalDetail it also checks
that the object code and fiscal year are filled in
If any of these fail, it fails to add the new line to the collection |
protected boolean |
processCustomApproveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
This performs rules checks on document approve
checkSimpleRulesAllLines()
This rule fails on business rule failures |
protected boolean |
processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
This performs rules checks on document route
checkSimpleRulesAllLines()
This rule fails on business rule failures |
protected boolean |
processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
This performs rules checks on document save
checkSimpleRulesAllLines()
This rule does not fail on business rule failures |
void |
setupConvenienceObjects()
This method sets the convenience objects like subObjCdGlobal and all the detail objects, 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, 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 SubObjectCodeGlobal subObjCdGlobal
public SubObjCdGlobalRule()
public void setupConvenienceObjects()
setupConvenienceObjects
in interface org.kuali.rice.kns.rules.MaintenanceDocumentRule
setupConvenienceObjects
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
document
- - the maintenanceDocument being evaluatedprotected boolean processCustomApproveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
processCustomApproveDocumentBusinessRules
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
MaintenanceDocumentRuleBase.processCustomApproveDocumentBusinessRules(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)
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)
public boolean processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document, String collectionName, org.kuali.rice.krad.bo.PersistableBusinessObject bo)
AccountGlobalDetail
or SubObjCdGlobalDetail
this checks to make sure
that the account and chart are filled in, in the case of SubObjCdGlobalDetail it also checks
that the object code and fiscal year are filled in
If any of these fail, it fails to add the new line to the collectionprocessCustomAddCollectionLineBusinessRules
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)
public boolean checkAccountDetails(List<AccountGlobalDetail> details)
checkAccountDetails(AccountGlobalDetail)
on each AccountGlobalDetail as well as calling
GlobalDocumentRuleBase.checkOnlyOneChartErrorWrapper(List)
to ensure there is just one chartdetails
- public boolean checkAccountDetails(AccountGlobalDetail dtl)
dtl
- - the AccountGlobalDetail we are dealing withpublic boolean checkSubObjectCodeDetails(SubObjectCodeGlobalDetail dtl)
dtl
- - the SubObjCdGlobalDetail we are checkingprotected boolean checkSimpleRulesAllLines()
checkForSubObjCdGlobalDetails(List)
checkForAccountGlobalDetails(List)
SubObjCdGlobalRule#checkFiscalYearAllLines(SubObjCdGlobal)
SubObjCdGlobalRule#checkChartAllLines(SubObjCdGlobal)
protected boolean checkForSubObjCdGlobalDetails(List<SubObjectCodeGlobalDetail> subObjCdGlobalDetails)
subObjCdGlobalDetails
- protected boolean checkForAccountGlobalDetails(List<AccountGlobalDetail> acctChangeDetails)
acctChangeDetails
- protected boolean checkFiscalYearAllLines(SubObjectCodeGlobal socChangeDocument)
socChangeDocument
- protected boolean checkChartAllLines(SubObjectCodeGlobal socChangeDocument)
socChangeDocument
- protected boolean checkFiscalYear(SubObjectCodeGlobal socChangeDocument, SubObjectCodeGlobalDetail socChangeDetail, int lineNum, boolean add)
SubObjCdGlobalDetail
is not empty and
the document's fiscal year matches the detail's fiscal yearsocChangeDocument
- protected boolean checkChartOnSubObjCodeDetails(SubObjectCodeGlobal socChangeDocument, SubObjectCodeGlobalDetail socChangeDetail, int lineNum, boolean add)
SubObjCdGlobalDetail
is not empty and
the document's chart matches the detail's chartsocChangeDocument
- socChangeDetail
- lineNum
- add
- protected boolean checkChartOnAccountDetails(SubObjectCodeGlobal socChangeDocument, AccountGlobalDetail acctDetail, int lineNum, boolean add)
AccountGlobalDetail
is not empty and matches
the document's chart matches the detail's chartsocChangeDocument
- acctDetail
- lineNum
- add
- Copyright © 2004–2015 The Kuali Foundation. All rights reserved.