public class ObjectCodeRule extends org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
ObjectCode
Modifier and Type | Field and Description |
---|---|
protected static ChartService |
chartService |
protected static org.kuali.rice.core.api.config.property.ConfigurationService |
configService |
protected static ObjectCodeService |
objectCodeService |
protected static ObjectConsService |
objectConsService |
protected static ObjectLevelService |
objectLevelService |
protected Map |
reportsTo |
boDictionaryService, boService, businessObjectAuthorizationService, businessObjectMetaDataService, dataObjectMetaDataService, ddService, dictionaryValidationService, DOCUMENT_ERROR_PREFIX, documentHelperService, LOG, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, maintDocDictionaryService, persistenceStructureService, personService, priorErrorPath, roleService, workflowDocumentService
Constructor and Description |
---|
ObjectCodeRule()
Constructs a ObjectCodeRule
Pseudo-injects some services as well as fills out the reports to chart hierarchy
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkForBlockingIndirectCostRecoveryExclusionAccounts(ObjectCode objectCode)
Checks that no ICR Exclusion by Account records are dependent on the given object code if it is inactivated
|
protected boolean |
checkForBlockingOffsetDefinitions(ObjectCode objectCode)
Checks that no offset definitions are dependent on the given object code if it is inactivated
|
protected boolean |
checkResearchAdminAttributes(ObjectCode objectCode)
This method verifies the budget category value
|
boolean |
consolidationTableDoesNotHave(String chartCode,
String objectCode)
This Check whether newly added object code already exists in Consolidation table
|
protected boolean |
denied(List set,
Object value)
This method is a null-safe wrapper around Set.contains()
|
protected boolean |
isLegalBudgetAggregationCode(String budgetAggregationCode)
Budget Aggregation Code (fobj_bdgt_aggr_cd) must have an institutionally specified value
|
protected boolean |
isObjectCodeInactivating(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
Determines if the given maintenance document constitutes an inactivation of the object code it is maintaining
|
boolean |
isValidYear(Integer year)
Deprecated.
|
boolean |
nextYearObjectCodeDoesNotExistThisYear(Integer year,
String chartCode,
String objCode)
This checks to see if the next year object code already exists in the next fiscal year
|
boolean |
objectLevelTableDoesNotHave(String chartCode,
String objectCode)
This method checks whether newly added object code already exists in Object Level table
|
protected boolean |
permitted(Set set,
Object value)
This method is a null-safe wrapper around Set.contains().
|
protected boolean |
processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
This method calls the following rules on document route:
processObjectCodeRules(ObjectCode)
|
protected boolean |
processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
This method calls the following rules on document save:
processObjectCodeRules(ObjectCode)
It does not fail if rules fail |
protected boolean |
processObjectCodeRules(ObjectCode objectCode)
This checks the following rules:
object code valid
reports to chart code is valid (similar to what
ObjectCodePreRules does)
is the budget aggregation code valid
then checks to make sure that this object code hasn't already been entered in the consolidation and level table
finally checks to make sure that the next year object code (if filled out) isn't already in there and that this object code has a valid fiscal year
|
protected boolean |
verifyObjectCode(Integer year,
String chart,
String objectCode)
This checks to see if the object code already exists in the system
|
protected boolean |
verifyReportsToChartCode(Integer year,
String chart,
String objectCode,
String reportsToChartCode,
String reportsToObjectCode)
This method checks When the value of reportsToChartCode does not have an institutional exception, the Reports to Object
(rpts_to_fin_obj_cd) fiscal year, and chart code must exist in the object code table
if the chart and object are the same, then skip the check
this assumes that the validity of the reports-to object code has already been tested (and corrected if necessary)
|
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, 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, setBusinessObjectMetaDataService, setConfigService, setDataObjectMetaDataService, setDdService, setDictionaryValidationService, setDocumentHelperService, setMaintDocDictionaryService, setNewBo, setPersistenceStructureService, setPersonService, setupBaseConvenienceObjects, setupConvenienceObjects, 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 ObjectLevelService objectLevelService
protected static ObjectCodeService objectCodeService
protected static ObjectConsService objectConsService
protected static org.kuali.rice.core.api.config.property.ConfigurationService configService
protected static ChartService chartService
public ObjectCodeRule()
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)
protected boolean processObjectCodeRules(ObjectCode objectCode)
ObjectCodePreRules
does)objectCode
- public boolean objectLevelTableDoesNotHave(String chartCode, String objectCode)
chartCode
- objectCode
- public boolean consolidationTableDoesNotHave(String chartCode, String objectCode)
chartCode
- objectCode
- public boolean nextYearObjectCodeDoesNotExistThisYear(Integer year, String chartCode, String objCode)
year
- chartCode
- objCode
- @Deprecated public boolean isValidYear(Integer year)
year
- protected boolean permitted(Set set, Object value)
set
- - methods returns false if the Set is nullvalue
- to seekprotected boolean denied(List set, Object value)
set
- value
- protected boolean isLegalBudgetAggregationCode(String budgetAggregationCode)
budgetAggregationCode
- protected boolean verifyObjectCode(Integer year, String chart, String objectCode)
year
- chart
- objectCode
- protected boolean verifyReportsToChartCode(Integer year, String chart, String objectCode, String reportsToChartCode, String reportsToObjectCode)
year
- chart
- objectCode
- reportsToChartCode
- reportsToObjectCode
- protected boolean isObjectCodeInactivating(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
maintenanceDocument
- the maintenance document maintaining an object codeprotected boolean checkForBlockingOffsetDefinitions(ObjectCode objectCode)
objectCode
- the object code trying to inactivateprotected boolean checkForBlockingIndirectCostRecoveryExclusionAccounts(ObjectCode objectCode)
objectCode
- the object code trying to inactivateprotected boolean checkResearchAdminAttributes(ObjectCode objectCode)
objectCodeGlobal
- Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.