org.kuali.kfs.coa.document.validation.impl
Class OrgReviewRoleRule

java.lang.Object
  extended by org.kuali.rice.kns.rules.DocumentRuleBase
      extended by org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
          extended by org.kuali.kfs.coa.document.validation.impl.OrgReviewRoleRule
All Implemented Interfaces:
org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRule, org.kuali.rice.kns.rule.AddAdHocRoutePersonRule, org.kuali.rice.kns.rule.AddAdHocRouteWorkgroupRule, org.kuali.rice.kns.rule.AddCollectionLineRule, org.kuali.rice.kns.rule.AddNoteRule, org.kuali.rice.kns.rule.ApproveDocumentRule, org.kuali.rice.kns.rule.BusinessRule, org.kuali.rice.kns.rule.RouteDocumentRule, org.kuali.rice.kns.rule.SaveDocumentRule, org.kuali.rice.kns.rule.SendAdHocRequestsRule

public class OrgReviewRoleRule
extends org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase

This class represents the business rules for the maintenance of AccountGlobal business objects


Field Summary
protected static org.kuali.rice.kim.service.GroupService groupService
           
protected static org.apache.log4j.Logger LOG
           
protected static org.kuali.rice.kim.service.KimTypeInfoService typeInfoService
           
protected  org.kuali.rice.kim.service.UiDocumentService uiDocumentService
           
 
Fields inherited from class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
boDictionaryService, boService, businessObjectAuthorizationService, configService, ddService, dictionaryValidationService, DOCUMENT_ERROR_PREFIX, documentHelperService, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, maintDocDictionaryService, persistenceService, persistenceStructureService, personService, priorErrorPath, roleService, workflowDocumentService
 
Constructor Summary
OrgReviewRoleRule()
           
 
Method Summary
protected  boolean areAttributesUnique(OrgReviewRole orr, org.kuali.rice.kim.bo.types.dto.AttributeSet attributeSet)
           
protected  String getAttributeValue(org.kuali.rice.kim.bo.types.dto.AttributeSet aSet, String attributeName)
           
protected  org.kuali.rice.kim.service.GroupService getGroupService()
           
protected  org.kuali.rice.kim.service.KimTypeInfoService getTypeInfoService()
           
 org.kuali.rice.kim.service.UiDocumentService getUiDocumentService()
          Gets the uiDocumentService attribute.
protected  boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
           
protected  boolean processGlobalSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
          Need to override to avoid the primary key check which (wrongly) assumes that the object's PKs can be found in the persistence service.
 boolean processRouteDocument(org.kuali.rice.kns.document.Document document)
           
 void setUiDocumentService(org.kuali.rice.kim.service.UiDocumentService uiDocumentService)
          Sets the uiDocumentService attribute value.
protected  boolean validateAmounts(OrgReviewRole orr)
           
protected  boolean validateDelegation(OrgReviewRole orr, boolean isEdit)
           
protected  boolean validateRoleMember(OrgReviewRole orr, boolean isEdit)
           
protected  void validateRoleMembersToSave(OrgReviewRole orr)
           
 
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, processCustomAddCollectionLineBusinessRules, processCustomApproveDocumentBusinessRules, processCustomSaveDocumentBusinessRules, processGlobalApproveDocumentBusinessRules, processGlobalRouteDocumentBusinessRules, processInactivationBlockChecking, processInactivationBlockChecking, 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, setupConvenienceObjects, 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
 

Field Detail

uiDocumentService

protected org.kuali.rice.kim.service.UiDocumentService uiDocumentService

groupService

protected static transient org.kuali.rice.kim.service.GroupService groupService

typeInfoService

protected static transient org.kuali.rice.kim.service.KimTypeInfoService typeInfoService

LOG

protected static org.apache.log4j.Logger LOG
Constructor Detail

OrgReviewRoleRule

public OrgReviewRoleRule()
Method Detail

processGlobalSaveDocumentBusinessRules

protected boolean processGlobalSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
Need to override to avoid the primary key check which (wrongly) assumes that the object's PKs can be found in the persistence service.

Overrides:
processGlobalSaveDocumentBusinessRules in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase
See Also:
MaintenanceDocumentRuleBase.processGlobalSaveDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument)

processRouteDocument

public boolean processRouteDocument(org.kuali.rice.kns.document.Document document)
Specified by:
processRouteDocument in interface org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRule
Specified by:
processRouteDocument in interface org.kuali.rice.kns.rule.RouteDocumentRule
Overrides:
processRouteDocument in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase

validateRoleMembersToSave

protected void validateRoleMembersToSave(OrgReviewRole orr)

validateDelegation

protected boolean validateDelegation(OrgReviewRole orr,
                                     boolean isEdit)

validateAmounts

protected boolean validateAmounts(OrgReviewRole orr)

validateRoleMember

protected boolean validateRoleMember(OrgReviewRole orr,
                                     boolean isEdit)

areAttributesUnique

protected boolean areAttributesUnique(OrgReviewRole orr,
                                      org.kuali.rice.kim.bo.types.dto.AttributeSet attributeSet)

getAttributeValue

protected String getAttributeValue(org.kuali.rice.kim.bo.types.dto.AttributeSet aSet,
                                   String attributeName)

processCustomRouteDocumentBusinessRules

protected boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.MaintenanceDocument document)
Overrides:
processCustomRouteDocumentBusinessRules in class org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase

getUiDocumentService

public org.kuali.rice.kim.service.UiDocumentService getUiDocumentService()
Gets the uiDocumentService attribute.

Returns:
Returns the uiDocumentService.

setUiDocumentService

public void setUiDocumentService(org.kuali.rice.kim.service.UiDocumentService uiDocumentService)
Sets the uiDocumentService attribute value.

Parameters:
uiDocumentService - The uiDocumentService to set.

getTypeInfoService

protected org.kuali.rice.kim.service.KimTypeInfoService getTypeInfoService()

getGroupService

protected org.kuali.rice.kim.service.GroupService getGroupService()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.