Grouping composite copier API
The GroupingCompositeCopier
extends CompositeCopier.
The GroupingCompositeCopier
is a composite copier for a group of similar copiers. This copier provides
determines whether to copy individual child entities. As with other copiers,
use the ShouldCopyAll
method to handle a Copy All
request.
All note copier: a simple grouping composite copier
The AllNoteCopier
extends GroupingCompositeCopier.
Use the AllNoteCopier
to enable a single method call to copy all notes.
All coverage copier: a grouping composite copier
The AllCoverageCopier
extends GroupingCompositeCopier
and provides the following functionality:
- Adds new coverages on the target coverable.
- Overwrites existing coverages on the target coverable.
- Removes any coverages from the target coverable that does not exist on the source coverable.
The AllCoveragesCopier
delegates to two other copiers:
AllExistingCoverageCopier– Adds coverages.AllRemovingCoverageCopier– Removes coverages.
Using copy data in personal auto as an example, assume you have a matching vehicle on both the source policy and the target policy. On the source policy, only collision coverage is selected. On the destination policy, only comprehensive coverage is selected. When copying the data from the source to the target, the copier adds the collision coverage and removes the comprehensive coverage.
