jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Thrasher (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1724) Jackrabbit utilities
Date Mon, 22 Sep 2008 03:19:44 GMT

     [ https://issues.apache.org/jira/browse/JCR-1724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jason Thrasher updated JCR-1724:
--------------------------------

    Attachment: jcrutil.tgz

Scott,
Thanks for sharing this!  I tried to get it running and ran into a few minor snags, so dove
into it and created a updated version.  This should live in the jackrabbit sandbox, but doesn't
seem to be there yet.  So, here's an updated version that works for the current jackrabbit
1.5-SNAPSHOT (as of today).

cheers,
Jason


Here's what changed:

M      src/test/java/org/jcrutil/VfsTest.java
M      src/main/java/org/jcrutil/JcrFileSystem.java
M      src/main/java/org/jcrutil/JcrFileObject.java
M      pom.xml

Updated VfsTest to close the filesystem when the test is in tearDown().  This allows the underlying
Jackrabbit JCR to properly close the session.  If this isn't done, other VFS or Jackrabbit
clients may not be able to use the same repository (as in: other tests using JCR).

Added close() method to the JcrFileSystem that closes the JCR session when the FileSystem
is being closed.

Updated JcrFileObject doIsReadable() and doIsWriteable() to use the updated jackrabbit-core-1.5-SNAPSHOT
PrivilegeRegistry class.  The PrivilegeRegistry had been refactored in the trunk, and caused
the compile to fail.  Also fixed a IOException constructor that wraps and rethrows any problems
from close().

Added <repositories> for jets3t and apache-snapshots to the pom.xml, and changedthe
commons-vfs groupId and version to 1.0, so they can be found by others.


> Jackrabbit utilities
> --------------------
>
>                 Key: JCR-1724
>                 URL: https://issues.apache.org/jira/browse/JCR-1724
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: sandbox
>            Reporter: Scott
>            Priority: Minor
>         Attachments: jcrutil.tar.gz, jcrutil.tgz
>
>
> Attached are two utilities for Jackrabbit:
> The first one is a DataStore implementation that uses Amazon S3 for storage.
> This is fairly straightforward. It is configured by adding a DataStore
> section to the repository.xml file, e.g.:
>    <DataStore class="org.jcrutil.S3DataStore">
>        <param name="awsAccessKey" value="" />
>        <param name="awsSecretKey" value="" />
>        <param name="bucketName" value="" />
>        <param name="minModifiedDate" value="0" />
>        <param name="minRecordLength" value="0" />
>    </DataStore>
> The second utility is a JCR based Commons VFS filesystem provider. This
> allows you to access a JCR repository (nt:file and nt:folder nodes) using
> the Commons VFS API. I've also used this with MINA FTP Server and Dctm VFS
> (http://dctmvfs.sourceforge.net/) to provide FTP access to a Jackrabbit
> repository.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message