|
||||||||||
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.coa.document.validation.impl.AccountDelegateModelRule
public class AccountDelegateModelRule
This class implements the business rules specific to the OrganizationRoutingModelName
Maintenance Document.
Field Summary |
---|
Fields inherited from class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase |
---|
boDictionaryService, boService, businessObjectAuthorizationService, configService, ddService, dictionaryValidationService, DOCUMENT_ERROR_PREFIX, documentHelperService, LOG, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, maintDocDictionaryService, persistenceService, persistenceStructureService, personService, priorErrorPath, roleService, workflowDocumentService |
Constructor Summary | |
---|---|
AccountDelegateModelRule()
Constructs a AccountDelegateModelRule |
Method Summary | |
---|---|
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.kns.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. |
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 |
Constructor Detail |
---|
public AccountDelegateModelRule()
Method Detail |
---|
public void setupConvenienceObjects()
setupConvenienceObjects
in interface org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRule
setupConvenienceObjects
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
MaintenanceDocumentRuleBase.setupConvenienceObjects()
protected boolean processCustomApproveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
AccountDelegateModelRule#checkSimpleRules(OrganizationRoutingModelName)
processCustomApproveDocumentBusinessRules
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
MaintenanceDocumentRuleBase.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.MaintenanceDocumentRuleBase
MaintenanceDocumentRuleBase.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.MaintenanceDocumentRuleBase
MaintenanceDocumentRuleBase.processCustomSaveDocumentBusinessRules(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)
AccountDelegateModelRule#checkSimpleRulesForOrganizationRoutingModel(OrganizationRoutingModelName, OrganizationRoutingModel)
processCustomAddCollectionLineBusinessRules
in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
MaintenanceDocumentRuleBase.processCustomAddCollectionLineBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument,
java.lang.String, org.kuali.rice.kns.bo.PersistableBusinessObject)
protected boolean checkSimpleRules(org.kuali.rice.kns.document.MaintenanceDocument document, AccountDelegateModel globalDelegateTemplate)
globalDelegateTemplate
- the Organization Routing Model parent to check
protected 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 check
protected boolean checkModelNameHasAtLeastOneActiveModel(AccountDelegateModel globalDelegateTemplate)
globalDelegateTemplate
- the account delegate model to check
protected boolean checkDelegateFromAmountPositive(AccountDelegateModelDetail delegateModel)
delegateModel
- Organization Routing Model to check
protected boolean checkDelegateToAmountGreaterThanFromAmount(AccountDelegateModelDetail delegateModel)
delegateModel
- Organization Routing Model to check
protected boolean checkDelegateUserRules(org.kuali.rice.kns.document.MaintenanceDocument document, AccountDelegateModelDetail delegateModel)
delegateModel
- the Organization Routing Model to check
protected 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 time
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |