Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Create NodeType for static GUID property

Avatar

Level 4

I am trying to create a new NodeType (call it "mix:staticReferenced") similar to mix:referenceable, so as to introduce a new protected property for a GUID.

I wish to do so because the jcr:uuid is not sufficiently static.  The requirements for this ID are:

  • A protected ID property ("guid") exists on all content
  • The ID is an auto-generated hash, and does not change once created
  • The ID is persisted across replications and package installs (jcr:uuid fails here)
[mix:staticReferenced] >mix:referenceable mixin - guid mandatory autocreated protected COPY

When I try to create this with the CRX NodeType Admin, I get an error trying to register the NodeType when GUID has no default value, even though jcr:uuid also has no default value.

[img]cnd.png[/img]

Is there a better way to achieve this?

 

Thanks!

Reference: http://jackrabbit.apache.org/jcr/node-type-notation.html

1 Reply