shiro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nassos A. Michas" <nassos.mic...@eurodyn.com>
Subject Shiro + AspectJ - accessing variables in annotations
Date Tue, 09 Nov 2010 13:49:35 GMT
Hello,

when using Shiro in a non-Spring webapp using the Shiro annotations and AspectJ (as per the
Shiro sample application) is it possible to somehow have access to the member (or even the
annotated method's) variables? For example, am I somehow able to write something like:
@RequiresPermission("forum:readTopic:#forumID")
void readTopic(String forumID) {
...
}
or even,
@RequiresPermission("forum:readTopic:#forum.forumID")
void readTopic(MyBean forum) {
...
}

If this is more of an AspectJ-related question please accept my apologies as I'm not a big
AspectJ user.


Thanks!

-n-


Mime
View raw message