org.kuali.kfs.sec.document.validation.impl
Class AccessSecurityAccountingDocumentRuleBase

java.lang.Object
  extended by org.kuali.rice.kns.rules.DocumentRuleBase
      extended by org.kuali.kfs.sys.document.validation.impl.AccountingRuleEngineRuleBase
          extended by org.kuali.kfs.sec.document.validation.impl.AccessSecurityAccountingDocumentRuleBase
All Implemented Interfaces:
AccountingRuleEngineRule, org.kuali.rice.kns.rule.AddAdHocRoutePersonRule, org.kuali.rice.kns.rule.AddAdHocRouteWorkgroupRule, 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 AccessSecurityAccountingDocumentRuleBase
extends AccountingRuleEngineRuleBase

Hooks into rules to make access security checks for accounting documents


Constructor Summary
AccessSecurityAccountingDocumentRuleBase()
           
 
Method Summary
protected  boolean checkEditAccessForAccountingLine(AccountingDocument document, AccountingLine line)
          Calls AccessSecurityService to check access edit permissions on accounting line for the current user
 boolean validateForEvent(AttributedDocumentEvent event)
          For add or update accounting line events checks the given user has access permissions for the line
 
Methods inherited from class org.kuali.kfs.sys.document.validation.impl.AccountingRuleEngineRuleBase
getDataDictionaryEntryForDocument, isDocumentAttributesValid, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processCustomSaveDocumentBusinessRules
 
Methods inherited from class org.kuali.rice.kns.rules.DocumentRuleBase
getDataDictionaryService, getDictionaryValidationService, getDocumentHelperService, getIdentityManagementService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPersonService, getWorkflowInfoService, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteRecipientsValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processApproveDocument, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setMaxDictionaryValidationDepth, validateSensitiveDataValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessSecurityAccountingDocumentRuleBase

public AccessSecurityAccountingDocumentRuleBase()
Method Detail

validateForEvent

public boolean validateForEvent(AttributedDocumentEvent event)
For add or update accounting line events checks the given user has access permissions for the line

Specified by:
validateForEvent in interface AccountingRuleEngineRule
Overrides:
validateForEvent in class AccountingRuleEngineRuleBase
Parameters:
event - the event to validate
Returns:
true if validation succeeded and the process requiring validation should continue, false if the validation failed and the process should quit
See Also:
AccountingRuleEngineRuleBase.validateForEvent(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)

checkEditAccessForAccountingLine

protected boolean checkEditAccessForAccountingLine(AccountingDocument document,
                                                   AccountingLine line)
Calls AccessSecurityService to check access edit permissions on accounting line for the current user

Parameters:
document - AccountingDocument containing the line to check
line - AccountingLine to check access on
Returns:
boolean true if user is allowed to edit the accounting line, false if the user is not allowed to


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