public class OrganizationReversionGlobalRule extends GlobalDocumentRuleBase
OrganizationReversionGlobalGlobalDocumentRuleBase.CheckOnlyOneChartResult| Modifier and Type | Field and Description | 
|---|---|
| protected OrganizationReversionGlobal | globalOrganizationReversion | 
| protected static org.apache.log4j.Logger | LOG | 
| protected ObjectCodeService | objectCodeService | 
| protected OrganizationReversionService | organizationReversionService | 
financialSystemUserService, personServiceboDictionaryService, 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 | 
|---|
| OrganizationReversionGlobalRule()Constructs a OrganizationReversionGlobalRule
 Pseudo-injects services | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | areAllDetailsValid(OrganizationReversionGlobal globalOrgRev)Tests if all of the  OrganizationReversionGlobalDetailobjects associated with the given global organization reversion are
 valid. | 
| boolean | areAllOrganizationsValid(OrganizationReversionGlobal globalOrgRev)This method tests if all the OrganizationReversionGlobalOrganization objects associated with the given global organization
 reversion pass all of their tests. | 
| static boolean | areContainingSameOrganizations(OrganizationReversionGlobalOrganization orgRevOrgA,
                                                            OrganizationReversionGlobalOrganization orgRevOrgB)This method tests if two OrganizationReversionGlobalOrganization objects are holding the same underlying Organization. | 
| boolean | checkAllObjectCodesForValidity(OrganizationReversionGlobal globalOrgRev,
                                                            OrganizationReversionGlobalOrganization org)This method loops through each of the OrganizationReversionGlobalDetail objects, checking that the entered object codes for
 each of them are compatible with the OrganizationReversionGlobalOrganization specified. | 
| boolean | checkBudgetReversionAccountPair(OrganizationReversionGlobal globalOrgRev)This method makes sure that if one part of the Budget Reversion Chart/Account pair is specified, both are specified, or an
 error is thrown. | 
| boolean | checkCashReversionAccountPair(OrganizationReversionGlobal globalOrgRev)This method makes sure that if one part of the Cash Reversion Chart/Account pair is specified, both are specified, or an
 error is thrown. | 
| boolean | checkDetailObjectCodeValidity(OrganizationReversionGlobal globalOrgRev,
                                                          OrganizationReversionGlobalDetail detail)For each organization, tests if the object code in the detail exists in the system and is active | 
| boolean | checkDetailObjectReversionCodeValidity(OrganizationReversionGlobalDetail detail)Tests if the object reversion code is a valid code. | 
| boolean | checkDetailOrgReversionCategoryValidity(OrganizationReversionGlobalDetail detail)Tests if the Organization Reversion Category existed in the database and was active. | 
| boolean | checkOrganizationChartValidity(OrganizationReversionGlobalOrganization org)Tests if the the organization of the given OrganizationReversionGlobalOrganization is within the chart of the global
 organization reversion as a whole. | 
| boolean | checkOrganizationIsNotAmongOrgRevOrganizations(OrganizationReversionGlobal globalOrgRev,
                                                                                            OrganizationReversionGlobalOrganization orgRevOrg)This method checks if a newly added organization is already among the organizations already listed. | 
| boolean | checkOrganizationReversionForOrganizationExists(OrganizationReversionGlobal globalOrgRev,
                                                                                              OrganizationReversionGlobalOrganization org)Checks that an organization reversion for the given organization reversion change and organization reversion change
 organization exist. | 
| boolean | checkOrganizationValidity(OrganizationReversionGlobalOrganization org)Tests if the given OrganizationReversionGlobalOrganization's Organization is active and within the system. | 
| boolean | checkSimpleRules(OrganizationReversionGlobal globalOrgRev)Convenient convenience method to test all the simple rules in one go. | 
| protected OrganizationReversionGlobal | getGlobalOrganizationReversion() | 
| boolean | processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document,
                                                                                      String collectionName,
                                                                                      org.kuali.rice.krad.bo.PersistableBusinessObject line)This performs rules checks whenever a new  OrganizationReversionGlobalDetailorOrganizationReversionGlobalOrganizationis added | 
| protected boolean | processCustomApproveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)Calls the basic rules check on document approval:
 
  checkSimpleRules(OrganizationReversionGlobal)Fails on rules failure | 
| protected boolean | processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)Calls the basic rules check on document routing:
 
  checkSimpleRules(OrganizationReversionGlobal)Fails on rules failure | 
| protected boolean | processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)Calls the basic rules check on document save:
 
  checkSimpleRules(OrganizationReversionGlobal)Does not fail on rules failure | 
| void | setObjectCodeService(ObjectCodeService objectCodeService) | 
| void | setOrganizationReversionService(OrganizationReversionService organizationReversionService) | 
| 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. | 
| boolean | validObjectCode(Integer universityFiscalYear,
                              String chartOfAccountsCode,
                              String objectCode)This method checks if an object code with the given primary key fields exists in the database. | 
checkOnlyOneChart, checkOnlyOneChartAddLine, checkOnlyOneChartAddLineErrorWrapper, checkOnlyOneChartErrorWrappergetFinancialSystemUserService, getKfsUserServicecheckEmptyBOField, 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, validateMaintenanceDocumentbuildDocumentTypeActionRequestPermissionDetails, 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, validateSensitiveDataValueprotected static org.apache.log4j.Logger LOG
protected OrganizationReversionGlobal globalOrganizationReversion
protected OrganizationReversionService organizationReversionService
protected ObjectCodeService objectCodeService
public OrganizationReversionGlobalRule()
public void setupConvenienceObjects()
setupConvenienceObjects in interface org.kuali.rice.kns.rules.MaintenanceDocumentRulesetupConvenienceObjects in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBasedocument - - the maintenanceDocument being evaluatedMaintenanceDocumentRuleBase.setupConvenienceObjects()protected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
processCustomSaveDocumentBusinessRules in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBaseMaintenanceDocumentRuleBase.processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument)protected boolean processCustomApproveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
processCustomApproveDocumentBusinessRules in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBaseMaintenanceDocumentRuleBase.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.MaintenanceDocumentRuleBaseMaintenanceDocumentRuleBase.processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument)public boolean processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document, String collectionName, org.kuali.rice.krad.bo.PersistableBusinessObject line)
OrganizationReversionGlobalDetail or OrganizationReversionGlobalOrganization is added
 This includes:
checkDetailObjectCodeValidity(OrganizationReversionGlobal, OrganizationReversionGlobalDetail)checkDetailObjectReversionCodeValidity(OrganizationReversionGlobalDetail)OrganizationReversionGlobalOrganization are not empty valuescheckAllObjectCodesForValidity(OrganizationReversionGlobal, OrganizationReversionGlobalOrganization)processCustomAddCollectionLineBusinessRules in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBaseMaintenanceDocumentRuleBase.processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument,
      java.lang.String, org.kuali.rice.krad.bo.PersistableBusinessObject)public boolean checkSimpleRules(OrganizationReversionGlobal globalOrgRev)
checkBudgetReversionAccountPair(OrganizationReversionGlobal)checkCashReversionAccountPair(OrganizationReversionGlobal)areAllDetailsValid(OrganizationReversionGlobal)globalOrgRev - the global organization reversion to checkpublic boolean checkBudgetReversionAccountPair(OrganizationReversionGlobal globalOrgRev)
globalOrgRev - the Global Organization Reversion to checkpublic boolean checkCashReversionAccountPair(OrganizationReversionGlobal globalOrgRev)
globalOrgRev - the Global Organization Reversion to checkpublic boolean areAllDetailsValid(OrganizationReversionGlobal globalOrgRev)
OrganizationReversionGlobalDetail objects associated with the given global organization reversion are
 valid.globalOrgRev - the global organization reversion to checkpublic boolean checkDetailOrgReversionCategoryValidity(OrganizationReversionGlobalDetail detail)
detail - OrganizationReversionGlobalDetail to checkpublic boolean checkDetailObjectCodeValidity(OrganizationReversionGlobal globalOrgRev, OrganizationReversionGlobalDetail detail)
detail - the OrganizationReversionGlobalDetail to checkpublic boolean checkAllObjectCodesForValidity(OrganizationReversionGlobal globalOrgRev, OrganizationReversionGlobalOrganization org)
globalOrgRev - the global organization reversion to checkorg - the OrganizationReversionGlobalOrganization with a new chart to check against all of the object codespublic boolean validObjectCode(Integer universityFiscalYear, String chartOfAccountsCode, String objectCode)
universityFiscalYear - the university fiscal year of the object codechartOfAccountsCode - the chart of accounts code of the object codeobjectCode - the object code itselfpublic boolean checkDetailObjectReversionCodeValidity(OrganizationReversionGlobalDetail detail)
detail - the OrganizationReversionGlobalDetail to checkpublic boolean areAllOrganizationsValid(OrganizationReversionGlobal globalOrgRev)
globalOrgRev - the global organization reversion to checkpublic boolean checkOrganizationChartValidity(OrganizationReversionGlobalOrganization org)
globalOrgRev - the global organization reversion that is currently being validated.org - the OrganizationReversionGlobalOrganization to checkpublic boolean checkOrganizationValidity(OrganizationReversionGlobalOrganization org)
org - the OrganizationReversionGlobalOrganization to checkpublic boolean checkOrganizationReversionForOrganizationExists(OrganizationReversionGlobal globalOrgRev, OrganizationReversionGlobalOrganization org)
globalOrgRev - global Organization Reversion to checkorg - organization within that Global Organization Reversion to check specificallypublic boolean checkOrganizationIsNotAmongOrgRevOrganizations(OrganizationReversionGlobal globalOrgRev, OrganizationReversionGlobalOrganization orgRevOrg)
globalOrgRev - the global Organization Reversion to checkorgRevOrg - the newly adding organization reversion change organizationpublic static boolean areContainingSameOrganizations(OrganizationReversionGlobalOrganization orgRevOrgA, OrganizationReversionGlobalOrganization orgRevOrgB)
orgRevOrgA - the first OrganizationReversionGlobalOrganization to checkorgRevOrgB - the second OrganizationReversionGlobalOrganization to checkpublic void setOrganizationReversionService(OrganizationReversionService organizationReversionService)
public void setObjectCodeService(ObjectCodeService objectCodeService)
protected OrganizationReversionGlobal getGlobalOrganizationReversion()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.