2018 Aug 09 2:49 AM - edited 2024 Feb 04 6:36 AM
I want to clone the CanonicalItem into a different pool in a composition or publication handler?
Same raw feed should populate a separate pool with the identically cloned CanonicalItem.
Please advise?
Request clarification before answering.
Here is a high level concept:
implement GroupingHandler
In the implementation of List<CompositionGroup<T>> group(final CompositionGroup<T> original)
. Create a copy of the original composition group, i.e. new CompositionGroup(items, attributes, pool)
items an attributes can be taken from the original group, pool is the one you need to copy the items to.
The raw items retrieved from original.getItems()
need to be copied as well before passing them into the new composition group. For each item call RawItem.instantiate(type)
and then populate the new item from the original item except setting a different pool.
Return two groups: the original and the new one from the GroupingHandler
implementation.
You may still hit some problems while working on this but at least this is an outline of a way to do what you need. Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.