Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-6379

Facet Extension generation from Extra Facets

    XMLWordPrintable

    Details

    • Team:
      NOS

      Description

      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. 

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: