Re: How to use Node and Property DefinitionTemplates to create a NodeTypeTemplate

2010-06-15 Thread Alexander Klimetschek
On Tue, Jun 15, 2010 at 06:47, Subash Chaturanga subash...@gmail.com wrote: In the JSR 283 spec , it says when creating  NodeDefinitionTemplate and PropertyDefinitionTemplate they can be attached to the NodeTypeTemplate. How we should attach those to NodeTypeTemplate? I mean is it the user's

Re: How to use Node and Property DefinitionTemplates to create a NodeTypeTemplate

2010-06-15 Thread Subash Chaturanga
Thanks for your reply Alex , Yes ,but my prob is where should I keep the list.Lists asks from NodeTypeTemplate . NodeTypeManager can create any number of NodeTypeTemplates(with or with out a definition) . If i maintain a List in NodeTypeManager then how can i return Definition List asked from

Re: How to use Node and Property DefinitionTemplates to create a NodeTypeTemplate

2010-06-15 Thread Alexander Klimetschek
On Tue, Jun 15, 2010 at 13:27, Subash Chaturanga subash...@gmail.com wrote: Yes ,but my prob is where should I keep the list.Lists asks from NodeTypeTemplate . NodeTypeManager can create any number of NodeTypeTemplates(with or with out a definition) . If i maintain a List in  

Re: How to use Node and Property DefinitionTemplates to create a NodeTypeTemplate

2010-06-15 Thread Subash Chaturanga
Hi ,Thanks Alex Though i might not able to communicate my problem to you , I was able to get exactly what i wanted by the piece of code you gave me .It worked.Thanks a lot Regards /Subash

How to use Node and Property DefinitionTemplates to create a NodeTypeTemplate

2010-06-14 Thread Subash Chaturanga
Hi All , In JCR 2 ; javax.jcr.nodetype package When NodeTypeManager wants to register a NodeType ,it needs a NodeTypeTemplate to be passed to registerNodeType method. In NodeTypeManager.createNodeTypeTemplate(NodeTypeDefinition nodeTypeDefinition) we can set the template according to the given