I believe you need to have two separate <aop:advisor> elements inside
the <aop:config> element.
Matt
On 5/7/07, tibi <[EMAIL PROTECTED]> wrote:
when i change it to (see below) it works but how can i combine both?
tibi
<aop:config>
<aop:advisor id="managerSecurity"
advice-ref="methodSecurityInterceptor" pointcut="execution(*
nl.topticketline.topnet.service.EventSpanManager.*(..))"/>
</aop:config>
<bean id="methodSecurityInterceptor"
class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
<property name="authenticationManager" ref="authenticationManager"/>
<property name="accessDecisionManager" ref="accessDecisionManager"/>
<property name="objectDefinitionSource">
<value>
nl.topticketline.topnet.service.EventSpanManager.remove=admin
nl.topticketline.topnet.service.EventSpanManager.getAll=admin
</value>
</property>
</bean>
tibi wrote:
>
> hi,
> i want to add my manager to the security.xml file but i can't seem to
> get it working:
> i'm not sure how to add an extra execution.
>
> <!-- Apply method-level interceptor to userManager bean -->
> <aop:config>
> <aop:advisor id="managerSecurity"
> advice-ref="methodSecurityInterceptor" pointcut="execution(*
> org.appfuse.service.UserManager.*(..)),execution(*
> nl.topticketline.topnet.service.EventSpanManager.*(..))"/>
> </aop:config>
>
> <bean id="methodSecurityInterceptor"
>
class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
>
> <property name="authenticationManager"
> ref="authenticationManager"/>
> <property name="accessDecisionManager"
> ref="accessDecisionManager"/>
> <property name="objectDefinitionSource">
> <value>
> org.appfuse.service.UserManager.getUsers=admin
> org.appfuse.service.UserManager.removeUser=admin
>
> nl.topticketline.topnet.service.EventSpanManager.remove=admin
>
> nl.topticketline.topnet.service.EventSpanManager.getAll=admin
> </value>
> </property>
> </bean>
>
>
>
>
> thanks,
>
> tibi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]