| org.kuali.module.chart.rules.GlobalDocumentRuleBase org.kuali.module.chart.rules.AccountGlobalRule
Method Summary | |
protected boolean | areTwoUsersTheSame(UniversalUser user1, UniversalUser user2) | public boolean | checkAccountDetails(MaintenanceDocument document, List<AccountGlobalDetail> details) | public boolean | checkAccountDetails(AccountGlobalDetail dtl) | protected boolean | checkAccountUsers(AccountGlobalDetail detail, UniversalUser newFiscalOfficer, UniversalUser newManager, UniversalUser newSupervisor, int index) | protected boolean | checkAllAccountUsers(AccountGlobal doc, UniversalUser newFiscalOfficer, UniversalUser newManager, UniversalUser newSupervisor) | protected boolean | checkCgIncomeStreamRequired(AccountGlobal accountGlobals) | protected boolean | checkContinuationAccount(MaintenanceDocument document, Timestamp newExpDate) This method validates that a continuation account is required and that the values provided exist
Parameters: document - An instance of the maintenance document being validated. Parameters: newExpDate - The expiration date assigned to the account being validated for submission. | protected boolean | checkContractsAndGrants() | protected boolean | checkEmptyValues() | protected boolean | checkExpirationDate(MaintenanceDocument maintenanceDocument) | protected boolean | checkExpirationDate(MaintenanceDocument maintenanceDocument, AccountGlobalDetail detail) | protected boolean | checkFiscalOfficerIsValidKualiUser(String fiscalOfficerUserId) | protected boolean | checkGeneralRules(MaintenanceDocument maintenanceDocument) | protected boolean | checkOrganizationValidity(AccountGlobal acctGlobal) Validate that the object code on the form (if entered) is valid for all charts used in the detail sections. | protected boolean | checkUserStatusAndType(String propertyName, UniversalUser user) This method checks to see if the user passed in is of the type requested. | protected boolean | isContinuationAccountExpired(AccountGlobal accountGlobals) This method tests whether the continuation account entered (if any) has expired or not. | protected boolean | isSupervisorSameAsFiscalOfficer(AccountGlobal accountGlobals) | protected boolean | isSupervisorSameAsManager(AccountGlobal accountGlobals) | protected boolean | isUpdatedExpirationDateInvalid(Account oldAccount, AccountGlobal newAccountGlobal) | public boolean | processCustomAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject bo) | protected boolean | processCustomRouteDocumentBusinessRules(MaintenanceDocument document) | protected boolean | processCustomSaveDocumentBusinessRules(MaintenanceDocument document) | public void | setupConvenienceObjects() This method sets the convenience objects like newAccountGlobal and oldAccount, so you have short and easy handles to the new
and old objects contained in the maintenance document. |
AccountGlobalRule | public AccountGlobalRule()(Code) | | |
areTwoUsersTheSame | protected boolean areTwoUsersTheSame(UniversalUser user1, UniversalUser user2)(Code) | | This method checks to see if two users are the same BusinessObject using their identifiers
Parameters: user1 - Parameters: user2 - true if these two users are the same |
checkAccountDetails | public boolean checkAccountDetails(AccountGlobalDetail dtl)(Code) | | This method ensures that each
AccountGlobalDetail is valid and has a valid account number
Parameters: dtl - true if the detail object contains a valid account |
checkAccountUsers | protected boolean checkAccountUsers(AccountGlobalDetail detail, UniversalUser newFiscalOfficer, UniversalUser newManager, UniversalUser newSupervisor, int index)(Code) | | This method checks that the new users (fiscal officer, supervisor, manager) are not the same individual for the
Account being changed (contained in the
AccountGlobalDetail )
Parameters: detail - - where the Account information is stored Parameters: newFiscalOfficer - Parameters: newManager - Parameters: newSupervisor - Parameters: index - - for storing the error line true if the new users pass this sub-rule |
checkAllAccountUsers | protected boolean checkAllAccountUsers(AccountGlobal doc, UniversalUser newFiscalOfficer, UniversalUser newManager, UniversalUser newSupervisor)(Code) | | This method checks to make sure that if the users are filled out (fiscal officer, supervisor, manager) that they are not the
same individual Only need to check this if these are new users that override existing users on the
Account object
Parameters: doc - Parameters: newFiscalOfficer - Parameters: newManager - Parameters: newSupervisor - true if the users are either not changed or pass the sub-rules |
checkCgIncomeStreamRequired | protected boolean checkCgIncomeStreamRequired(AccountGlobal accountGlobals)(Code) | | This method checks to see if the contracts and grants income stream account is required
Parameters: accountGlobals - false if it is required (and not entered) or invalid/inactive |
checkContinuationAccount | protected boolean checkContinuationAccount(MaintenanceDocument document, Timestamp newExpDate)(Code) | | This method validates that a continuation account is required and that the values provided exist
Parameters: document - An instance of the maintenance document being validated. Parameters: newExpDate - The expiration date assigned to the account being validated for submission. True if the continuation account values are valid for the associated account, false otherwise. |
checkContractsAndGrants | protected boolean checkContractsAndGrants()(Code) | | This method checks to see if any Contracts and Grants business rules were violated
false on rules violation |
checkEmptyValues | protected boolean checkEmptyValues()(Code) | | This method checks the basic rules for empty reference key values on a continuation account and an income stream account
true if no empty values or partially filled out reference keys |
checkExpirationDate | protected boolean checkExpirationDate(MaintenanceDocument maintenanceDocument, AccountGlobalDetail detail)(Code) | | This method checks to see if any expiration date field rules were violated in relation to the given detail record
Parameters: maintenanceDocument - Parameters: detail - - the account detail we are investigating false on rules violation |
checkFiscalOfficerIsValidKualiUser | protected boolean checkFiscalOfficerIsValidKualiUser(String fiscalOfficerUserId)(Code) | | This method insures the fiscal officer is a valid Kuali User
Parameters: fiscalOfficerUserId - true if fiscal officer is a valid KualiUser |
checkGeneralRules | protected boolean checkGeneralRules(MaintenanceDocument maintenanceDocument)(Code) | | This method checks some of the general business rules associated with this document Such as: valid user for fiscal officer,
supervisor or account manager (and not the same individual) are they trying to use an expired continuation account
Parameters: maintenanceDocument - false on rules violation |
checkOrganizationValidity | protected boolean checkOrganizationValidity(AccountGlobal acctGlobal)(Code) | | Validate that the object code on the form (if entered) is valid for all charts used in the detail sections.
Parameters: acctGlobal - |
checkUserStatusAndType | protected boolean checkUserStatusAndType(String propertyName, UniversalUser user)(Code) | | This method checks to see if the user passed in is of the type requested. If so, it returns true. If not, it returns false,
and adds an error to the GlobalErrors.
Parameters: propertyName - Parameters: user - - UniversalUser to be tested true if user is of the requested employee type, false if not, true if the user object is null |
isContinuationAccountExpired | protected boolean isContinuationAccountExpired(AccountGlobal accountGlobals)(Code) | | This method tests whether the continuation account entered (if any) has expired or not.
Parameters: accountGlobals - true if the continuation account has expired |
isUpdatedExpirationDateInvalid | protected boolean isUpdatedExpirationDateInvalid(Account oldAccount, AccountGlobal newAccountGlobal)(Code) | | This method checks to see if the updated expiration is not a valid one Only gets checked for specific
SubFundGroup s
Parameters: oldAccount - Parameters: newAccountGlobal - true if date has changed and is invalid |
setupConvenienceObjects | public void setupConvenienceObjects()(Code) | | This method sets the convenience objects like newAccountGlobal 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.
|
|
|