more restrictive constraints on a property of a derived node type
-----------------------------------------------------------------
Key: JCR-567
URL: http://issues.apache.org/jira/browse/JCR-567
Project: Jackrabbit
Issue Type: Improvement
Components: core
Affects Versions: 1.0.1
Reporter: Roberto Fonti
Priority: Minor
NodeTypes definition should allow to assign more restrictive constraints on a
property when it is defined for a subtype.
Example:
[rf:Organization] > mix:referenceable, nt:base
[rf:University] > rf:Organization
[rf:Person] > nt:base
- rf:worksFor (reference)
< 'rf:Organization'
[rf:Professor] > rf:Person
- rf:worksFor (reference)
< 'rf:University'
In the example, the property "rf:worksFor" has the constraint "rf:Organization"
when it is defined for a Person,
while it has the constraint "rf:University" (a subtype of Organization) when it
is defined for a Professor (a subtype of Person).
Currently you get a NodeTypeConflictException registering such NodeTypes.
In general, this consideration should apply for all property types (not only
references).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira