On 11/29/06, Paco Avila <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>