jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paco Avila <pav...@git.es>
Subject Re: modify a node type definition
Date Thu, 30 Nov 2006 09:37:42 GMT
El jue, 30-11-2006 a las 09:55 +0100, Stefan Guggisberg escribiĆ³:
> 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.

But I can add this "mix:referenceable" to all the existing node, isn't
it? So the stats will not be inconsistent.
-- 
Paco Avila <pavila@git.es>


Mime
View raw message