Re: JCR-SQL2 subtree query

2009-12-04 Thread Philipp Bunge
Hi Wes I have a bit of a dilemma. I'm working with Jackrabbit 2.0b3 and trying to migrate to JCR2.0. However, since the XPATH query syntax is deprecated, I'm investigating how to go about writing queries in JCR-SQL2. Unfortunately, I haven't come up with many examples or tutorials for the

Re: Jackrabbit support (paid or otherwise)

2009-12-04 Thread Philipp Bunge
Hi Samuel We're creating a decent-sized dependency on a functioning JSR-170 implementation (Jackrabbit).  As such, we're curious about the level of support we can get. I'm unaware of anything outside of what is published from the Jackrabbit site (this mailing list).  Does anyone else know

Re: Jackrabbit support (paid or otherwise)

2009-12-04 Thread Jukka Zitting
Hi, On Thu, Dec 3, 2009 at 11:28 PM, Samuel Cox crankydi...@gmail.com wrote: I'm unaware of anything outside of what is published from the Jackrabbit site (this mailing list).  Does anyone else know of anything else? If there's interest, we could add a JCR Support section to the JcrLinks page

Re: Jackrabbit support (paid or otherwise)

2009-12-04 Thread Michael Wechner
Jukka Zitting wrote: Hi, On Thu, Dec 3, 2009 at 11:28 PM, Samuel Cox crankydi...@gmail.com wrote: I'm unaware of anything outside of what is published from the Jackrabbit site (this mailing list). Does anyone else know of anything else? If there's interest, we could add a JCR

Re: Recommended way to take deal with JCR-1984

2009-12-04 Thread Ian Boston
Felix, yes thank you, got the update through which did as you say fix about 4 of the tests in Sling (and found the sling jira now). BTW I think the other problems I am having with {internal}privileges not being defined are of my own making, although I did notice the launch-pad tests are

Model data problem

2009-12-04 Thread mitziuro
Hi, I don't know how to represent the data in my repository. Now i have a document node that contains a file as data ( nt:resource) but i want to extend the functionality for more files. How should i represent the structure of nodes so when i want the version 1.x of the document node i want to

Re: Using the AccessControlManager to set a policy

2009-12-04 Thread Ben Short
Hi, I have a really simple test case as follows: public class UserManagerTests { private Repository repository; private Session superuser; private Session anonymous; Node testRootNode; @Before public void before() throws Exception { repository = new TransientRepository();

Re: Using the AccessControlManager to set a policy

2009-12-04 Thread Angela Schreiber
please take a look at the API. AccessControlManager#getApplicablePolicies - for policies that can but haven't yet been applied AccessControlManager#getPolicies - for policies that have been applied at a given path and can be removed again or edited/reapplied angela

Re: Recommended way to take deal with JCR-1984

2009-12-04 Thread Felix Meschberger
Hi, Ian Boston schrieb: Felix, yes thank you, got the update through which did as you say fix about 4 of the tests in Sling (and found the sling jira now). BTW I think the other problems I am having with {internal}privileges not being defined are of my own making, ok. although I did

Re: Using the AccessControlManager to set a policy

2009-12-04 Thread Ben Short
Thanks Angela, Through a bit of trial and error I have the following which works as expected. AccessControlPolicyIterator it = adminAcm.getApplicablePolicies(testRootNode.getPath()); while ( it.hasNext() ) { AccessControlPolicy acp = it.nextAccessControlPolicy(); Privilege[] privileges = new

Re: Using the AccessControlManager to set a policy

2009-12-04 Thread Ben Short
please take a look at the API and the specification. thank you for your patience i have it working now. AccessControlPolicyIterator it = adminAcm.getApplicablePolicies(testRootNode.getPath()); while ( it.hasNext() ) { AccessControlPolicy acp =

Problem with node type defs in JR1.6

2009-12-04 Thread Ian Boston
Hi, I have a modified DefaultSecurityManager (and related classes) and I am certain I have made a mistake somewhere, but on initialization I get 04.12.2009 18:40:09.020 *ERROR* [SCR Component Actor] org .apache.sling.jcr.jackrabbit.server.impl.security.standard.ACLProvider Failed to

Re: Filesystem versus PersistenceManager questions

2009-12-04 Thread ChadDavis
BTW, I'm using 2.0-beta3. On Fri, Dec 4, 2009 at 4:28 PM, ChadDavis chadmichaelda...@gmail.com wrote: I'm reading the PersistenceManager FAQ [1].  There's a part where it discusses What combination of FS and PM is the best choice?  In reading through this section I have a couple of questions:

DataStore

2009-12-04 Thread ChadDavis
In the default repository.xml, the datastore element is configured: DataStore class=org.apache.jackrabbit.core.data.FileDataStore/ Is this all that is needed for the PM to hand off binary storage to the datastore? There doesn't appear to be any wiring of the PM, or the Workspace, to the

jackrabbit configuration defaults

2009-12-04 Thread ChadDavis
I've just read through all of the configuration information on the jackrabbit web site. As far as I can tell, the default settings are pretty solid. I don't have any requirements for storing things in a particular db. I have application level security that will suffice for now. Maybe I'm

Re: Filesystem versus PersistenceManager questions

2009-12-04 Thread Guo Du
On Fri, Dec 4, 2009 at 11:28 PM, ChadDavis chadmichaelda...@gmail.com wrote: 1) I read elsewhere that the FS is only used for some administrative stuff, like the search index and configuration.  Is this correct?  In other words, the FS isn't a part of the storage for the actual repo content,