it.openutils.hibernate.security.filter
Class SecurityRulePredicate

java.lang.Object
  extended by it.openutils.hibernate.security.filter.SecurityRulePredicate
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public class SecurityRulePredicate
extends java.lang.Object
implements org.apache.commons.collections.Predicate

Version:
$Id: SecurityRulePredicate.java 729 2008-03-06 09:26:46Z fcarone $
Author:
fcarone

Constructor Summary
SecurityRulePredicate(org.acegisecurity.Authentication authentication, org.acegisecurity.ConfigAttributeDefinition configAttribute, SecurityRuleManager securityRuleManager)
           
 
Method Summary
 boolean evaluate(java.lang.Object object)
           If we return false here, the element will be removed from the original collection.
 void setDenyIfNoRulesFound(boolean denyIfNoRulesFound)
          Sets the denyIfNoRulesFound.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityRulePredicate

public SecurityRulePredicate(org.acegisecurity.Authentication authentication,
                             org.acegisecurity.ConfigAttributeDefinition configAttribute,
                             SecurityRuleManager securityRuleManager)
Parameters:
authentication - The current authentication
configAttribute - The config attribute of the current method invocation interceptor
securityRuleManager - The security rule manager to retrieve rules from
Method Detail

evaluate

public boolean evaluate(java.lang.Object object)
If we return false here, the element will be removed from the original collection.

Specified by:
evaluate in interface org.apache.commons.collections.Predicate

setDenyIfNoRulesFound

public void setDenyIfNoRulesFound(boolean denyIfNoRulesFound)
Sets the denyIfNoRulesFound.

Parameters:
denyIfNoRulesFound - the denyIfNoRulesFound to set


Copyright © 2008 Openmind. All Rights Reserved.