| org.kuali.module.chart.rules.GlobalDocumentRuleBase org.kuali.module.chart.rules.OrganizationReversionGlobalRule
Method Summary | |
public boolean | areAllDetailsValid(OrganizationReversionGlobal globalOrgRev) Tests if all of the
OrganizationReversionGlobalDetail objects associated with the given global organization reversion are
valid. | public boolean | areAllOrganizationsValid(OrganizationReversionGlobal globalOrgRev) This method tests if all the OrganizationReversionGlobalOrganization objects associated with the given global organization
reversion pass all of their tests. | public static boolean | areContainingSameOrganizations(OrganizationReversionGlobalOrganization orgRevOrgA, OrganizationReversionGlobalOrganization orgRevOrgB) This method tests if two OrganizationReversionGlobalOrganization objects are holding the same underlying Organization. | public 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. | public 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. | public 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. | protected boolean | checkDetailObjectCodeAndReversionCodeBothPresentOrNot(OrganizationReversionGlobalDetail detail) For a detail record, checks whether the object code and the organization reversion code are both filled in/selected
or both blank. | public boolean | checkDetailObjectCodeValidity(OrganizationReversionGlobal globalOrgRev, OrganizationReversionGlobalDetail detail) | public boolean | checkDetailObjectReversionCodeValidity(OrganizationReversionGlobalDetail detail) Tests if the object reversion code is a valid code. | public boolean | checkDetailOrgReversionCategoryValidity(OrganizationReversionGlobalDetail detail) Tests if the Organization Reversion Category existed in the database and was active. | public 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. | public boolean | checkOrganizationIsNotAmongOrgRevOrganizations(OrganizationReversionGlobal globalOrgRev, OrganizationReversionGlobalOrganization orgRevOrg) This method checks if a newly added organization is already among the organizations already listed. | public boolean | checkOrganizationReversionForOrganizationExists(OrganizationReversionGlobal globalOrgRev, OrganizationReversionGlobalOrganization org) Checks that an organization reversion for the given organization reversion change and organization reversion change
organization exist. | public boolean | checkOrganizationValidity(OrganizationReversionGlobalOrganization org) Tests if the given OrganizationReversionGlobalOrganization's Organization is active and within the system. | public boolean | checkSimpleRules(OrganizationReversionGlobal globalOrgRev) Convenient convenience method to test all the simple rules in one go. | public boolean | processCustomAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject line) | protected boolean | processCustomApproveDocumentBusinessRules(MaintenanceDocument document) | protected boolean | processCustomRouteDocumentBusinessRules(MaintenanceDocument document) | protected boolean | processCustomSaveDocumentBusinessRules(MaintenanceDocument document) | public void | setObjectCodeService(ObjectCodeService objectCodeService) | public void | setOrganizationReversionService(OrganizationReversionService organizationReversionService) | public 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. | public 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. |
OrganizationReversionGlobalRule | public OrganizationReversionGlobalRule()(Code) | | Constructs a OrganizationReversionGlobalRule
Pseudo-injects services
|
areAllOrganizationsValid | public boolean areAllOrganizationsValid(OrganizationReversionGlobal globalOrgRev)(Code) | | This method tests if all the OrganizationReversionGlobalOrganization objects associated with the given global organization
reversion pass all of their tests.
Parameters: globalOrgRev - the global organization reversion to check true if valid, false otherwise |
areContainingSameOrganizations | public static boolean areContainingSameOrganizations(OrganizationReversionGlobalOrganization orgRevOrgA, OrganizationReversionGlobalOrganization orgRevOrgB)(Code) | | This method tests if two OrganizationReversionGlobalOrganization objects are holding the same underlying Organization.
Parameters: orgRevOrgA - the first OrganizationReversionGlobalOrganization to check Parameters: orgRevOrgB - the second OrganizationReversionGlobalOrganization to check true if they share the organization, false if otherwise |
checkAllObjectCodesForValidity | public boolean checkAllObjectCodesForValidity(OrganizationReversionGlobal globalOrgRev, OrganizationReversionGlobalOrganization org)(Code) | | 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.
Parameters: globalOrgRev - the global organization reversion to check Parameters: org - the OrganizationReversionGlobalOrganization with a new chart to check against all of the object codes true if there are no conflicts, false if otherwise |
checkBudgetReversionAccountPair | public boolean checkBudgetReversionAccountPair(OrganizationReversionGlobal globalOrgRev)(Code) | | 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.
Parameters: globalOrgRev - the Global Organization Reversion to check true if budget reversion chart/account pair is specified correctly, false if otherwise |
checkCashReversionAccountPair | public boolean checkCashReversionAccountPair(OrganizationReversionGlobal globalOrgRev)(Code) | | 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.
Parameters: globalOrgRev - the Global Organization Reversion to check true if cash reversion chart/account pair is specified correctly, false if otherwise |
checkDetailObjectCodeAndReversionCodeBothPresentOrNot | protected boolean checkDetailObjectCodeAndReversionCodeBothPresentOrNot(OrganizationReversionGlobalDetail detail)(Code) | | For a detail record, checks whether the object code and the organization reversion code are both filled in/selected
or both blank.
Parameters: detail - OrganizationReversionGlobalDetail to check @return true if both filled in or both blank, false if otherwise |
checkDetailObjectCodeValidity | public boolean checkDetailObjectCodeValidity(OrganizationReversionGlobal globalOrgRev, OrganizationReversionGlobalDetail detail)(Code) | | For each organization, tests if the object code in the detail exists in the system and is active
Parameters: detail - the OrganizationReversionGlobalDetail to check true if it is valid, false if otherwise |
checkDetailObjectReversionCodeValidity | public boolean checkDetailObjectReversionCodeValidity(OrganizationReversionGlobalDetail detail)(Code) | | Tests if the object reversion code is a valid code.
Parameters: detail - the OrganizationReversionGlobalDetail to check true if it the detail is valid, false if otherwise |
checkDetailOrgReversionCategoryValidity | public boolean checkDetailOrgReversionCategoryValidity(OrganizationReversionGlobalDetail detail)(Code) | | Tests if the Organization Reversion Category existed in the database and was active.
Parameters: detail - OrganizationReversionGlobalDetail to check true if the category is valid, false if otherwise |
checkOrganizationChartValidity | public boolean checkOrganizationChartValidity(OrganizationReversionGlobalOrganization org)(Code) | | Tests if the the organization of the given OrganizationReversionGlobalOrganization is within the chart of the global
organization reversion as a whole.
Parameters: globalOrgRev - the global organization reversion that is currently being validated. Parameters: org - the OrganizationReversionGlobalOrganization to check true if valid, false otherwise |
checkOrganizationIsNotAmongOrgRevOrganizations | public boolean checkOrganizationIsNotAmongOrgRevOrganizations(OrganizationReversionGlobal globalOrgRev, OrganizationReversionGlobalOrganization orgRevOrg)(Code) | | This method checks if a newly added organization is already among the organizations already listed. WARNING: only use on add
line rules; there's no good way to use this method when testing the entire document.
Parameters: globalOrgRev - the global Organization Reversion to check Parameters: orgRevOrg - the newly adding organization reversion change organization true if organization should be added as it is not currently in the collection, false if otherwise |
checkOrganizationReversionForOrganizationExists | public boolean checkOrganizationReversionForOrganizationExists(OrganizationReversionGlobal globalOrgRev, OrganizationReversionGlobalOrganization org)(Code) | | Checks that an organization reversion for the given organization reversion change and organization reversion change
organization exist.
Parameters: globalOrgRev - global Organization Reversion to check Parameters: org - organization within that Global Organization Reversion to check specifically true if organization reversion for organization exists, false if otherwise |
checkOrganizationValidity | public boolean checkOrganizationValidity(OrganizationReversionGlobalOrganization org)(Code) | | Tests if the given OrganizationReversionGlobalOrganization's Organization is active and within the system.
Parameters: org - the OrganizationReversionGlobalOrganization to check true if valid, false otherwise |
checkSimpleRules | public boolean checkSimpleRules(OrganizationReversionGlobal globalOrgRev)(Code) | | Convenient convenience method to test all the simple rules in one go. Including:
Parameters: globalOrgRev - the global organization reversion to check true if the new global organization reversion passes all tests, false if it deviates even a tiny little bit |
setupConvenienceObjects | public void setupConvenienceObjects()(Code) | | 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. It also calls the BusinessObjectBase.refresh(), which will attempt to load
all sub-objects from the DB by their primary keys, if available.
Parameters: document - - the maintenanceDocument being evaluated See Also: org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase.setupConvenienceObjects |
validObjectCode | public boolean validObjectCode(Integer universityFiscalYear, String chartOfAccountsCode, String objectCode)(Code) | | This method checks if an object code with the given primary key fields exists in the database.
Parameters: universityFiscalYear - the university fiscal year of the object code Parameters: chartOfAccountsCode - the chart of accounts code of the object code Parameters: objectCode - the object code itself true if it exists (or was not filled in to begin with), false if otherwise |
|
|