Return-Path: Delivered-To: apmail-incubator-jspwiki-dev-archive@minotaur.apache.org Received: (qmail 68312 invoked from network); 13 Apr 2009 13:33:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Apr 2009 13:33:15 -0000 Received: (qmail 81853 invoked by uid 500); 13 Apr 2009 13:33:15 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 81839 invoked by uid 500); 13 Apr 2009 13:33:15 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 81829 invoked by uid 99); 13 Apr 2009 13:33:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 13:33:14 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of andrew.r.jaquith@gmail.com designates 209.85.217.170 as permitted sender) Received: from [209.85.217.170] (HELO mail-gx0-f170.google.com) (209.85.217.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 13:33:08 +0000 Received: by gxk18 with SMTP id 18so4333407gxk.12 for ; Mon, 13 Apr 2009 06:32:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=zOAtgmiqt0WGYCL4eRnpyuU/xMH6JVwwnBbpxh2VjOc=; b=bw/yXDJdhvDjfEWdnB8TjgyfKtEE8/6UTlouu3KcyigmXuUaAFxFMnqkV53IYSeTjE KJEYJbodGxanI/3btsYuJ/a3+rF+wE4HI4nkj4eMosbJkf1Gz++jEzpPrFo+pN1lcK5t ZpPo+ABsPofqEfxD7dCVrc1Uo+8/cadN8sf6o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=rNlop1rcdTISACf17UR4TbMGC7cX90Hqjrj68lRL05OaDuEe1uj3BNcMvmUunmdWa+ 6aXcumpuC+ebwtQoKfaX0gzLva9exAhLFThrNIR6tWasO7XhZH5u+bWeiQJwiDmQdqha XiqCpN0ywZDzcz9pr0V3aIA2c4oeS/jJdElOY= MIME-Version: 1.0 Received: by 10.231.36.198 with SMTP id u6mr960837ibd.4.1239629567259; Mon, 13 Apr 2009 06:32:47 -0700 (PDT) Date: Mon, 13 Apr 2009 09:32:47 -0400 Message-ID: Subject: WikiPath From: Andrew Jaquith To: jspwiki-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I agree with your logic. I also like "WikiPath" much better than "WikiName" or "qualified name," for three reasons: - It accurately indicates what it is (a "path-like structure" as Ant people might put it) - It's short and concise - It's distinct enough from "name" that there won't be any ambiguity So, strong +1 for WikiPath. For the WikiPage interface itself, I'd prefer using the method signature WikiPath getPath(). Don't think getWikiPath() would add anything useful for context. Besides, the EL would work better on page markup: e.g., ${actionBean.page.path} and in permission annotations: e.g., ${page.path}. Andrew On Sat, Apr 11, 2009 at 11:21 AM, Janne Jalkanen wrote: > > They can be changed, but one must be very careful not to change the sourc= e > text (only the assert statements). Otherwise we might be accidentally > changing our WikiMarkup and make upgrades difficult. > > I chose getQualifiedName() instead of getWikiName() because the word > WikiName already refers to the name of the page. In fact, I was thinking = of > changing WikiName class name to something different. > > Currently getName() is defined to return the "wiki name" of the page; and > getQualifiedName() to return the "WikiName of the page". So I would rathe= r > rename WikiName class to something more descriptive. =A0WikiPath? > > /Janne > > On 11 Apr 2009, at 14:44, Andrew Jaquith wrote: > >> I'd like Janne's take on this, but changing the tests to include the >> prepended space name sounds like a good idea to me. >> >> On a related note: I am considering changing the method name >> WikiPage.getQualifiedName() to .getWikiName(). Makes more sense. Any >> objections? >> >> Andrew >> >> On Apr 10, 2009, at 13:27, Harry Metske wrote: >> >>> I started to dig into the JUnit tests that are failing, starting with >>> WikiEngineTest. >>> I noticed that many tests fail because the pageName returned is prepend= ed >>> with "Main:". >>> For example: >>> >>> *assertEquals( "plural mistake", "Foobars", m_engine.getFinalPageName( >>> WikiName.valueOf("Foobars") ) );* >>> >>> The test can be changed to make it succeed by changing it to : >>> >>> *assertEquals( "plural mistake", "Main:Foobars", >>> m_engine.getFinalPageName( >>> WikiName.valueOf( "Foobars" ) ).toString() );* >>> >>> Is that the correct fix ? >>> >>> Harry > >