nt: Wednesday, 31 March, 2010 22:59:19 GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: Re: How to get the Component inside advice?
Chances are your instanceof is failing because you put the SecurePage
interface into the pages or components package; move it up a level, to
a non-controlled
is trying to do except the "instaceof" check is always
> returning false.
>
> I guess what is causing some concern to me is -- why would "component
> instanceof SecurePage" return false?
> --
> View this message in context:
> http://old.nabble.com/How-to-g
On Wed, 31 Mar 2010 16:31:17 -0300, satb wrote:
Advice is for services, not pages and components.
Thanks for the response.
Yes. That is true. I want to do one other thing on the methods of the
service if the request is originating from a "SecurePage" -- which is to
check the credentials. Isn
it? Thats what the
above advice is trying to do except the "instaceof" check is always
returning false.
I guess what is causing some concern to me is -- why would "component
instanceof SecurePage" return false?
--
View this message in context:
http://old.nabble.com/
On Wed, 31 Mar 2010 15:37:36 -0300, satb wrote:
I am trying to get the component inside an advice and if the page
invoked isextends "SecurePage", then I have to check the security
credentials on that request.
A way better way of doing it is to implement a ComponentEventRequestFilter
and
authService.checkSecurity(invocation.getParameter(0)); // I NEED TO CALL
THIS TO CHECK THE CREDENTIALS IF THE PAGE IS A "SecurePage"
}
invocation.proceed();
} // end advice method of inner class
}; // end inner class
receiver.adv