Hi Lenya devs,
Lenya now supports JCR :)
Just kidding, it's not fully integrated, but the content can be
stored in JCR. To migrate your publication to JCR, follow these steps:
1) Call the "Import into JCR" usecase to migrate the content:
http://localhost:8888/index.html?lenya.usecase=jcr.import
(select your publication and click OK)
2) Correct the node type configuration in cocoon.xconf:
<component-instance class="org.apache.cocoon.jcr.source.JCRSourceFactory"
name="jcr">
<folder-node new-file="nt:file" new-folder="nt:folder" type="rep:root"/>
<folder-node new-file="nt:file" new-folder="nt:unstructured"
type="nt:unstructured"/>
<folder-node type="nt:folder" new-file="nt:file"/>
<file-node content-path="jcr:content" content-type="nt:resource"
type="nt:file"/>
<file-node content-ref="jcr:content" type="nt:linkedFile"/>
<content-node type="nt:resource"
content-prop="jcr:data"
mimetype-prop="jcr:mimeType"
lastmodified-prop="jcr:lastModified"
validity-prop="jcr:lastModified"/>
</component-instance>
I guess this configuration has to be reviewed.
I just copied it from the JCRSourceFactory javadocs.
3) Set the JCRNodeFactory as default node factory in
java/org/apache/lenya/lenya.roles
<role name="org.apache.lenya.cms.repository.NodeFactory"
shorthand="node-factory"
default-class="org.apache.lenya.cms.jcr.JCRNodeFactory"/>
5) Delete the content directory of your publication.
4) Restart Jetty.
Now your content is stored in the JCR repository.
Of course this is in alpha state, feel free to give it a try and report
problems in Bugzilla.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]