jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dan z" <danz8...@hotmail.com>
Subject Re: another question on CompactNodeTypeDefReader
Date Wed, 05 Jul 2006 21:58:50 GMT
Hi Torgeir,

First, thanks for responding. It reminds me of the error of using "cm:*" 
insteand of "*". This fixes my problem.

Second, I understand that your model would work well if you are to implement 
access control on multiple node types since they "mix-in" :)

My scenario is a bit different: I'd like to have a Workspace-wide acl which 
is evaluated against any attempt to access the workspace. As for node level 
access control, I intend to use special properties like "editors", "readers" 
to support low level access control.

Any suggestions?


>From: Torgeir Veimo <torgeir@pobox.com>
>Reply-To: users@jackrabbit.apache.org
>To: users@jackrabbit.apache.org
>Subject: Re: another question on CompactNodeTypeDefReader
>Date: Wed, 05 Jul 2006 22:17:21 +0100
>dan z wrote:
>>Hi Tobias,
>>just another question on the CompactNodeTypeDefReader, please see my CND 
>>file components below:
>>[cm:aclEntryNode] > nt:base
>>-cm:uid (string) mandatory copy
>>-cm:permission (string) mandatory multiple copy
>>/* the node names of aclNode's children are the common name of the 
>>aclEntry Nodetype's id property */
>>[cm:aclNode] > nt:base
>>+cm:* (cm:aclEntryNode) = cm:aclEntryNode
>>  copy
>>What I'd like to have is a node hierarchy that reflects an ACL object. But 
>>the parser throws an ParserException saying "Error while parsing 'cm:'".
>>It seems that the parser doesn't like expression "cm:*", which I expect to 
>>tell the system "the subnode can have any name, as long as it is of 
>>NodeType cm:aclEntryNode".
>What about having a mixin nodetype that denotes a protected node? The mixin 
>node would 0..N ace children, eg:
>[nen:protected] mixin orderable
>- nen:owner (string) mandatory multiple
>+ nen:ace(nen:ace)=nen:ace multiple
>[nen:ace] > nt:base
>- nen:principal (string) mandatory
>- nen:action (string) mandatory multiple
>- nen:negative (boolean) mandatory
>These are the nodeTypes I'm working with at the moment.

Search your PC with MSN Desktop Search  http://desktop.sympatico.msn.ca/

View raw message