Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6834

Make TypeEditor publically accessible and allow pluggable constraint violation handling

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.10, 1.8.0
    • core
    • None

    Description

      For OAK-6580 we need to validate node types at mount time. The logic to perform the validation is properly encapsulated in the org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor class. There are two issues which we need to work around:

      • the type is not accessible
      • the constraint violation handling is not pluggable - it either fails or log a WARN

      My proposal is to:

      • make the TypeEditor public and add a factory method for accesing it
      • add a ConstraintViolationCallback interface which must be passed in to the TypeEditor

      Attachments

        Issue Links

          Activity

            People

              rombert Robert Munteanu
              rombert Robert Munteanu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: