public class AccountDelegateModelRule extends KfsMaintenanceDocumentRuleBase
OrganizationRoutingModelName Maintenance Document.| Modifier and Type | Field and Description | 
|---|---|
| protected AccountDelegateModel | model | 
financialSystemUserService, personServiceboDictionaryService, boService, businessObjectAuthorizationService, businessObjectMetaDataService, configService, dataObjectMetaDataService, ddService, dictionaryValidationService, DOCUMENT_ERROR_PREFIX, documentHelperService, LOG, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, maintDocDictionaryService, persistenceStructureService, priorErrorPath, roleService, workflowDocumentService| Constructor and Description | 
|---|
| AccountDelegateModelRule() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | checkDelegateDocumentTypeCode(String documentTypeCode,
                                                          FinancialSystemDocumentTypeService documentService)Validates the document type code for the delegate, to make sure it is a Financial System document type code | 
| protected boolean | checkDelegateFromAmountPositive(AccountDelegateModelDetail delegateModel)Checks that if approval from amount is not null, then it is positive | 
| protected boolean | checkDelegateToAmountGreaterThanFromAmount(AccountDelegateModelDetail delegateModel)Checks that if approval from amount is null, that approval to this amount is null or zero; and then checks that approval to
 amount is greater than or equal to approval from amount. | 
| protected boolean | checkDelegateUserRules(org.kuali.rice.kns.document.MaintenanceDocument document,
                                            AccountDelegateModelDetail delegateModel)Checks that the account delegate listed exists in the system, and that user has an active status and is a professional type | 
| protected boolean | checkModelNameHasAtLeastOneActiveModel(AccountDelegateModel globalDelegateTemplate)This method checks that the account delegate model has at least one active "model" within it. | 
| protected boolean | checkModelNameHasAtLeastOneModel(AccountDelegateModel globalDelegateTemplate)This method makes certain that the collection of account delegates in the "mo itdel" has at least one account delegate
 template in it. | 
| protected boolean | checkPrimaryRoutePerDocType(AccountDelegateModel globalDelegateTemplate,
                                                      AccountDelegateModelDetail delegateModel)This method validates the rule that says there can be only one PrimaryRoute delegate for each given docType. | 
| protected boolean | checkSimpleRules(org.kuali.rice.kns.document.MaintenanceDocument document,
                                AccountDelegateModel globalDelegateTemplate)Checks the given rules against the entire Organization Routing Model parent. | 
| protected boolean | checkSimpleRulesForOrganizationRoutingModel(org.kuali.rice.kns.document.MaintenanceDocument document,
                                                                                      AccountDelegateModel globalDelegateTemplate,
                                                                                      AccountDelegateModelDetail delegateModel,
                                                                                      FinancialSystemDocumentTypeService documentService)This method checks a series of basic rules for a single org routing model. | 
| boolean | processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document,
                                                                                      String collectionName,
                                                                                      org.kuali.rice.krad.bo.PersistableBusinessObject line)This method calls 
 
  AccountDelegateModelRule#checkSimpleRulesForOrganizationRoutingModel(OrganizationRoutingModelName, OrganizationRoutingModel) | 
| protected boolean | processCustomApproveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)This performs rules checks on document approve
 
  AccountDelegateModelRule#checkSimpleRules(OrganizationRoutingModelName)This rule fails on business rule failures | 
| protected boolean | processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)This performs rules checks on document route
 
  AccountDelegateModelRule#checkSimpleRules(OrganizationRoutingModelName)This rule fails on business rule failures | 
| protected boolean | processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)This performs rules checks on document save
 
  AccountDelegateModelRule#checkSimpleRules(OrganizationRoutingModelName)This rule does not fail on business rule failures | 
| void | setupConvenienceObjects()This method sets the convenience objects like model, so you have short and easy handles to the new and
 old objects contained in the maintenance document. | 
getFinancialSystemUserService, 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 AccountDelegateModel model
public AccountDelegateModelRule()
public void setupConvenienceObjects()
setupConvenienceObjects in interface org.kuali.rice.kns.rules.MaintenanceDocumentRulesetupConvenienceObjects in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBaseMaintenanceDocumentRuleBase.setupConvenienceObjects()protected boolean processCustomApproveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
AccountDelegateModelRule#checkSimpleRules(OrganizationRoutingModelName)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)
AccountDelegateModelRule#checkSimpleRules(OrganizationRoutingModelName)processCustomRouteDocumentBusinessRules in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBaseMaintenanceDocumentRuleBase.processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument)protected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
AccountDelegateModelRule#checkSimpleRules(OrganizationRoutingModelName)processCustomSaveDocumentBusinessRules in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBaseMaintenanceDocumentRuleBase.processCustomSaveDocumentBusinessRules(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)
AccountDelegateModelRule#checkSimpleRulesForOrganizationRoutingModel(OrganizationRoutingModelName, OrganizationRoutingModel)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)protected boolean checkSimpleRules(org.kuali.rice.kns.document.MaintenanceDocument document, AccountDelegateModel globalDelegateTemplate)
globalDelegateTemplate - the Organization Routing Model parent to checkprotected boolean checkSimpleRulesForOrganizationRoutingModel(org.kuali.rice.kns.document.MaintenanceDocument document, AccountDelegateModel globalDelegateTemplate, AccountDelegateModelDetail delegateModel, FinancialSystemDocumentTypeService documentService)
protected boolean checkModelNameHasAtLeastOneModel(AccountDelegateModel globalDelegateTemplate)
globalDelegateTemplate - the account delegate model to checkprotected boolean checkModelNameHasAtLeastOneActiveModel(AccountDelegateModel globalDelegateTemplate)
globalDelegateTemplate - the account delegate model to checkprotected boolean checkDelegateFromAmountPositive(AccountDelegateModelDetail delegateModel)
delegateModel - Organization Routing Model to checkprotected boolean checkDelegateToAmountGreaterThanFromAmount(AccountDelegateModelDetail delegateModel)
delegateModel - Organization Routing Model to checkprotected boolean checkDelegateUserRules(org.kuali.rice.kns.document.MaintenanceDocument document, AccountDelegateModelDetail delegateModel)
delegateModel - the Organization Routing Model to checkprotected boolean checkPrimaryRoutePerDocType(AccountDelegateModel globalDelegateTemplate, AccountDelegateModelDetail delegateModel)
delegateGlobalToTest - A delegateGlobal line that you want to test against the list.delegateGlobals - A List of delegateGlobal items that is being tested against.protected boolean checkDelegateDocumentTypeCode(String documentTypeCode, FinancialSystemDocumentTypeService documentService)
documentTypeCode - the document type code to checkdelegateService - a helpful instance of the delegate service, so new ones don't have to be created all the timeCopyright © 2004–2014 The Kuali Foundation. All rights reserved.