On Thu, Jun 28, 2001 at 11:25:04AM +0100, Dan - Blue Lotus Software wrote:
> Why not simply make a session bean with two methods...getRecord() and
> getRecord(User user)...or something like that.
> 
> The first method signature would only retrieve data for the currently logged
> in user.  The second one would allow data to be retrieved for a different
> user.
> 
> You then could restrict access to the second method, so that only people in
> the "admin" role had access to it.
> 
> You could leave the first method wide open, security-wise.
> 
> In the end, you don't have to implement any special security, and the
> role-based security of J2EE would take care of everything.

This does sound useful for providing admin capabilities. It still
leaves me with implementing the security in the wide open method
though. I need to make sure my searches actually _do_ restrict results
to the current user. What I want is another, redundant mechanism that
also ensures this. In case I do a mistake in implementing the
searches, I want it to be caught by an underlying security mechanism.

Cheers
        Bent D
-- 
Bent Dalager - [EMAIL PROTECTED] - http://www.pvv.org/~bcd
                                    powered by emacs

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to