XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4.2-RC1, 5.4.2
    • Component/s: Core
    • Impact type:
      API added
    • Upgrade notes:
      Hide

      New APIs:
      DocumentModel.getSchemas()
      DocumentModel.getFacets()
      DocumentModel.addFacet(String facet)
      DocumentModel.removeFacet(String facet)

      Extended APIs to check instance facets and their schemas:
      DocumentModel.hasSchema(String schema)
      DocumentModel.hasFacet(String facet)

      Deprecated APIs:
      DocumentModel.getDeclaredSchemas()
      DocumentModel.getDeclaredFacets()

      Show
      New APIs: DocumentModel.getSchemas() DocumentModel.getFacets() DocumentModel.addFacet(String facet) DocumentModel.removeFacet(String facet) Extended APIs to check instance facets and their schemas: DocumentModel.hasSchema(String schema) DocumentModel.hasFacet(String facet) Deprecated APIs: DocumentModel.getDeclaredSchemas() DocumentModel.getDeclaredFacets()

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fguillaume Florent Guillaume
                Reporter:
                fguillaume Florent Guillaume
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: