‎2018 Jul 19 11:53 AM - edited ‎2024 Feb 04 6:26 AM
Hi Experts,
I understand that there is a default composition handler in datahub with following functionality: When the attribute is a collection, the two collections merge into one collection, and any duplicates that might occur in the combined collection are removed. If the new raw item has an empty collection for its value, the resulting merged canonical item also contains an empty collection value. The empty collection value is created by a raw item with an empty string set for its corresponding raw attribute.
I wanted to understand the name of the default handler which implements the above functionality. Also, do i need to write a new composition handler or override the existing in order to tweak the logic on how a collection attribute is handled by datahub?
Thanks in advance.
Regards Rahul
Request clarification before answering.
I could not find any such class in datahub 6.7. Could you plz let me know the jar in which the class is present?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If I'm not mistaken it's com.hybris.datahub.composition.impl.CollectionCompositionRuleHandler, which implements CompositionRuleHandler.
You can develop your custom implementation and register it in the *spring.xml with collectionCompositionRuleHandler name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.