Copies information fields from nodes onto assets when they are assigned to that node. Triggers on Asset release, direct assignment, change value of nodereference field (if configured), change of node metadata (if configured)
To be configured in {home}/appserver/conf/custom.properties
type: String, required: yes, default: -
The license of Carbon Copy provided by brix e.g. `carbonCopy.license=B3Kj3MbcupVIF/zHV2fn0uwmjRpaQ4YcynIjENCxA0l4ncLRYyUZwubIhXKpgW/+baPziK``
type: boolean, required: no, default: false
True if changes on a node informationfield should be copied to the informationfields of all assets contained within the node
type: String, required: no, default: Carbon Copy: Reapply All Mappings
task name in system tasks menu
type: String, required: no, default: otherTasks
task group name in system tasks menu
type: Cron expression, required: no, default: -
cron expression for "reapplay all mappings"
syntax: carbonCopy.{1..n}.{property}
, needs to be consecutive, starting at 1
e.g. carbonCopy.1.source=101
, carbonCopy.2.target=101
You can use
carbonCopy.default.{property}
to set a default value for all instances, e.g.carbonCopy.default.nodeTypes=106
type: long, required: yes, default: -
ID of the Source InformationField (Information Field of a Node) or name if the source is the node name.
type: long, required: if different than source, default: -
ID of the Target InformationField (Information Field of an Asset). Uses source when left empty.
type: long, required: no, default: -
ID of the Trigger NodeReference Informationfield (optional), the data from the referenced node will be written done to the asset as with direct assignments.
type: string, required: yes, default: -
List of the affected NodeTypes (comma-separated). When using trigger, use the NodeType of its content (e.g. keywords)
type: string, required: no, default: -
List of nodeIds. An asset has to be in one of them (recursively), in order to be affected by carbon copy.
With a restricted license, this property will be overwritten by the root nod property defined in the license as rootProperty. E.g. { "licensee": "celum", "product": "carbonCopy", "expires": "2017-12-31T00:00:00Z" "rootProperty": "akeneoConnector.hierarchySync.rootNodeId" }
type: string, required: yes, default: -
For any information field type one of:
KEEP
(set to node value only if asset value is empty, else do nothing)OVERWRITE
(overwrite with node value, unless it is empty)FORCE_OVERWRITE
(always overwrite with node value, even if it is empty)For NodeReferencing fields:
INTERSECTION
UNION
For Boolean fields:
OR
AND
FALSE_AS_NULL
(treats a false-value as a null-value and searchs in parent nodes for a true-value)For Text fields:
DELIMIT
type: string, required: when using appendMode=DELIMIT, default: -
Only viable with appendMode = DELIMIT, defines the delimiter character. The placeholders <SPACE>
, <TAB>
and <LINEBREAK>
will be replaced with the corresponding whitespace character.
type: long, required: no, default: -
Set asset type before copying the information field value
type: boolean, required: no, default: false
When setAssetType
is configured, set that asset type even if the asset already has another
type: ValueTransformer, required: no, default: -
Value transformer bean id, known values:
Needs to implement the the interface ValueTransformer
package ch.brix.carbonCopy.valueTransformer;
public interface ValueTransformer<SOURCE, TARGET> {
TARGERT transform(SOURCE value);
}
You can also just instanciate your own beans in the spring/root.xml, e.g.
<bean id="myNodeRefToCheckboxTransformer" class="ch.brix.carbonCopy.valueTransformer.NodeRefToCheckboxTransformer">
<property name="trueNodeId" value="1337"/>
</bean>
<bean id="myNodeRefToTextTransformer" class="ch.brix.carbonCopy.valueTransformer.NodeRefToTextTransformer">
<property name="separator" value=" - "/>
</bean>
type: boolean, required: no, default: true
True if changes on a node informationfield should be copied to the informationfields of all assets contained within the node, for these configurations. Default is true but only has an effect if carbonCopy.listener.updateAssetsOnNodeUpdate is true too.
carbonCopy | CELUM (min. version) |
---|---|
1.0 - 1.2 | 5.11.4 |
1.2.6 - 1.4.9 | 5.12.0 |
1.3.0 - 1.4.9 | 5.12.4 |
1.4.10 - 1.8.1 | 5.13.1 |
2.0.0 | 5.13.3 |
2.0.1 - 2.5.5 | 5.13.4 (tested up to 6.8) |
2.6.0 - 2.7.0 | 6.6.0 |
Released 2016-03-29
Released 2016-09-09
Released 2017-01-17
Released 2018-04-12
Released 2018-07-30
Released 2018-11-08
Released 2019-03-21
Released 2019-08-06
Released 2019-09-09
Released 2020-02-18
- CELUM 6.4 (19.10) compatible
Released 2021-05-17
- Restricted license feature (possibility to set the root node property in the license -> carbonCopy.1.nodes will be overwritten by the property set as rootProperty in the license)
Released 2023-12-06
- Merge tag references
Released 2023-12-08
- Tag reference fields as trigger fields