Hi,
I saw that JackrabbitNodeTypeManager is deprecated in 1.6.0.
Have I use NodeTypeManagerImpl to register my own node-types?
What String must I use for the content-type:
NodeTypeManagerImpl manager = (NodeTypeManagerImpl)
session.getWorkspace().getNodeTypeManager();
if (!manager.hasNodeType("hmg:folder") && !manager.hasNodeType("hmg:file"))
{
manager.registerNodeTypes(is, "1");
// with 1.5 the number "1" was ...
JackrabbitNodeTypeManager.TEXT_X_JCR_CND
}
Thx
Gamba
--
View this message in context:
http://www.nabble.com/Register-new-Node-Types-in-Jackrabbit-1.6.0-tp25346292p25346292.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.