Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6FCD39C3D for ; Fri, 15 Jun 2012 13:16:30 +0000 (UTC) Received: (qmail 84264 invoked by uid 500); 15 Jun 2012 13:16:30 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 84143 invoked by uid 500); 15 Jun 2012 13:16:29 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 84131 invoked by uid 99); 15 Jun 2012 13:16:29 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2012 13:16:29 +0000 Received: from localhost (HELO mail-we0-f170.google.com) (127.0.0.1) (smtp-auth username bdelacretaz, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2012 13:16:28 +0000 Received: by werm13 with SMTP id m13so4506523wer.1 for ; Fri, 15 Jun 2012 06:16:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.99.195 with SMTP id es3mr4516104wib.12.1339766186978; Fri, 15 Jun 2012 06:16:26 -0700 (PDT) Received: by 10.223.81.73 with HTTP; Fri, 15 Jun 2012 06:16:26 -0700 (PDT) In-Reply-To: References: Date: Fri, 15 Jun 2012 15:16:26 +0200 Message-ID: Subject: Re: Files on the filesystem? From: Bertrand Delacretaz To: users@jackrabbit.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, On Thu, Jun 7, 2012 at 10:48 AM, Rob Bone wro= te: > ...What I am looking for is a way to essentially =C2=A0have files on the = file > system (so I can access them from say, explorer if I want to) but have my > program manipulate them through Jackrabbit, with authentication, > authorization etc all handled by the JCR. Is this possible with Jackrabbi= t?... You could implement your own DataStore [1] [2] to have one filesystem file for each JCR property that's stored in the DataStore. However, the DataStore just receives the binary content of the file, not its path in JCR, so you would probably use the content's md5 or other digest to name the file that you store on disk. You could then view the files from the filesystem, but their names would be lost - unless you setup something to create filesystem links from those md5-named files to their original names, but that's a bit tricky. A simpler alternative would be to just keep your files on the filesystem, store their paths in JCR as String properties, and do the mapping at the application level. -Bertrand [1] http://wiki.apache.org/jackrabbit/DataStore [2] http://jackrabbit.apache.org/api/1.5/org/apache/jackrabbit/core/data/Da= taStore.html