Hello,
is there any way to check if a user has the right to execute a
specific method on an ejb at runtime ? This is very important to
create a gui dynamically based on the rights of the current user.
For Example, you have a field in the database where the current user
can only read from, so if you render a gui you would show this value
in a non-editable textfield. To do so, you have to check if the user
may execute the setXXX-Method of this field in the corresponding
entity-bean. I know, i could execute the method and catch the
exception, but i think there must be a better way to go.
The worst thing is, that i would have to call the setXXX-Method to
find out, if he may edit the value, even if i just want to read and
present the value to the user !
I am not very familiar with the JACC-API, could it be that i can find
out the method-permission with this API ? Or do i have to use any
vendor-specific APIs ?
Maybe a stupid question for some experts out there, but i'd be very
glad to have an answer...
Thx in advance
|
|
0
|
|
|
|
Reply
|
tgt21
|
8/17/2003 8:44:04 PM |
|