[
https://issues.apache.org/jira/browse/JSPWIKI-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647867#action_12647867
]
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.
{code}
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();
}
{code}
> Subpages support
> ----------------
>
> Key: JSPWIKI-420
> URL: https://issues.apache.org/jira/browse/JSPWIKI-420
> 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.