Return-Path: Delivered-To: apmail-portals-jetspeed-user-archive@www.apache.org Received: (qmail 47911 invoked from network); 25 Jan 2006 03:54:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jan 2006 03:54:31 -0000 Received: (qmail 23623 invoked by uid 500); 25 Jan 2006 03:54:29 -0000 Delivered-To: apmail-portals-jetspeed-user-archive@portals.apache.org Received: (qmail 22926 invoked by uid 500); 25 Jan 2006 03:54:27 -0000 Mailing-List: contact jetspeed-user-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Users List" Delivered-To: mailing list jetspeed-user@portals.apache.org Received: (qmail 22915 invoked by uid 99); 25 Jan 2006 03:54:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 19:54:27 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 217.113.224.27 is neither permitted nor denied by domain of jacek.wislicki@gmail.com) Received: from [217.113.224.27] (HELO mailout.toya.net.pl) (217.113.224.27) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 19:54:25 -0800 Received: from localhost (unknown [192.168.120.26]) by lazir.toya.net.pl (TOYAnet MailServer) with ESMTP id BDAB78BC34 for ; Wed, 25 Jan 2006 04:54:02 +0100 (CET) Received: from lazir.toya.net.pl ([192.168.120.25]) by localhost (agregat [192.168.120.26]) (amavisd-new, port 10024) with ESMTP id 12652-08 for ; Wed, 25 Jan 2006 04:53:50 +0100 (CET) Received: from [10.1.202.6] (unknown [10.1.202.6]) by lazir.toya.net.pl (TOYAnet MailServer) with ESMTP id 6271B8BC35 for ; Wed, 25 Jan 2006 04:53:51 +0100 (CET) Message-ID: <43D6F672.2090107@gmail.com> Date: Wed, 25 Jan 2006 04:54:26 +0100 From: =?ISO-8859-2?Q?Jacek_Wi=B6licki?= User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Jetspeed Users List Subject: Re: Retrieving a portlet's unique instance ID.. References: <48309.127.0.0.1.1137893193.squirrel@jeanne.rwhmax.org> <43D2ECC2.4060403@gmail.com> <57358.127.0.0.1.1137903553.squirrel@jeanne.rwhmax.org> <43D32B2E.20309@gmail.com> <43D498E3.3020705@bluesunrise.com> <43D4CCDE.5010502@gmail.com> <43D6E5CC.5010506@bluesunrise.com> In-Reply-To: <43D6E5CC.5010506@bluesunrise.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-TOYA-AV: AntyVir-Skaner at toya.net.pl X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Wiadomosc od David Sean Taylor z 2006-01-25 03:43 brzmiala: >>> A portlet isn't really supposed to know about its 'unique id' as that >>> is an implementation detail of the portal. >> However, when I managed to get the current fragment ID, I was able to >> create a universal portlet class whose behaviour, displayed contents >> and some security features are determined by some data stored in the >> database (fragment preferences were not enough for storing large >> amounts of data). > What if you stored a unique key in the preference, say "content-id" > This unique is portlet instance specific. > From there, you can map to your large amounts of data But adding a preference is a manual process AFAIK and would require switching between different J2 admin applications when adding new fragments, not to mention possible human mistakes in typing the preference name, value and holding its uniqueness. Unless some modifications are done to portal mechanisms and the process becomes human-independent. Furthermore, here the preference value would be just another unique ID (could have just the same value as the fragment ID). Is there a reason why you don't like such a solution other than portal and portlet logic assumptions? >>> If you want to write portlets specific to Jetspeed-2, have a look at >>> the j2-admin app which accesses portal services in the >>> jetspeed-portlet.xml >> By the way, is the bug concerning service access fixed? > You mean this one: > https://issues.apache.org/jira/browse/JS2-464 > I'll try to get a look at it tonight Thanks :) -- pozdrawiam, Jacek Wislicki jacek.wislicki@gmail.com tel.: +48 502 408 444 gg: 2540358 skype: jacek_wislicki --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org For additional commands, e-mail: jetspeed-user-help@portals.apache.org