If an item descriptor has a parent from which it inherits, you can use <child-property>
tags to override the default values of properties of the parent item descriptor. The only aspect of the parent property definition that can be overridden is the property’s default value; the property’s data-type, etc. must stay the same. For example, suppose there is a parent item descriptor with the following property:
<item-descriptor name="user"> ... <property name="department" default="Other"/> ... </item-descriptor>
You can create a child property that overrides the default value of the department
property:
<item-descriptor name="engineer" parent="user"> <!-- object classes (added to parent classes) --> <object-class>engineeringPerson</object-class> <!-- properties (added to parent properties) --> ... <!-- child property (overrides parent properties) --> <child-property name="department" default="Engineering"/> </item-descriptor>
See Item Descriptor Hierarchies and Inheritance in the LDAP Repository Architecture section of this chapter.
child-property Tag Attributes
Attribute | Description | Value |
---|---|---|
name | The attribute name, which is the same as the name of an attribute of the parent item descriptor. | Required. |
default | The default value for the attribute in the child item descriptor. | Required. Overrides the default value of the corresponding attribute in the parent item descriptor. |