Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] can user aspectj to forbid a method execute?

You could do this with around advice, with the advice containing the logic to check the role before issuing the proceed to the underlying call or return with a "Not Authorized" message.

________________________________

From: aspectj-users-bounces@xxxxxxxxxxx on behalf of creatxr
Sent: Thu 6/29/2006 12:37 PM
To: aspectj-users
Subject: [aspectj-users] can user aspectj to forbid a method execute?


aspectj-users,
 
 
can user aspectj to forbid a method execute? 
I want to use it for authorization.
 
when user without role "ROLE_X" call method "callme", the method "callme" will not excute.
 
 
creatxr,anydocs@xxxxxxxxx <mailto:<!--AID_FROMADDRESS_BEGIN-->anydocs@xxxxxxxxx<!--AID_FROMADDRESS_END-->> 
2006-06-30 
 

<<winmail.dat>>


Back to the top