boolean dispatchComponentEvent(ComponentEvent event);
So, in your advice:
ComponentEvent event = (ComponentEvent) invocation.getParameter(0);
if (event.matches("activate", "", 0) {
// Do some extra checking here.
}
invocation.proceed();
On Fri, May 9, 2008 at 10:32 AM, Robin Helgelin <[EMAIL PROTECTED]> wrote:
> On Fri, May 9, 2008 at 5:54 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
>> Since it's a specific method, we know what the parameters are; we can
>> then cast the first parameter to ComponentEvent, and (inside the
>> advice) check to see if it is an "activate" event, and apply security
>> checks there. So we do coarse grained security access, that entire
>> pages are restricted by user role.
>
> Yes, that's what I thought :). Any ideas on what signature to use for the
> code?
>
> CONTAINING_PAGE_DID_ATTACH_SIGNATURE fires too often as it's invoked
> when just linking to a page, and BEGIN_RENDER_SIGNATURE fires too
> late, as the action method can be invoked before the page starts to
> render.
>
> --
> regards,
> Robin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]