Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-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 5586410875 for ; Thu, 19 Dec 2013 22:30:35 +0000 (UTC) Received: (qmail 98186 invoked by uid 500); 19 Dec 2013 22:30:34 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 98125 invoked by uid 500); 19 Dec 2013 22:30:34 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 98117 invoked by uid 99); 19 Dec 2013 22:30:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 22:30:34 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of darren.s.shepherd@gmail.com designates 209.85.160.50 as permitted sender) Received: from [209.85.160.50] (HELO mail-pb0-f50.google.com) (209.85.160.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 22:30:29 +0000 Received: by mail-pb0-f50.google.com with SMTP id rr13so1765911pbb.9 for ; Thu, 19 Dec 2013 14:30:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=yRySLxWmOgI8UV908/Z2Zzu9YfBvx+jyWmgvVgCtjcI=; b=0UDRO4ulBWF9YDbT5PYTSdlBtZxzRW83TKIaqhn6nUVs5J23VDuuoRHoi2QnvYMVsj YnHsX6aBEVaz/GU7o3po05Qg2xLJ5ybJFxRHM5FYDkG2Xyg3xxz8230cSufLacv1MkKS Wlj+jcOpqIwt3Lc5k9dQjy+zsTXLBtwcTyMPvhwg/n4xblY/sIGjACy4ThFpF4ub2YaT xCt/+Y5R4akDIrWjAw502AHyIinblPfOs4u1UvNWIF2Y2ZKEkEyXs75phAv/Ozjs6ZCg hzaCc3RqALcCc/4XjJJKxL3/pQra+GMcAVPu3nifW3QLI6ZeSyzxRibKBsd6UkY+YvL9 C4DA== X-Received: by 10.67.5.233 with SMTP id cp9mr4332231pad.147.1387492209553; Thu, 19 Dec 2013 14:30:09 -0800 (PST) Received: from [192.168.15.2] (ip70-171-196-127.tc.ph.cox.net. [70.171.196.127]) by mx.google.com with ESMTPSA id nl7sm9717642pbc.6.2013.12.19.14.30.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Dec 2013 14:30:08 -0800 (PST) References: <75942ED3FD12D64EABE71209BD0F62CC16ECB5@SJCPEX01CL02.citrite.net> Mime-Version: 1.0 (1.0) In-Reply-To: <75942ED3FD12D64EABE71209BD0F62CC16ECB5@SJCPEX01CL02.citrite.net> Content-Type: multipart/alternative; boundary=Apple-Mail-76ADA59E-ED18-45A2-9A33-2F483B594B35 Content-Transfer-Encoding: 7bit Message-Id: Cc: "dev@cloudstack.apache.org" X-Mailer: iPhone Mail (11B554a) From: Darren Shepherd Subject: Re: Loading order of Adapter components Date: Thu, 19 Dec 2013 15:30:06 -0700 To: Prachi Damle X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-76ADA59E-ED18-45A2-9A33-2F483B594B35 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The names are cases sensitive. Is there a reason you put the name as lowerc= ase in the global configuration? Darren > On Dec 19, 2013, at 3:12 PM, "Prachi Damle" wrot= e: >=20 > Hi Darren, > =20 > I am trying to add a new implementation of SecurityChecker interface which= is an Adapter. I am adding a plugin =E2=80=93 RoleBasedChecker, and I wa= nt to add it to the list of SecurityCheckers at first position. > However the new checker gets added to the list at the last position. The o= rder specified as below is not getting followed when the components are loa= ded. > =20 > Do you think I am missing anything to be changed? > =20 > Changes I did: > =20 > 1) I added my component in the global config: > =20 > 'Advanced', 'DEFAULT', 'ExtensionRegistry', 'security.checkers.order', 'ro= leBasedEntityAccessChecker,AffinityGroupAccessChecker,DomainChecker', 'The o= rder of precedence for the extensions', 'roleBasedEntityAccessChecker,Affini= tyGroupAccessChecker,DomainChecker', '2013-12-18 01:45:31', 'Global', '0' > =20 > =20 > 2) I added it to the spring-core-registry-core-context.xml under clou= d-core > class=3D"org.apache.cloudstack.spring.lifecycle.registry.Extension= Registry"> > > > value=3D"RoleBasedEntityAccessChecker,AffinityGroupAccessCheck= er,DomainChecker" /> > > =20 > =20 > 3) The bean itself is defined in the spring-acl-role-based-access-che= ckers-context.xml under the plugin > > =20 > =20 > Thanks, > Prachi --Apple-Mail-76ADA59E-ED18-45A2-9A33-2F483B594B35--