You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by andreys82 <mi...@gmail.com> on 2012/04/19 07:40:12 UTC

@RequiresPermissions for a class

Does @RequiresPermissions work on class level?

In my Spring web application it only works for single methods but not works
for the whole class.

Its target is:
@Target({ElementType.TYPE, ElementType.METHOD})
So it seems to work for all the class methods. It would be very convinient.

--
View this message in context: http://shiro-user.582556.n2.nabble.com/RequiresPermissions-for-a-class-tp7479437p7479437.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: @RequiresPermissions for a class

Posted by Ryan Connolly <ry...@gmail.com>.
I believe there exists an issue for this already:

https://issues.apache.org/jira/browse/SHIRO-343
On Apr 19, 2012 2:19 PM, "Les Hazlewood" <lh...@apache.org> wrote:

> I don't believe it works at the class level for Spring apps at the moment
> - please open a Jira issue to capture this, and we can adress it for the
> next release.  Patches welcome!!!
>
> Cheers,
>
> --
> Les Hazlewood
> CTO, Stormpath | http://stormpath.com <http://www.stormpath.com/> |
> 888.391.5282
> twitter: @lhazlewood | http://twitter.com/lhazlewood
> blog: http://leshazlewood.com
> stormpath blog: http://www.stormpath.com/blog<http://www.stormpath.com/blog/index>
>
> On Wed, Apr 18, 2012 at 10:40 PM, andreys82 <mi...@gmail.com> wrote:
>
>> Does @RequiresPermissions work on class level?
>>
>> In my Spring web application it only works for single methods but not
>> works
>> for the whole class.
>>
>> Its target is:
>> @Target({ElementType.TYPE, ElementType.METHOD})
>> So it seems to work for all the class methods. It would be very
>> convinient.
>>
>> --
>> View this message in context:
>> http://shiro-user.582556.n2.nabble.com/RequiresPermissions-for-a-class-tp7479437p7479437.html
>> Sent from the Shiro User mailing list archive at Nabble.com.
>>
>
>

Re: @RequiresPermissions for a class

Posted by Les Hazlewood <lh...@apache.org>.
I don't believe it works at the class level for Spring apps at the moment -
please open a Jira issue to capture this, and we can adress it for the next
release.  Patches welcome!!!

Cheers,

--
Les Hazlewood
CTO, Stormpath | http://stormpath.com <http://www.stormpath.com/> |
888.391.5282
twitter: @lhazlewood | http://twitter.com/lhazlewood
blog: http://leshazlewood.com
stormpath blog:
http://www.stormpath.com/blog<http://www.stormpath.com/blog/index>

On Wed, Apr 18, 2012 at 10:40 PM, andreys82 <mi...@gmail.com> wrote:

> Does @RequiresPermissions work on class level?
>
> In my Spring web application it only works for single methods but not works
> for the whole class.
>
> Its target is:
> @Target({ElementType.TYPE, ElementType.METHOD})
> So it seems to work for all the class methods. It would be very convinient.
>
> --
> View this message in context:
> http://shiro-user.582556.n2.nabble.com/RequiresPermissions-for-a-class-tp7479437p7479437.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>