Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-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 4EE46E3F8 for ; Mon, 28 Jan 2013 05:52:35 +0000 (UTC) Received: (qmail 28875 invoked by uid 500); 28 Jan 2013 05:52:34 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 28774 invoked by uid 500); 28 Jan 2013 05:52:34 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 28746 invoked by uid 99); 28 Jan 2013 05:52:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 05:52:33 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of weiran.xia1@gmail.com designates 209.85.210.174 as permitted sender) Received: from [209.85.210.174] (HELO mail-ia0-f174.google.com) (209.85.210.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 05:52:28 +0000 Received: by mail-ia0-f174.google.com with SMTP id o25so3628163iad.5 for ; Sun, 27 Jan 2013 21:52:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=+JuYH9m3Zu8uTLXjqcFWfJdlK/hq6Ocro9uFm58BOOw=; b=QsgaeDXqrTBqlNk10vs5gJX0WSa4Y8jzCS+SvFO6eaBPFV74b5Rax3w5mmT2WkvcCy 6kkTi0FuCh/nIYtPGc2ioNTbMLAGTL+sGoZ2B6DsV6T9usDD0l1nU/oAr3LiuaCT+E42 sPfvw1yvOtZTvTsxRTy0ssuixX/eVqwPk8z4oIWVy8RZTWBDjDstyzhRkZWjz1NKm6AI 3D4FAS5SfePg3hWlOlgALDGiVSAb+06vWikHYK+RU0mYS8kXqAowAbJQ3gOzAU2Q27H6 lqGrZBMFk7xuYYH0Qwm95QEyaXV7TOW5qlvZocC/vlO0JAvwYSNaZ+7x/f74ygM/ytGZ rh7g== MIME-Version: 1.0 X-Received: by 10.42.247.8 with SMTP id ma8mr8137838icb.1.1359352327921; Sun, 27 Jan 2013 21:52:07 -0800 (PST) Received: by 10.42.175.131 with HTTP; Sun, 27 Jan 2013 21:52:07 -0800 (PST) In-Reply-To: References: Date: Mon, 28 Jan 2013 13:52:07 +0800 Message-ID: Subject: Re: [DISCUSS] Question about @Parameter (entityType) From: Mice Xia To: cloudstack-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org i have the same question and i found this: http://mail-archives.apache.org/mod_mbox//incubator-cloudstack-dev/201301.mbox/%3CCANLSSBXHw5FHwRN3BS+YOj6YCpbbdU1kHjzq4nCAA59fQfaAUg@mail.gmail.com%3E seems this annotation is used for converting entity UUID->ID -Mice 2013/1/28 Kelven Yang : > I have a question about a change in @Parameter at API layer, in regards to > entityType, does anyone know the reason behind why it has to go through > with some Response class which in turn declares links to the entity class > via @EntityReference annotation? > > And in DeployVMCmd as an example, there is also another special field > (ipToNetworkList) declares entity reference directly, could someone > clarify it? > > @ACL(checkKeyAccess=true) > @Parameter(name = ApiConstants.IP_NETWORK_LIST, type = > CommandType.MAP, entityType={Network.class, IpAddress.class}, > description = "ip to network mapping. Can't be specified with > networkIds parameter." + > " Example: > iptonetworklist[0].ip=10.10.10.11&iptonetworklist[0].networkid=uuid - > requests to use ip 10.10.10.11 in network id=uuid") > private Map ipToNetworkList; > > Kelven > >