Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 39502 invoked from network); 18 May 2007 07:56:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 May 2007 07:56:45 -0000 Received: (qmail 15749 invoked by uid 500); 18 May 2007 07:56:50 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 15407 invoked by uid 500); 18 May 2007 07:56:50 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 15398 invoked by uid 99); 18 May 2007 07:56:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2007 00:56:49 -0700 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=INFO_TLD,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of stefan.guggisberg@gmail.com designates 209.85.134.188 as permitted sender) Received: from [209.85.134.188] (HELO mu-out-0910.google.com) (209.85.134.188) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2007 00:56:43 -0700 Received: by mu-out-0910.google.com with SMTP id w1so537677mue for ; Fri, 18 May 2007 00:56:21 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=O2rEX2s/tDvoXoqhAwFzDlbkbQ8V0CdNwbnd743VV7SPYkPO24H/PmDcKQ7RndU5fDNbP9Z6IS9hqvZcq3wdXVLCZHJ07Tolkue3KsAzxhMsiazynIqL8GaGVOk3rFsMjr+ty76BEstmzJRWILkBGGymixlPpZBwqsb8H3/1mZA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TOKhOGNlbDYyNPCIEKSu3rGxqa7gybK5XmzDOnB8aQbDhhOPqVg4hudS0Da2x7Q6ssaFYhsZxDavlD8s7So/L/YRSpz2v3ipcC9Y9hcoBuUeDrTFG6SDwCjNQu2hkHRnZ7Z5fpaphr1RTpYj4qspZIZzK3FDumkdW4G0omDwu34= Received: by 10.82.169.4 with SMTP id r4mr2237597bue.1179474981273; Fri, 18 May 2007 00:56:21 -0700 (PDT) Received: by 10.82.158.11 with HTTP; Fri, 18 May 2007 00:56:21 -0700 (PDT) Message-ID: <90a8d1c00705180056h6e57124dwd7ef138f754b7c43@mail.gmail.com> Date: Fri, 18 May 2007 09:56:21 +0200 From: "Stefan Guggisberg" To: users@jackrabbit.apache.org Subject: Re: namespace registering In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9372273.post@talk.nabble.com> <698421c00703080533k60f7cda6k9db4df895b868885@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On 5/18/07, Stefano Minella wrote: > If I use the following code, are there some differences in the results? > > NamespaceRegistry namespaceRegistry = ws.getNamespaceRegistry(); > String[] prefixes = namespaceRegistry.getPrefixes(); Session#getNamespacePrefixes() includes session-local mappings while NamespaceRegistry#getPrefixes() returns only the globally mapped prefixes. for more details see: http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/Session.html#getNamespacePrefixes() http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/NamespaceRegistry.html#getPrefixes() cheers stefan > > Thank you > bye > stefano > > > > > On 3/8/07, Wolf Benz wrote: > > You could, with code like this one: > > > > Session s = getSession(); > > try { > > > > logger.info("These Namespaces are declared for the repository: "); > > for(String prefix : s.getNamespacePrefixes()){ > > logger.info("The prefix: " + prefix + " is mapped to Namespace: " > > + s.getNamespaceURI(prefix)); > > } > > ... > > > > Wolf > > > > On 3/8/07, Michal Hybler wrote: > > > > > > I have a question. Is there any way to discover if the namespace id > > > registered? Or If I register regitered namespace it hasnt effect? Thanks > > > Michal > > > -- > > > View this message in context: http://www.nabble.com/namespace-registering-tf3368491.html#a9372273 > > > Sent from the Jackrabbit - Users mailing list archive at Nabble.com. > > > > > > > > >