Using MixinTypes in JCR

I was trying to understand the concept of MixinTypes in the JCR, what I am reddish is, "Mixin node types usually specify additional properties or child nodes associated with a feature being added to the node" but it seems unclear to some, I am looking for a simple protection through which I can understand. Like node type cq:page

, and has a supertype mix:created

which is a mixin type. What if case i removes the mixin type property from mix:created

.

Or any other example. thank

+3


source to share


1 answer


If you are reading the documentation it should be clear.

"Each node has one declared primary node type and zero or more mixin node types. Primary node types are usually used to define the basic characteristics of a node, while mixin node types are used to add additional characteristics, often associated with specific repository functionality or metadata."



One way to look at not all JCR features are all features, so not all mixins will work. Some mixins reveal hidden properties. Jackrabbit has a unique ID for each node (jcr: uuid), but if you try to list the properties of the nodes it won't show up unless you added the mix: referenceable mixin. Other mixins tell JCR which can be used for example. version control. If your JCR supports it, you must add mix: versionable or mix: simpleVersionable to specify which nodes for the version.

+3


source







All Articles