Dec 22nd, 2005, 12:16 PM
How work with generics and inheritance in Acegi ???
This is my problem
I have a abstract GenericDao and all my DAO's extended from him...
So how do i configure Acegi to do the MethodSecurityIntercptor works with my concrete DAO's???
<bean id="securityInterceptor" class="org.acegisecurity.intercept.method.aopallia nce.MethodSecurityInterceptor">
<value> services.ClientDAO.makePersistent=ROLE_CLIENT_CREA TE <- DONT WORK
service.GenericDAO.makeTransient=ROLE_CLIENTE_DELE TE <- WORK'S FINE</value>
the problem that i can't do roles works with generic's.... if i have a ProductDAO and a role ROLE_PRODUCT, he will work in ClientDAO because both only works with the GenericDAO....
AHhh, i have a problem too...
If i have a GenericDAO interface, e a GenericDAOAbstract abstract class that implement the method's of him and finaly a concrete class that extends GenericDAOAbstract, like ClientDAO and ProductDAO i can't do this ;
because teh Spring tells that the ClientDAO dont have the makePersistent method (inherited from the GenericDAOAbstract that implements GenericDAO)... If a just override and call super() then the Spring don't acuse any error...
OBS: Sorry if my english is bad, ok?
Dec 27th, 2005, 05:32 AM
Dec 27th, 2005, 12:18 PM
something like that!!!
I implement the GenericDAO interface using the Hibernate3DaoSupport ..
Dec 29th, 2005, 06:26 PM
I've sent you a private message that's about your implementation not on the issue at hand.
Originally Posted by angelogalvao
Jan 25th, 2006, 06:38 PM