jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: modify a node type definition
Date Thu, 30 Nov 2006 08:55:39 GMT
On 11/29/06, Paco Avila <pavila@git.es> wrote:
> I have created a repository with several hundred of nodes and now I want
> to add a "mix:referenceable" to all these nodes. The node actually is
> defined as:
>
> [okm:document] > nt:hierarchyNode, mix:lockable, mix:accessControlled
> - okm:author (string) mandatory
> - okm:name (string)
> - okm:language (string)
> - okm:keywords (string)
> + okm:content (okm:resource) primary mandatory
>
> and I want to become:
>
> [okm:document] > nt:hierarchyNode, mix:referenceable, mix:lockable,
> mix:accessControlled
> - okm:author (string) mandatory
> - okm:name (string)
> - okm:language (string)
> - okm:keywords (string)
> + okm:content (okm:resource) primary mandatory
>
> I'have try
>
> NodeTypeRegistry.reregisterNodeType(NodeTypeDef)
>
> but seems to be "not yet implemented" :(

mix:referenceable declares a mandatory property called jcr:uuid.

if you add mix:referenceable to an existing node type, existing nodes
of that node type would be in an inconsistent state as they don't
have the jcr:uuid property. that's why you can't add it.

cheers
stefan

> --
> Paco Avila <pavila@git.es>
>
>

Mime
View raw message