Major
Detail
Bugfix
Major
Detail
Currently some settings for tl:TLModelPart can be configured in the AttributeSettings (unversioned).
It would be good if in general all tl:TLAnnotation s can be set in these AttributeSettings.
The following sequence should be used to determine the value of an annotation for a tl:TLStructuredTypePart.
- If the annotation is set on the attribute itself it will be used.
- If an AttributeSetting is defined for the attribute and the annotation is specified here it will be used.
- If the annotation is set for the target type of the attribute, it will be used.
- If an AttributeSetting is defined for the type and the annotation is specified here, it will be used.
The following sequence shall be used to determine the value of an annotation for a tl:TLStructuredType. If the annotation is specified here it will be used.
- If the annotation is set on the type it will be used.
- If an AttributeSetting is defined for the type and the annotation is specified here it will be used.
Code migration
Package name of AttributeSettings
In the application configuration replace service-class="com.top_logic.element.meta.AttributeSettings" with service-class="com.top_logic.model.annotate.util.AttributeSettings".
AttributeSettings configuration
In the application configuration, in the attribute-setting tags, replace the config-type string with config-name.
The configurations export-binding, tag-provider, filter-provider and field-provider as children of attribute-setting are now wrapped:
If the configured provider has no configuration, class must be replaced by impl.
If the configured provider has its own configuration the provider must be replaced according to the following scheme.
<tag-provider class="com.tl.ProviderClass" attr1="val1"..> <sub-configuration.../> </tag-provider>
is replaced by
<tag-provider> <impl class="com.tl.ProviderClass" attr1="val1"..> <sub-configuration.../> </impl> </tag-provider>
The fullTextRelevant and search-relevant configurations in attribute-setting must now be written as a tag:
<attribute-setting> <fulltext-relevant value="false"/> <search-relevant value="false"/> </attribute-setting>.
Test
- Refactoring, no additional test.