You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Edgar Poce <ed...@gmail.com> on 2005/04/16 04:06:55 UTC

References to non referenceable nodes

Hi

  According to the spec only nodes with referenceable mixin type can be 
referenced but I noticed that there are cases that don't follow that 
rule. Since nt:resource inherits from nt:referenceable I guess it should 
expose the mix:referenceable mixin type, am i missing something?

regards
edgar

Relevant nodes in the repository after running Init test.
Note that "/testdata/node/myResource" does not expose mix:referenceable 
and it's referenced by "/testdata/node/reference" :

/testdata/node/myResource
/testdata/node/myResource/jcr:primaryType=nt:resource
/testdata/node/myResource/jcr:uuid=816d88b3-eda5-4571-8d45-d6219c2158bc
/testdata/node/myResource/jcr:encoding=UTF-8
/testdata/node/myResource/jcr:mimeType=text/plain
/testdata/node/myResource/jcr:data=Hello wörld.
/testdata/node/myResource/jcr:lastModified=2005-04-15T22:05:18.349-03:00
/testdata/node/reference
/testdata/node/reference/jcr:primaryType=nt:unstructured
/testdata/node/reference/ref=816d88b3-eda5-4571-8d45-d6219c2158bc
/testdata/node/reference/jcr:mixinTypes=mix:referenceable

Re: References to non referenceable nodes

Posted by Tobias Strasser <to...@gmail.com>.
>   According to the spec only nodes with referenceable mixin type can be
> referenced but I noticed that there are cases that don't follow that
> rule. Since nt:resource inherits from nt:referenceable I guess it should
> expose the mix:referenceable mixin type, am i missing something?
only the mixintypes that were mixed in to the node are exposed in the
jcr:mixinTypes property.
a node is referenceable if: Node.isNodeType("mix:referenceable") is true.

cheers, tobi
-- 
------------------------------------------< tobias.strasser@day.com >---
Tobias Strasser, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97 
-----------------------------------------------< http://www.day.com >---