incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Janne Jalkanen (JIRA)" <>
Subject [jira] Commented: (JSPWIKI-420) Subpages support
Date Sat, 15 Nov 2008 15:54:50 GMT


Janne Jalkanen commented on JSPWIKI-420:

On the other hand, since the JCR interface is based around Strings, there will be a need to
convert back and forth anyway.

They would certainly make parsing easier...  And we could still keep WikiPage.getName() (to
return a String), while the internal core would use WikiPage.getPath().

Though care must be taken to make sure that we don't mix Wiki paths and JCR paths in the developer's
mind - JCR paths are internal to the system.

public class WikiPath
    /** Constructs a WikiPath from a full string */
    public WikiPath( String path );

    /** Resolves a Wikipath relative to a current path.  For example, if currPath = "MyWiki:Foo",

    * and path = "Bar" returns "MyWiki:Bar".  If path = "/Bar" returns "MyWiki:Foo/Bar".
    public WikiPath resolve( WikiPath currPath, String path );

    /** Resolves a path with respect to the current context */
    public WikiPath resolve( WikiContext context, String path );

    /** Returns the WikiPath as a full path ("MyWiki:MainPage/SubPage") */
    public String toString();

> Subpages support
> ----------------
>                 Key: JSPWIKI-420
>                 URL:
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Authentication&Authorization, Core & storage, Default template
>            Reporter: Janne Jalkanen
>             Fix For: 3.0
> Subpages should be supported.
> (This might need to be pushed to 3.1 due to the workload, but 3.0 should at least be
designed so that it does not prevent this to be implemented.)
> Attachments are already a kind of subpages, so once JCR unifies content handling, this
should be rather trivial.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message