jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: Multiple workspaces and custom node registeration
Date Sun, 03 Sep 2006 08:36:38 GMT
On 9/2/06, Shanmugam Gopal <haishanmugam@hotmail.com> wrote:
> Hi,
>
> 1)How can we create multiple workspaces during repository startup?.
> Is there any provision in repository.xml ?

see org.apache.jackrabbit.api.JackrabbitWorkspace#createWorkspace

>
> 2)Can we register custom node types during reposiotry startup?
> Let us say I have two workspaces in repository and I want to register the
> custom node types
> in both the workspaces during repository startup.

see org.apache.jackrabbit.api.JackrabbitNodeTypeManager.registerNodeTypes

note that nodetypes have global (i.e. repository) scope, i.e. they're not
workspace-specific.

cheers
stefan

>
>
> Regards,
> Shanmugam G
>
> _________________________________________________________________
> One and only Ash. Find out all about her. Only on MSN Search
> http://server1.msn.co.in/profile/aishwarya.asp
>
>

Mime
View raw message