> Still don't agree with the enumeration though.
Agreed, using an enumeration has several drawbacks, some you already
mentioned. Another drawback is that it makes it hard to say check for
read&write in one call. So does using methods, if you make a checkRead and a
checkWrite method available it means making to calls, this is not very
efficient.

> We can't guarantee read-only models
Agreed, but we can (and should, but that's imho) allow any model on the page
to block access to the page completely. Allow the judgment call for being
able to write to the model (using the component) be made by the model
itself.

Maurice

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eelco
Hillenius
Sent: woensdag 26 oktober 2005 19:19
To: [email protected]
Subject: Re: [Wicket-develop] integrating authorization

A couple of more 'new insights' ;)

* having a read-only option is good. Still don't agree with the
enumeration though. Jonathan came up with another reason why you don't
want to have an enumeration. If there's any more things we come up
with in the future (which would, in the case of an enumeration mean
adding a new enumeration value), you would have a silent addition
instead of an API break. We think that is bad, as you want to force
clients how to support such new functionality. Having seperate
(boolean returning) methods does that. Again, any implementation is
free to map these seperate methods into one enumeration based method.

We can't guarantee read-only models. Sure, we can proxy any IModel
object, but that would only work for very simple models. All models
that work like property models for instance can't be guaranteed unless
we would make full copies of the model objects and wrap those, which
would be way too expensive. Furthermore, as there are many ways to
secure you domain objects (like not providing public setters, or e.g.
using the new Hibernate functionality in case you use that framework),
I think we shouldn't even try to do this in Wicket. It will otherwise
confuse people/ make Wicket harder to understand, and we can't even
guarantee anything but the simplest use cases.

Eelco


-------------------------------------------------------
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