You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Torgeir Veimo <to...@pobox.com> on 2009/01/01 13:46:36 UTC
add node type definitions
What is the easiest way to add new node type definitions to a running
sling instance? Would be handy if it could be done with a suitable
curl command.
--
Torgeir Veimo
torgeir@pobox.com
Re: add node type definitions
Posted by Felix Meschberger <fm...@gmail.com>.
Hi Torgeir,
Torgeir Veimo schrieb:
> What is the easiest way to add new node type definitions to a running
> sling instance? Would be handy if it could be done with a suitable curl
> command.
Node Type definitions is one of the problems, for which we have no good
solution at the moment, mainly because in JCR 1.0 there is no proper API
defined.
What we have is support to load node type definitions from CND files
contained in bundles. This mechanism uses the
NodeTypeLoader.registerNodeType() methods of the jcr/base bundle.
Other than that, we don't have anything yet, unfortunately. In
particular there is no POST-request style mechanism.
But I could imagine that creating a SlingPostOperation for the
SlingPostServlet, which would make use of the node type definition
functionality available in the Jackrabbit API.
As I oftentimes say: Contributions would be very welcome ;-)
WDYT ?
Regards
Felix