On a DocumentModel it is now possible to add any registered facet (see NXP-6085 for facet registration):
doc.addFacet(facetName);
The doc must be saved for this to take persistent effect.
If this facet is associated to one or several schemas, the properties they define are now accessible on the document.
Facets can also be removed.
- is required by
-
NXP-4680 introduce content factory selector feature in content template manager
- Open