If you want to do it for one/ a couple of components, do it right
there. In that case there certainly is no need for a generalized
strategy.

The trick - the next thing to build on top of the basic authorization
mechanism - is to find some way of adding metadata to your components
(/ instances) that can be used by a certain authorization strategy. A
big if/else is clearly not the point of this low-level implementation.

Eelco


On 10/31/05, Maurice Marrink <[EMAIL PROTECTED]> wrote:
> I just noticed a boolean allowRender in Component.
> According to the doc it is meant for security.
> I also saw IAuthorizationStrategy which can be set at the application.
> IMO it would be better to set an instance of this at the component.
> I can certainly think of scenario's where 1 application wide check is
> not what you want.
> I know you can always make if statements in the IAuthorizationStrategy,
> like
> If(component.class==Link.class)
>         \\use model for security check
> Else
>         \\use component self for security check
> But it doesn't feel as clean (especially for very big if-else
> statements)
> By setting the strategy at the component we could even remove the
> component parameters from the interface
> ________________________________
>
> Maurice Marrink
> www.topicus.nl
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.
> Get Certified Today * Register for a JBoss Training Course
> Free Certification Exam for All Training Attendees Through End of 2005
> Visit http://www.jboss.com/services/certification for more information
> _______________________________________________
> Wicket-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to