it.openutils.hibernate.security.filter
Class SecurityRuleAccessDecisionVoter
java.lang.Object
it.openutils.hibernate.security.filter.SecurityRuleBaseHandler
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 729 2008-03-06 09:26:46Z 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
| Fields inherited from interface org.acegisecurity.vote.AccessDecisionVoter |
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED |
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.acegisecurity.vote.AccessDecisionVoter |
supports, supports |
SecurityRuleAccessDecisionVoter
public SecurityRuleAccessDecisionVoter()
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.