Return-Path: X-Original-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D340E9DA9 for ; Tue, 20 Mar 2012 05:14:16 +0000 (UTC) Received: (qmail 67892 invoked by uid 500); 20 Mar 2012 05:14:16 -0000 Delivered-To: apmail-incubator-deltaspike-dev-archive@incubator.apache.org Received: (qmail 67797 invoked by uid 500); 20 Mar 2012 05:14:16 -0000 Mailing-List: contact deltaspike-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltaspike-dev@incubator.apache.org Delivered-To: mailing list deltaspike-dev@incubator.apache.org Received: (qmail 67786 invoked by uid 99); 20 Mar 2012 05:14:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2012 05:14:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Tue, 20 Mar 2012 05:14:15 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9520629AAD for ; Tue, 20 Mar 2012 05:13:54 +0000 (UTC) Date: Tue, 20 Mar 2012 05:13:53 +0000 (UTC) From: "Lincoln Baxter III (Commented) (JIRA)" To: deltaspike-dev@incubator.apache.org Message-ID: <389239521.35132.1332220434759.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1478037705.35129.1332220316420.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DELTASPIKE-126) Include SecurityParameterBinding support for SecurityBindingType feature MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DELTASPIKE-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233214#comment-13233214 ] Lincoln Baxter III commented on DELTASPIKE-126: ----------------------------------------------- Please assign this issue to me, thanks! (Should I be able to assign it to myself?) ~Lincoln > Include SecurityParameterBinding support for SecurityBindingType feature > ------------------------------------------------------------------------ > > Key: DELTASPIKE-126 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-126 > Project: DeltaSpike > Issue Type: Improvement > Components: Security-Module > Reporter: Lincoln Baxter III > Assignee: Gerhard Petracek > Fix For: 0.2-incubating > > > Allows access to the business method invocation arguments in the bound security interceptor method. > {code} > @SecurityBinding > public @interface ProjectAdmin > { > // empty > } > @SecurityMethodBinding > public @interface ProjectBinding > { > // empty > } > @ProjectAdmin > public void updateName(@ProjectBinding Project p, String name) > { > // save project name > } > @Secures > @ProjectAdmin > public boolean isProjectAdmin(@ProjectBinding Project p, Identity identity) > { > if(identity.hasRole("project" + p.getId() + "_admin") > { > ... > } > } > {code} > Note that the @Project annotation is not a CDI bean Qualifier / Stereotype annotation, it is a method parameter security binding annotation that tells Security to use the value of the Project passed to the method call in the security binding check itself. -- 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