>Here is a prime example of the benefit:
>
>one could add a
>
>doCheckPermissions() call before doBuild()
>
>This is one thing that bugs me in the current system...one has to add code
>like this to the top of every Screen...
>
> SecurityCheck secCheck = new SecurityCheck(data,
> "Sorry, you do not have permission to access this screen.",
> data.getScreen() );
> if ( !secCheck.hasPermission("add_user"))
> {
> return null;
> }
>
>If this was in a method instead, then that Screen could extend a Screen that
>has that code in the doCheckPermission() method and you wouldn't have to
>worry about duplicating the above across all Screen's or calling super().
>Security would be enabled by simply extending SecureScreen. :-)
Exactly what I had in mind too...
>Chris, how about sending me a URL for a complete patch?
It'll take me at least until tomorrow... Do you want to merge the
current patch for now or do it all at once?
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]