Hi again guys.
I saw that the low level repository API should to be used when I want to
change currently imported NodeType.
This information is specified here
http://sling.apache.org/site/content-loading.html.
Thank you anyway guys.
Dimitar
On 10/11/2012 01:23 PM, Dimitar Dimitrov wrote:
Hi everyone. :)
On 10/10/2012 02:30 PM, Alexander Klimetschek wrote:
On 10.10.2012, at 06:16, Dimitar Dimitrov <[email protected]> wrote:
I am trying to import new node type definition by CND on a fly.
We develop a Adobe Flex based interface which can build CND by
hierarchical UI and I want to import this new node type into the JCR
repository.
For now when I want to import new node type definition I make a new
OSGI
Sling bundle and import the schema into it.
Is there another way to importing the newly generated CND into the
repository and start using it immediately.
I think you are overusing node types here. For something like UI
elements that will evolve a lot, I would not use a fixed schema in
the repository. Rather use a few generic types like
"widget"/"component" etc. but keep them unstructured.
Because I see that your next question will be "how to change existing
node types on the fly" ;-)
Alex you are amazingly insightful:). The NodeType definition in
runtime was the easy part. :) As Felix recommends
NodeTypeLoader.registerNodeType() did this perfectly. I just put it in
new SlingPostOperation based bundle.
Alex it seems that you have a lot of experience with this issue, so
please could you give me some helpful tips for changing the NodeType
definition on a fly :)
Thanks in advance.
Dimitar
Cheers,
Alex