|
||||||||||
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.GlobalDocumentRuleBase
org.kuali.kfs.coa.document.validation.impl.SubObjCdGlobalRule
public class SubObjCdGlobalRule
This class implements the business rules specific to the SubObjCdGlobal
Maintenance Document.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.kuali.kfs.coa.document.validation.impl.GlobalDocumentRuleBase |
---|
GlobalDocumentRuleBase.CheckOnlyOneChartResult |
Field Summary | |
---|---|
protected SubObjectCodeGlobal |
subObjCdGlobal
|
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, LOG, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, maintDocDictionaryService, persistenceService, persistenceStructureService, priorErrorPath, roleService, workflowDocumentService |
Constructor Summary | |
---|---|
SubObjCdGlobalRule()
|
Method Summary | |
---|---|
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.kns.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. |
Methods inherited from class org.kuali.kfs.coa.document.validation.impl.GlobalDocumentRuleBase |
---|
checkOnlyOneChart, checkOnlyOneChartAddLine, checkOnlyOneChartAddLineErrorWrapper, checkOnlyOneChartErrorWrapper |
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, 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 SubObjectCodeGlobal subObjCdGlobal
Constructor Detail |
---|
public SubObjCdGlobalRule()
Method Detail |
---|
public void setupConvenienceObjects()
setupConvenienceObjects
in interface org.kuali.rice.kns.maintenance.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.kns.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 collection
processCustomAddCollectionLineBusinessRules
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
MaintenanceDocumentRuleBase.processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument, java.lang.String, org.kuali.rice.kns.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 chart
details
-
public boolean checkAccountDetails(AccountGlobalDetail dtl)
dtl
- - the AccountGlobalDetail we are dealing with
public boolean checkSubObjectCodeDetails(SubObjectCodeGlobalDetail dtl)
dtl
- - the SubObjCdGlobalDetail we are checking
protected 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 year
socChangeDocument
-
protected boolean checkChartOnSubObjCodeDetails(SubObjectCodeGlobal socChangeDocument, SubObjectCodeGlobalDetail socChangeDetail, int lineNum, boolean add)
SubObjCdGlobalDetail
is not empty and
the document's chart matches the detail's chart
socChangeDocument
- 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 chart
socChangeDocument
- acctDetail
- lineNum
- add
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |