jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: Dynamic creation of workspaces
Date Mon, 12 Jun 2006 15:40:09 GMT
On 6/12/06, David Kennedy <davek@us.ibm.com> wrote:
> Odd that I have to login to a workspace to be able to create workspaces,
> but I'll take it.....thanks.

workspace creation is subject to authentication/authorization, that's
why createWorkspace() is not exposed on Repository. createWorkspace()
is 'workspace'-related, that's why it is exposed on Workspace...

cheers
stefan

>
> David
>
> "Stefan Guggisberg" <stefan.guggisberg@gmail.com> wrote on 06/12/2006
> 11:16:11 AM:
>
> > hi david,
> >
> > have a look at http://jackrabbit.apache.
> > org/api-1/org/apache/jackrabbit/api/JackrabbitWorkspace.html
> >
> > all you have to do is casting your Workspace instance to
> JackrabbitWorkspace.
> >
> > cheers
> > stefan
> >
> > On 6/12/06, David Kennedy <davek@us.ibm.com> wrote:
> > > I'd like to create a workspace dynamically.  It appears the only way I
> can
> > > currently do this is to subclass RepositoryImpl and write my own
> > > TransientRepository, BindableRepository, etc. classes to use the
> subclass.
> > >   The reason I would need to subclass RepositoryImpl would be to get
> to
> > > the createWorkspace methods which are currently protected.  I need to
> get
> > > to the createWorkspace methods to add the workspace definition to the
> > > wspInfos table.
> > >
> > > Does anybody else desire this capability?  Is it possible to make the
> > > createWorkspace methods public rather than protected to enable access
> and
> > > thus dynamic creation?
> > >
> > > David
> > >
> > >
>
>

Mime
View raw message