Details
-
New Feature
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
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
- includes
-
CHANNELMGR-2322 Implement document validators
- Closed
- is duplicated by
-
CMS-11564 Add document level validation
- Closed