Return-Path: Delivered-To: apmail-sling-users-archive@minotaur.apache.org Received: (qmail 5799 invoked from network); 21 Apr 2010 19:00:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Apr 2010 19:00:58 -0000 Received: (qmail 25687 invoked by uid 500); 21 Apr 2010 19:00:58 -0000 Delivered-To: apmail-sling-users-archive@sling.apache.org Received: (qmail 25537 invoked by uid 500); 21 Apr 2010 19:00:58 -0000 Mailing-List: contact users-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@sling.apache.org Delivered-To: mailing list users@sling.apache.org Received: (qmail 25528 invoked by uid 99); 21 Apr 2010 19:00:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Apr 2010 19:00:58 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of justinedelson@gmail.com designates 209.85.222.203 as permitted sender) Received: from [209.85.222.203] (HELO mail-pz0-f203.google.com) (209.85.222.203) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Apr 2010 19:00:48 +0000 Received: by pzk41 with SMTP id 41so5533479pzk.10 for ; Wed, 21 Apr 2010 12:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=S4Ff3yzfAixOu30NNmlvSTgjCKEyaRxhf1SWj9IBs5g=; b=b6zPPxe3Er81dlqUnQaO7N/Bfq52jPgF1rFv9nZF5Rd4bDrpjSfD5vAhVHnmNYVgI3 6Xgu1zAebW3xA1QTV+8rgtkJIvxGq/yEu/PVfB1R1yfSw7LZO8zw2GEao2P56VNwhgz+ aZ1juJWTyndqD2z0rrtV3xhdjjMVs5qvFuU5c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=jLva9zS/7j9lkrOF5P2iS9UgC3HmniG0eldoF6acu+kF63+5f0ig1xkU6nfLGkeHd4 4OCaifUGJx3PWS/KJffY6OrXnIdyg8hStyaTQDAXCXXSD8+lXaPtDGIove05LYXf9WTV b+O6INrYJMgwal7DyV/gmWoWEtDJDnhVL5jZ8= Received: by 10.142.1.34 with SMTP id 34mr4051649wfa.206.1271876427330; Wed, 21 Apr 2010 12:00:27 -0700 (PDT) Received: from Justin-Edelsons-iMac.local (ool-44c6554e.dyn.optonline.net [68.198.85.78]) by mx.google.com with ESMTPS id u18sm315196wfh.7.2010.04.21.12.00.24 (version=SSLv3 cipher=RC4-MD5); Wed, 21 Apr 2010 12:00:25 -0700 (PDT) Message-ID: <4BCF4B46.2030204@gmail.com> Date: Wed, 21 Apr 2010 15:00:22 -0400 From: Justin Edelson Reply-To: justin@justinedelson.com User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: users@sling.apache.org Subject: Re: Getting and Posting content into an alternate JCR workspace References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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