sling-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Edelson <justinedel...@gmail.com>
Subject Re: Getting and Posting content into an alternate JCR workspace
Date Wed, 21 Apr 2010 19:00:22 GMT
On 4/21/10 1:59 PM, Michael Yin wrote:
> Is this currently possible with sling? In the configuration in felix,
> it hints that the embedded server can access different workspaces.
> 
> ------
> Name of the workspace to use by default if not is given in any of the
> login methods. This name is used to implement the
> SlingRepository.getDefaultWorkspace() method. If this name is empty, a
> null value is used in JCR calls so that the default workspace provided
> by the JCR repository is used. (defaultWorkspace)
> ------
> 
> Is there a parameter you can set on a request to do this?
Not at present. You can implement the AuthenticationInfoPostProcessor
from commons.auth to set the workspace property in the
AuthenticationInfo object based on a request parameter.

Internally, you can now resolve resources using the syntax
[workspace]:[path], but there isn't currently a way to use this syntax
in a URL.

Justin

> 
> -mike


Mime
View raw message