public class SubAccountRule extends IndirectCostRecoveryAccountsRule
SubAccount
Maintenance Document.Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
LOG |
protected SubAccount |
newSubAccount |
protected SubAccount |
oldSubAccount |
BD100, boFieldPath
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 |
---|
SubAccountRule() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkCgCostSharingIsEmpty()
This method tests if all fields in the Cost Sharing section are empty.
|
protected boolean |
checkCgCostSharingRules()
This checks that if the cost share information is filled out that it is valid and exists, or if fields are missing (such as
the chart of accounts code and account number) an error is recorded
|
protected boolean |
checkCgIcrIsEmpty()
This method tests if all fields in the ICR section are empty.
|
protected boolean |
checkCgIcrRules()
This checks that if the ICR information is entered that it is valid for this fiscal year and that all of its fields are valid
as well (such as account)
|
protected boolean |
checkCgRules(org.kuali.rice.kns.document.MaintenanceDocument document)
This checks to make sure that if cgAuthorized is false it succeeds immediately, otherwise it checks that all the information
for CG is correctly entered and identified including:
If the
SubFundGroup isn't for Contracts and Grants then check to make sure that the cost share and ICR fields are
not empty
If it isn't a child of CG, then the SubAccount must be of type ICR
|
protected boolean |
checkForPartiallyEnteredReportingFields()
This checks that the reporting fields are entered altogether or none at all
|
protected boolean |
disallowAnyValues(String value,
String fieldName)
This method tests the value entered, and if there is anything there it logs a new error, and returns false.
|
protected boolean |
disallowChangedValues(String oldValue,
String newValue,
String fieldName)
This method tests the two values entered, and if there is any change between the two, it logs an error, and returns false.
|
protected String |
getDisplayName(String propertyName)
This method retrieves the label name for a specific property
|
protected boolean |
isFieldValueChanged(String oldValue,
String newValue)
This compares two string values to see if the newValue has changed from the oldValue
|
protected boolean |
processCustomApproveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
This performs rules checks on document approve
SubAccountRule#setCgAuthorized(boolean)
checkForPartiallyEnteredReportingFields()
checkCgRules(MaintenanceDocument)
This rule fails on business rule failures |
protected boolean |
processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
This performs rules checks on document route
SubAccountRule#setCgAuthorized(boolean)
checkForPartiallyEnteredReportingFields()
checkCgRules(MaintenanceDocument)
This rule fails on business rule failures |
protected boolean |
processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
This performs rules checks on document save
SubAccountRule#setCgAuthorized(boolean)
checkForPartiallyEnteredReportingFields()
checkCgRules(MaintenanceDocument)
This rule does not fail on business rule failures |
void |
setupConvenienceObjects()
This method sets the convenience objects like newAccount and oldAccount, so you have short and easy handles to the new and
old objects contained in the maintenance document.
|
checkICRCollectionExist, checkICRCollectionExistWithErrorMessage, checkIndirectCostRecoveryAccount, checkIndirectCostRecoveryAccount, checkIndirectCostRecoveryAccountDistributions, getActiveIndirectCostRecoveryAccountList, getBoFieldPath, getDDAttributeLabel, processCustomAddCollectionLineBusinessRules, setActiveIndirectCostRecoveryAccountList, setBoFieldPath
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 static org.apache.log4j.Logger LOG
protected SubAccount oldSubAccount
protected SubAccount newSubAccount
public SubAccountRule()
protected boolean processCustomApproveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
SubAccountRule#setCgAuthorized(boolean)
checkForPartiallyEnteredReportingFields()
checkCgRules(MaintenanceDocument)
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)
SubAccountRule#setCgAuthorized(boolean)
checkForPartiallyEnteredReportingFields()
checkCgRules(MaintenanceDocument)
processCustomRouteDocumentBusinessRules
in class IndirectCostRecoveryAccountsRule
MaintenanceDocumentRuleBase.processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument)
protected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
SubAccountRule#setCgAuthorized(boolean)
checkForPartiallyEnteredReportingFields()
checkCgRules(MaintenanceDocument)
processCustomSaveDocumentBusinessRules
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
MaintenanceDocumentRuleBase.processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument)
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 checkForPartiallyEnteredReportingFields()
protected boolean checkCgRules(org.kuali.rice.kns.document.MaintenanceDocument document)
SubFundGroup
isn't for Contracts and Grants then check to make sure that the cost share and ICR fields are
not emptydocument
- protected boolean checkCgCostSharingRules()
protected boolean checkCgIcrRules()
protected boolean checkCgCostSharingIsEmpty()
protected boolean checkCgIcrIsEmpty()
protected boolean disallowAnyValues(String value, String fieldName)
value
- - String value to be testedfieldName
- - name of the field being testedprotected boolean disallowChangedValues(String oldValue, String newValue, String fieldName)
oldValue
- - the original String value of the fieldnewValue
- - the new String value of the fieldfieldName
- - name of the field being testedprotected boolean isFieldValueChanged(String oldValue, String newValue)
oldValue
- - original valuenewValue
- - new valueprotected String getDisplayName(String propertyName)
propertyName
- - property to retrieve label for (from the DD)Copyright © 2004–2015 The Kuali Foundation. All rights reserved.