|
||||||||||
| 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.OrganizationReversionGlobalRule
public class OrganizationReversionGlobalRule
This class implements the business rules for OrganizationReversionGlobal
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.kuali.kfs.coa.document.validation.impl.GlobalDocumentRuleBase |
|---|
GlobalDocumentRuleBase.CheckOnlyOneChartResult |
| Field Summary | |
|---|---|
protected OrganizationReversionGlobal |
globalOrganizationReversion
|
protected static org.apache.log4j.Logger |
LOG
|
protected ObjectCodeService |
objectCodeService
|
protected OrganizationReversionService |
organizationReversionService
|
| 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, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, maintDocDictionaryService, persistenceService, persistenceStructureService, priorErrorPath, roleService, workflowDocumentService |
| Constructor Summary | |
|---|---|
OrganizationReversionGlobalRule()
Constructs a OrganizationReversionGlobalRule Pseudo-injects services |
|
| Method Summary | |
|---|---|
boolean |
areAllDetailsValid(OrganizationReversionGlobal globalOrgRev)
Tests if all of the OrganizationReversionGlobalDetail objects 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.kns.bo.PersistableBusinessObject line)
This performs rules checks whenever a new OrganizationReversionGlobalDetail or OrganizationReversionGlobalOrganization is 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. |
| 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 static org.apache.log4j.Logger LOG
protected OrganizationReversionGlobal globalOrganizationReversion
protected OrganizationReversionService organizationReversionService
protected ObjectCodeService objectCodeService
| Constructor Detail |
|---|
public OrganizationReversionGlobalRule()
| Method Detail |
|---|
public void setupConvenienceObjects()
setupConvenienceObjects in interface org.kuali.rice.kns.maintenance.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.kns.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.kns.bo.PersistableBusinessObject)public boolean checkSimpleRules(OrganizationReversionGlobal globalOrgRev)
checkBudgetReversionAccountPair(OrganizationReversionGlobal)checkCashReversionAccountPair(OrganizationReversionGlobal)areAllDetailsValid(OrganizationReversionGlobal)
globalOrgRev - the global organization reversion to check
public boolean checkBudgetReversionAccountPair(OrganizationReversionGlobal globalOrgRev)
globalOrgRev - the Global Organization Reversion to check
public boolean checkCashReversionAccountPair(OrganizationReversionGlobal globalOrgRev)
globalOrgRev - the Global Organization Reversion to check
public boolean areAllDetailsValid(OrganizationReversionGlobal globalOrgRev)
OrganizationReversionGlobalDetail objects associated with the given global organization reversion are
valid.
globalOrgRev - the global organization reversion to check
public boolean checkDetailOrgReversionCategoryValidity(OrganizationReversionGlobalDetail detail)
detail - OrganizationReversionGlobalDetail to check
public boolean checkDetailObjectCodeValidity(OrganizationReversionGlobal globalOrgRev,
OrganizationReversionGlobalDetail detail)
detail - the OrganizationReversionGlobalDetail to check
public 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 codes
public 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 itself
public boolean checkDetailObjectReversionCodeValidity(OrganizationReversionGlobalDetail detail)
detail - the OrganizationReversionGlobalDetail to check
public boolean areAllOrganizationsValid(OrganizationReversionGlobal globalOrgRev)
globalOrgRev - the global organization reversion to check
public boolean checkOrganizationChartValidity(OrganizationReversionGlobalOrganization org)
globalOrgRev - the global organization reversion that is currently being validated.org - the OrganizationReversionGlobalOrganization to check
public boolean checkOrganizationValidity(OrganizationReversionGlobalOrganization org)
org - the OrganizationReversionGlobalOrganization to check
public boolean checkOrganizationReversionForOrganizationExists(OrganizationReversionGlobal globalOrgRev,
OrganizationReversionGlobalOrganization org)
globalOrgRev - global Organization Reversion to checkorg - organization within that Global Organization Reversion to check specifically
public boolean checkOrganizationIsNotAmongOrgRevOrganizations(OrganizationReversionGlobal globalOrgRev,
OrganizationReversionGlobalOrganization orgRevOrg)
globalOrgRev - the global Organization Reversion to checkorgRevOrg - the newly adding organization reversion change organization
public static boolean areContainingSameOrganizations(OrganizationReversionGlobalOrganization orgRevOrgA,
OrganizationReversionGlobalOrganization orgRevOrgB)
orgRevOrgA - the first OrganizationReversionGlobalOrganization to checkorgRevOrgB - the second OrganizationReversionGlobalOrganization to check
public void setOrganizationReversionService(OrganizationReversionService organizationReversionService)
public void setObjectCodeService(ObjectCodeService objectCodeService)
protected OrganizationReversionGlobal getGlobalOrganizationReversion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||