jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Kaleta <lukaszkal...@gmail.com>
Subject Register custom node types globally
Date Sat, 29 Dec 2012 13:31:10 GMT
Hi,

I would like to register mine custom node types globally:

I am doing following:

            repository = new TransientRepository(config, home);
            Session session = repository.login((new
SimpleCredentials("username", "password".toCharArray())))
            ....
            JackrabbitNodeTypeManager manager = (JackrabbitNodeTypeManager)
session.getWorkspace().getNodeTypeManager();
            nodeTypes = manager.registerNodeTypes(cndInputStream,
JackrabbitNodeTypeManager.TEXT_X_JCR_CND);
            ....
            session.logout()


If next I login again mine custom node types are gone.
Is there a way for doing it globally ?

-- 
// Łukasz Kaleta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message