| org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase org.kuali.module.chart.rules.OrganizationRoutingModelRule
OrganizationRoutingModelRule | public OrganizationRoutingModelRule()(Code) | | Constructs a OrganizationRoutingModelRule
|
checkDelegateFromAmountPositive | protected boolean checkDelegateFromAmountPositive(OrganizationRoutingModel delegateModel)(Code) | | Checks that if approval from amount is not null, then it is positive
Parameters: delegateModel - Organization Routing Model to check true if Organization Routing Model passes the checks, false if otherwise |
checkDelegateToAmountGreaterThanFromAmount | protected boolean checkDelegateToAmountGreaterThanFromAmount(OrganizationRoutingModel delegateModel)(Code) | | 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.
Parameters: delegateModel - Organization Routing Model to check true if the Organization Routing Model passes the checks, false if otherwise |
checkDelegateToAmountNotNull | protected boolean checkDelegateToAmountNotNull(OrganizationRoutingModel delegateModel)(Code) | | Checks that if approval from amount is not null then approval to amount is also not null
Parameters: delegateModel - Organization Routing Model to check true if Organization Routing Model passes all checks, false if otherwise |
checkDelegateUserRules | protected boolean checkDelegateUserRules(OrganizationRoutingModel delegateModel)(Code) | | Checks that the account delegate listed exists in the system, and that user has an active status and is a professional type
Parameters: delegateModel - the Organization Routing Model to check true if delegate user passes the rules described above; false if they fail |
checkModelNameHasAtLeastOneActiveModel | protected boolean checkModelNameHasAtLeastOneActiveModel(OrganizationRoutingModelName globalDelegateTemplate)(Code) | | This method checks that the account delegate model has at least one active "model" within it.
Parameters: globalDelegateTemplate - the account delegate model to check true if account delegate model has at least one active model in it. |
checkModelNameHasAtLeastOneModel | protected boolean checkModelNameHasAtLeastOneModel(OrganizationRoutingModelName globalDelegateTemplate)(Code) | | This method makes certain that the collection of account delegates in the "mo itdel" has at least one account delegate
template in it.
Parameters: globalDelegateTemplate - the account delegate model to check true if account delegate model has at least one account delegate template in it |
checkPrimaryRoutePerDocType | protected boolean checkPrimaryRoutePerDocType(OrganizationRoutingModelName globalDelegateTemplate, OrganizationRoutingModel delegateModel)(Code) | | This method validates the rule that says there can be only one PrimaryRoute delegate for each given docType. It checks the
delegateGlobalToTest against the list, to determine whether adding this new delegateGlobalToTest would violate any
PrimaryRoute business rule violations. If any of the incoming variables is null or empty, the method will do nothing, and
return Null. It will only process the business rules if there is sufficient data to do so.
Parameters: delegateGlobalToTest - A delegateGlobal line that you want to test against the list. Parameters: delegateGlobals - A List of delegateGlobal items that is being tested against. true if model, delegate template or org routing model is null, or if the primary routing indicator is set to false or the doc type code is emptyotherwise it checks to make sure that there is indeed one model marked as the primary route |
checkSimpleRules | protected boolean checkSimpleRules(OrganizationRoutingModelName globalDelegateTemplate)(Code) | | Checks the given rules against the entire Organization Routing Model parent.
Parameters: globalDelegateTemplate - the Organization Routing Model parent to check true if document passes all rules, false if otherwise |
checkSimpleRulesForOrganizationRoutingModel | protected boolean checkSimpleRulesForOrganizationRoutingModel(OrganizationRoutingModelName globalDelegateTemplate, OrganizationRoutingModel delegateModel)(Code) | | This method checks a series of basic rules for a single org routing model.
true if model passes all the checks, false if otherwise |
setupConvenienceObjects | public void setupConvenienceObjects()(Code) | | 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. It also calls the BusinessObjectBase.refresh(), which will attempt to load
all sub-objects from the DB by their primary keys, if available.
See Also: org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase.setupConvenienceObjects |
Methods inherited from org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase | protected boolean apcRuleFails(String parameterNamespace, String parameterDetailTypeCode, String parameterName, String valueToTest)(Code)(Java Doc) protected boolean applyApcRule(String parameterNamespace, String parameterDetailTypeCode, String parameterName, String valueToTest)(Code)(Java Doc) protected boolean checkAuthorizationRestrictions(MaintenanceDocument document)(Code)(Java Doc) protected boolean checkEmptyBOField(String propertyName, Object valueToTest, String parameter)(Code)(Java Doc) protected boolean checkEmptyDocumentField(String propertyName, Object valueToTest, String parameter)(Code)(Java Doc) protected boolean checkEmptyValue(Object valueToTest)(Code)(Java Doc) protected boolean checkForPartiallyFilledOutReferenceForeignKeys(String referenceName)(Code)(Java Doc) protected void clearErrorPath()(Code)(Java Doc) protected boolean dataDictionaryValidate(MaintenanceDocument document)(Code)(Java Doc) final protected BusinessObjectDictionaryService getBoDictionaryService()(Code)(Java Doc) final protected BusinessObjectService getBoService()(Code)(Java Doc) final protected KualiConfigurationService getConfigService()(Code)(Java Doc) public DateTimeService getDateTimeService()(Code)(Java Doc) final protected DataDictionaryService getDdService()(Code)(Java Doc) final protected DictionaryValidationService getDictionaryValidationService()(Code)(Java Doc) final protected DocumentAuthorizationService getDocumentAuthorizationService()(Code)(Java Doc) protected String getFieldLabel(String fieldName)(Code)(Java Doc) protected String getFieldLabel(Class boClass, String fieldName)(Code)(Java Doc) final protected MaintenanceDocumentDictionaryService getMaintDocDictionaryService()(Code)(Java Doc) final protected PersistableBusinessObject getNewBo()(Code)(Java Doc) final protected PersistableBusinessObject getOldBo()(Code)(Java Doc) final protected PersistenceService getPersistenceService()(Code)(Java Doc) final protected PersistenceStructureService getPersistenceStructureService()(Code)(Java Doc) public UniversalUserService getUniversalUserService()(Code)(Java Doc) public WorkflowDocumentService getWorkflowDocumentService()(Code)(Java Doc) protected boolean isCorrectMaintenanceClass(MaintenanceDocument document, Class clazz)(Code)(Java Doc) protected boolean isDocumentValidForSave(MaintenanceDocument maintenanceDocument)(Code)(Java Doc) public boolean processAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject bo)(Code)(Java Doc) public boolean processApproveDocument(ApproveDocumentEvent approveEvent)(Code)(Java Doc) public boolean processCustomAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject line)(Code)(Java Doc) protected boolean processCustomApproveDocumentBusinessRules(MaintenanceDocument document)(Code)(Java Doc) protected boolean processCustomRouteDocumentBusinessRules(MaintenanceDocument document)(Code)(Java Doc) protected boolean processCustomSaveDocumentBusinessRules(MaintenanceDocument document)(Code)(Java Doc) protected boolean processGlobalApproveDocumentBusinessRules(MaintenanceDocument document)(Code)(Java Doc) protected boolean processGlobalRouteDocumentBusinessRules(MaintenanceDocument document)(Code)(Java Doc) protected boolean processGlobalSaveDocumentBusinessRules(MaintenanceDocument document)(Code)(Java Doc) public boolean processRouteDocument(Document document)(Code)(Java Doc) public boolean processSaveDocument(Document document)(Code)(Java Doc) protected void putDocumentError(String propertyName, String errorConstant, String parameter)(Code)(Java Doc) protected void putDocumentError(String propertyName, String errorConstant, String[] parameters)(Code)(Java Doc) protected void putFieldError(String propertyName, String errorConstant)(Code)(Java Doc) protected void putFieldError(String propertyName, String errorConstant, String parameter)(Code)(Java Doc) protected void putFieldError(String propertyName, String errorConstant, String[] parameters)(Code)(Java Doc) protected void putFieldErrorWithShortLabel(String propertyName, String errorConstant)(Code)(Java Doc) protected void putGlobalError(String errorConstant)(Code)(Java Doc) protected void putGlobalError(String errorConstant, String parameter)(Code)(Java Doc) protected void putGlobalError(String errorConstant, String[] parameters)(Code)(Java Doc) protected void putGlobalsError(String propertyName, String errorConstant)(Code)(Java Doc) protected void putGlobalsError(String propertyName, String errorConstant, String parameter)(Code)(Java Doc) protected void resumeErrorPath()(Code)(Java Doc) final public void setBoDictionaryService(BusinessObjectDictionaryService boDictionaryService)(Code)(Java Doc) final public void setBoService(BusinessObjectService boService)(Code)(Java Doc) final public void setConfigService(KualiConfigurationService configService)(Code)(Java Doc) final public void setDdService(DataDictionaryService ddService)(Code)(Java Doc) final public void setDictionaryValidationService(DictionaryValidationService dictionaryValidationService)(Code)(Java Doc) final public void setDocumentAuthorizationService(DocumentAuthorizationService documentAuthorizationService)(Code)(Java Doc) final public void setMaintDocDictionaryService(MaintenanceDocumentDictionaryService maintDocDictionaryService)(Code)(Java Doc) protected void setNewBo(PersistableBusinessObject newBo)(Code)(Java Doc) final public void setPersistenceService(PersistenceService persistenceService)(Code)(Java Doc) final public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)(Code)(Java Doc) public void setUniversalUserService(UniversalUserService universalUserService)(Code)(Java Doc) public void setWorkflowDocumentService(WorkflowDocumentService workflowDocumentService)(Code)(Java Doc) public void setupBaseConvenienceObjects(MaintenanceDocument document)(Code)(Java Doc) public void setupConvenienceObjects()(Code)(Java Doc) protected boolean validateDocumentStructure(Document document)(Code)(Java Doc) protected boolean validateGlobalBusinessObjectPersistable(MaintenanceDocument document)(Code)(Java Doc) protected boolean validateMaintenanceDocument(MaintenanceDocument maintenanceDocument)(Code)(Java Doc)
|
|
|