I was wrong.  I have one <aop:config> that is as Matt describes [the only child 
tag is <aop:advisor>].  And a second one that that has <aop:pointcut> tag 
rather than the pointcut being defined in the <aop:advisor>.  I don't see any 
real advantage to this except that it may be [very] slightly easier to read.

Anyway, I think Matt is right, you just need another <aop:advisor> in there.

Nathan


----- Original Message -----
From: "Nathan Anderson" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, May 7, 2007 7:22:39 AM (GMT-0800) America/Los_Angeles
Subject: Re: [appfuse-user] security.xml

I can check this when I get to work, but I think there are two tags that go 
inside the <aop:config>.  IIRC they are <aop:advisor> and <aop:advise>

Nathan


----- Original Message -----
From: "Matt Raible" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, May 7, 2007 7:09:08 AM (GMT-0800) America/Los_Angeles
Subject: Re: [appfuse-user] security.xml

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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to