it.openutils.hibernate.security.filter
Class JavaBeanFilter
java.lang.Object
it.openutils.hibernate.security.filter.JavaBeanFilter
- All Implemented Interfaces:
- org.hibernate.Filter
public class JavaBeanFilter
- extends java.lang.Object
- implements org.hibernate.Filter
- Version:
- $Id: JavaBeanFilter.java 729 2008-03-06 09:26:46Z fcarone $
- Author:
- fcarone
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaBeanFilter
public JavaBeanFilter(java.lang.String bean,
java.util.List<SecurityRule> securityRules)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.SecurityException,
java.lang.NoSuchFieldException
- Parameters:
bean - The bean to set rules forsecurityRules - The list of SecurityRules to apply.
- Throws:
java.lang.ClassNotFoundException - If the bean class has not been found
java.lang.InstantiationException - If the bean doesn't contain the no-arg constructor
java.lang.IllegalAccessException - If the bean properties cannot be accessed
java.lang.SecurityException - If the bean class cannot be accessed
java.lang.NoSuchFieldException - If the property contained in the security rule refers to a bean non-existent field
getFilterDefinition
public org.hibernate.engine.FilterDefinition getFilterDefinition()
-
- Specified by:
getFilterDefinition in interface org.hibernate.Filter
getName
public java.lang.String getName()
-
- Specified by:
getName in interface org.hibernate.Filter
setParameter
public org.hibernate.Filter setParameter(java.lang.String name,
java.lang.Object value)
-
- Specified by:
setParameter in interface org.hibernate.Filter
setParameterList
public org.hibernate.Filter setParameterList(java.lang.String name,
java.util.Collection values)
-
- Specified by:
setParameterList in interface org.hibernate.Filter
setParameterList
public org.hibernate.Filter setParameterList(java.lang.String name,
java.lang.Object[] values)
-
- Specified by:
setParameterList in interface org.hibernate.Filter
validate
public void validate()
throws org.hibernate.HibernateException
-
- Specified by:
validate in interface org.hibernate.Filter
- Throws:
org.hibernate.HibernateException
Copyright © 2008 Openmind. All Rights Reserved.