Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-11898

Implement document validators

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 13.3.0
    • None
    • None
    • 3
    • Tiger
    • Tiger Sprint 209

    Description

      • Document validators will be configured at the hipposysedit:nodetype node of a document type. For example, validators for the "newsdocument" type in the HAP will be configured on the nodeĀ  /hippo:namespaces/hap/newsdocument/hipposysedit:nodetype/hipposysedit:nodetype.
      • The hipposysedit CND should therefore allow the property "hipposysedit:validators" for hipposysedit:nodetype nodes (currently it only allows this property on hipposysedit:field nodes).
      • Document validators can be configured at the same place as field validators, below the nodeĀ /hippo:configuration/hippo:modules/validation/hippo:moduleconfig.
      • The document editorcan lookup document validators using ValidationService.getValidator(). They should be executed after all fields have been saved, and probably only when the whole document is saved.
      • Document validators will get a JCR Node as the validated value, which should be the document variant node.
      • Pass a special validation context to document validators:
        • getJcrName() should... return the document node name?
        • getJcrType() and getType() should return the document type (e.g. "hap:newsdocument")
        • getParentNode() should... return the document handle node?
      • Rename "FieldContext" in the validation service API, since that's a bit weird for document validators. Maybe use "ValueContext" instead? The usage of the term "field" in Javadoc should then also be replaced with "value".

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mmetternich Michael Metternich
              Product Management Team Product Management Team
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: