-
Type: New Feature
-
Status: Closed
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Not Ready for Grooming
-
Component/s: Registries
-
Team:NOS
Currently Extra Facets can be added via JSON contribution into Studio Registries. In a way like
{ "facets": [ { "id": "ValidityFacet", "label": "Validity Facet", "description": "Document can be Validated", "schemas": ["validity"] },
Which would allow to select such a facet in Document definition.
Some facets may contribute schema. Therefore, requiring to add an XML contribution of type
<extension point="doctype" target="org.nuxeo.ecm.core.schema.TypeService"> <facet name="ValidityFacet"> <schema name="validity" /> </facet> </extension>
This will serve as an explicit Facet <-> Schema mapper.
This might seem redundant, since JSON schema contains all necessary information for such XML generation.