Return-Path: X-Original-To: apmail-shiro-dev-archive@www.apache.org Delivered-To: apmail-shiro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5CA547540 for ; Wed, 9 Nov 2011 21:40:14 +0000 (UTC) Received: (qmail 75066 invoked by uid 500); 9 Nov 2011 21:40:14 -0000 Delivered-To: apmail-shiro-dev-archive@shiro.apache.org Received: (qmail 74969 invoked by uid 500); 9 Nov 2011 21:40:14 -0000 Mailing-List: contact dev-help@shiro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@shiro.apache.org Delivered-To: mailing list dev@shiro.apache.org Received: (qmail 74773 invoked by uid 99); 9 Nov 2011 21:40:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 21:40:14 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 21:40:13 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C329C468DD for ; Wed, 9 Nov 2011 21:39:52 +0000 (UTC) Date: Wed, 9 Nov 2011 21:39:52 +0000 (UTC) From: "DIALLO Mamadou BObo (Created) (JIRA)" To: dev@shiro.apache.org Message-ID: <433514491.15648.1320874792800.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (SHIRO-331) The Spring ACL has a cool feature that allow you to evaluate any SpEL when doing Authorization check using annotation. This is a feature that allow doing the same with shiro. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 The Spring ACL has a cool feature that allow you to evaluate any SpEL when doing Authorization check using annotation. This is a feature that allow doing the same with shiro. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Key: SHIRO-331 URL: https://issues.apache.org/jira/browse/SHIRO-331 Project: Shiro Issue Type: New Feature Components: Authorization (access control) Affects Versions: 1.1.0 Reporter: DIALLO Mamadou BObo On Spring ACL you can annotate a function with something like this: @PreAuthorize("hasAnyRole('ROLE_SUPER_USER','ROLE_ SYSTEM_ADMIN') and hasPermission(#id, 'com.xyz.db.domain.impl.XyzConfigImpl', 'read')") Note the evaluation of a method, the use of logic operators, the ability t use the parameters passed to the method. This is a neccessary feature for doing any ACL like control check from an annotation because otherwise you're obliged to do the check your self from inside the method body. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira