You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2016/07/29 12:25:20 UTC
[jira] [Resolved] (SLING-5842) Register JCR nodetypes from the
provisioning model
[ https://issues.apache.org/jira/browse/SLING-5842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz resolved SLING-5842.
----------------------------------------
Resolution: Fixed
Implemented to support statements like this, using the CND nodetypes syntax:
{code}
register nodetypes
<<===
<< <slingtest='http://sling.apache.org/ns/test/repoinit-it/v1.0'>
<< [slingtest:unstructured] > nt:unstructured
===>>
{code}
The optional {{<<}} prefix for CND lines is needed when embedding such statements in the Sling provisioning model, to avoid confusing that parser.
I'll mention this in the docs at https://sling.apache.org/documentation/bundles/repository-initialization.html
> Register JCR nodetypes from the provisioning model
> --------------------------------------------------
>
> Key: SLING-5842
> URL: https://issues.apache.org/jira/browse/SLING-5842
> Project: Sling
> Issue Type: Improvement
> Components: JCR
> Affects Versions: Repoinit Parser 1.0.2, Repoinit JCR 1.0.0
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
> Fix For: Repoinit Parser 1.0.4, Repoinit JCR 1.0.2
>
>
> Now that we can create repository paths from the provisioning model [1] we need to be able to register nodetypes before that, in case nodes need to be created with non-default nodetypes.
> This should use a mechanism similar to the {{org.apache.sling.repoinit.jcr.RepositoryInitializer}} to read the provisioning model, using an URL and scheme that can be configured to point to another data source, in case Sling is not started via a provisioning model.
> This needs to be documented at http://sling.apache.org/documentation/bundles/repository-initialization.html
> [1] http://sling.apache.org/documentation/bundles/repository-initialization.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)