Hi Pierce,

This will be easy enough for us to support since we have a tag library
that does pretty much the same things.  The annotations could call the
same methods as the tag library.  Can you please open a Jira request
for this?  It will get lost otherwise...

Les

On Tue, Jun 8, 2010 at 3:39 PM, Pierce Wetter <[email protected]> wrote:
>
>  Right now, Shiro supports:
>
> �...@requiresroles(String)
>
> �...@requirespermissions(String)
>
>  I would like to suggest the following more complete, and specific set:
>
>
> �...@requiresallroles(String[] )  <-- same as current RequiresRoles, except 
> the AND is specified, and the roles can be done via:
>
> �...@requiresallroles( roles={"role1", "role2"} )
>
> �...@requiresanyroles(String[] )   <--- the OR version, runs if any role is 
> implied.
>
> �...@requiresallpermissions(String[] )
> �...@requiresanypermissions(String[] )
>
>  SecurityCheck(allRoles, anyRoles, allPermissions, anyPermissions)  <--- all 
> in one with one annotation
>
>  What do you all think? This is similar to what I did in tapestry-security.
>
>  Pierce
>
>

Reply via email to