cancel
Showing results for 
Search instead for 
Did you mean: 

Can I create node types programatically?

walbar
Champ in-the-making
Champ in-the-making
Hi all,

I see the Node Type Manager has all read only methods. I wonder if it is possible to create node types programatically.

Thanks in advance for your comments,

Waldemar
4 REPLIES 4

derek
Star Contributor
Star Contributor
Which API are you referring to?

flin
Champ in-the-making
Champ in-the-making
Hmm maybe a custom model will do the job for you.

http://wiki.alfresco.com/wiki/Data_Dictionary_Guide

derek
Star Contributor
Star Contributor
Hi,

flin is correct.  The DD types are really a one-way street.  There are 3 ways to define them; statically in the config (safest), dropping a model into the Data Dictionary space and running an aspect, and in the code.  But once a type has been used, you can't remove the definition until you have cleaned up all instances and related structures.  Generally, the static method is safest.  The others have not really be tested to death, either.

Regards

walbar
Champ in-the-making
Champ in-the-making
Very clarifying. Thanks for your replies.

Waldemar