Posts

Showing posts from 2019

Diff between jcr:primaryType and jcr:mixinTypes

Image
There are two categories of node types, primary and mixin. Every node has a primary node type assigned to it upon creation. In addition, a mixin node type may be added to a node later in its lifecycle. The primary node type of a node usually defines node structure (i.e., allowed and required child nodes and properties) & Mixin node types usually specify additional properties or child nodes related to a capability being added to the node. These capabilities may include generic repository-level functions as in the case of the built-in mixins mix:versionable and mix:lockable, for example, or domain-level capabilities such as a (hypothetical) myapp:Emailable mixin type that adds the property myapp:emailAddress to a node. Below are some noticeable differences in both. 1:- Mixin Types are similar to interfaces, one node could have multiple mixin types.You can think of it as interfaces in Object Oriented world since a node can have multiple ones and they aim to add aditionnal pro