it.openutils.hibernate.security.filter
Class SecurityRuleAccessDecisionVoter

java.lang.Object
  extended by it.openutils.hibernate.security.filter.SecurityRuleBaseHandler
      extended by it.openutils.hibernate.security.filter.SecurityRuleAccessDecisionVoter
All Implemented Interfaces:
org.acegisecurity.vote.AccessDecisionVoter

public class SecurityRuleAccessDecisionVoter
extends SecurityRuleBaseHandler
implements org.acegisecurity.vote.AccessDecisionVoter

Version:
$Id: SecurityRuleAccessDecisionVoter.java 705 2008-02-26 10:56:55Z fcarone $ This voter looks for rules based on the given object and votes ACCESS_ABSTAIN if no rules are found, ACCESS_DENIED if rules do not match, ACCESS_GRANTED otherwise.
Author:
fcarone

Field Summary
 
Fields inherited from interface org.acegisecurity.vote.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED
 
Constructor Summary
SecurityRuleAccessDecisionVoter()
           
 
Method Summary
 void setEnabled(boolean enabled)
          Sets the enabled.
 void setSecurityRuleManager(SecurityRuleManager securityRuleManager)
          Sets the securityRuleManager.
 int vote(org.acegisecurity.Authentication authentication, java.lang.Object object, org.acegisecurity.ConfigAttributeDefinition config)
          
 
Methods inherited from class it.openutils.hibernate.security.filter.SecurityRuleBaseHandler
supports, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.acegisecurity.vote.AccessDecisionVoter
supports, supports
 

Constructor Detail

SecurityRuleAccessDecisionVoter

public SecurityRuleAccessDecisionVoter()
Method Detail

vote

public int vote(org.acegisecurity.Authentication authentication,
                java.lang.Object object,
                org.acegisecurity.ConfigAttributeDefinition config)

Specified by:
vote in interface org.acegisecurity.vote.AccessDecisionVoter

setSecurityRuleManager

public void setSecurityRuleManager(SecurityRuleManager securityRuleManager)
Sets the securityRuleManager.

Parameters:
securityRuleManager - the securityRuleManager to set

setEnabled

public void setEnabled(boolean enabled)
Sets the enabled.

Parameters:
enabled - the enabled to set


Copyright © 2008 Openmind. All Rights Reserved.