shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SHIRO-417) allow basic templating in permission annotation matching parameters
Date Tue, 19 Feb 2013 16:59:13 GMT

     [ https://issues.apache.org/jira/browse/SHIRO-417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Romain Manni-Bucau updated SHIRO-417:
-------------------------------------

    Attachment: SHIRO-417-2.patch

patch #2. Allows one level attribute eval (more will probably be a design error).

sample: @RequiresPermissions("{p.name}:foo") public void foo(@PermissionParam("p") MyParam
p);
                
> allow basic templating in permission annotation matching parameters
> -------------------------------------------------------------------
>
>                 Key: SHIRO-417
>                 URL: https://issues.apache.org/jira/browse/SHIRO-417
>             Project: Shiro
>          Issue Type: New Feature
>            Reporter: Romain Manni-Bucau
>         Attachments: SHIRO-417-2.patch, SHIRO-417.patch
>
>
> Here the idea:
> {code}
>    @RequiresPermissions("{name}:foo")
>     public void retrieve(final @PermissionParam("name") String name) {
>         ...
>     }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message