it.openutils.hibernate.security.aop
Class AOPSecurity

java.lang.Object
  extended by it.openutils.hibernate.security.aop.AOPSecurity

public class AOPSecurity
extends java.lang.Object

Version:
$Id: AOPSecurity.java 705 2008-02-26 10:56:55Z fcarone $
Author:
fcarone

Constructor Summary
AOPSecurity()
           
 
Method Summary
 java.lang.Object applySecurityRules(org.aspectj.lang.ProceedingJoinPoint pjp, java.lang.Object filter, java.util.List<org.hibernate.criterion.Criterion> additionalCriteria)
           
 void setDenyIfNoRulesFound(boolean denyIfNoRulesFound)
          Sets the denyIfNoRulesFound.
 void setEnabled(boolean enabled)
          Sets the enabled.
 void setSecuredDAOs(java.util.List<java.lang.String> securedDAOs)
          Sets the securedDAOs.
 void setSecurityRuleManager(SecurityRuleManager securityRuleManager)
          Sets the securityRuleManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AOPSecurity

public AOPSecurity()
Method Detail

applySecurityRules

public java.lang.Object applySecurityRules(org.aspectj.lang.ProceedingJoinPoint pjp,
                                           java.lang.Object filter,
                                           java.util.List<org.hibernate.criterion.Criterion> additionalCriteria)
                                    throws java.lang.Throwable
Parameters:
pjp - The proceeding joinpoint
filter - The entity we are going to filter
additionalCriteria - The additional criteria list, cannot be null
Returns:
The execution invocation result
Throws:
java.lang.Throwable - Any exception occurring in the invoked method

setSecurityRuleManager

public void setSecurityRuleManager(SecurityRuleManager securityRuleManager)
Sets the securityRuleManager.

Parameters:
securityRuleManager - the securityRuleManager to set

setSecuredDAOs

public void setSecuredDAOs(java.util.List<java.lang.String> securedDAOs)
Sets the securedDAOs.

Parameters:
securedDAOs - the securedDAOs to set

setEnabled

public void setEnabled(boolean enabled)
Sets the enabled.

Parameters:
enabled - the enabled to set

setDenyIfNoRulesFound

public void setDenyIfNoRulesFound(boolean denyIfNoRulesFound)
Sets the denyIfNoRulesFound.

Parameters:
denyIfNoRulesFound - the denyIfNoRulesFound to set


Copyright © 2008 Openmind. All Rights Reserved.