One group of organisations within the current account that share the same title, produced by findDuplicates(MergeDestMode) for review before merging. Exposes the shared title, the count and full list of duplicate organisations, and identifies which one is the suggested merge destination according to the MergeDestMode the group was built with.
Properties
| Property | Returns | Description |
|---|---|---|
| count | Long | The number of organisations sharing this title, as reported by the duplicate-finding query. |
| dups | List<Organisation> | All organisations in this duplicate group, including the suggested merge destination. |
| firstDup | Organisation | The organisation in this duplicate group suggested as the merge destination, chosen according to the MergeDestMode the group was built with (newest, oldest, or the first with a numeric org id). The result is computed once and cached. |
| otherDups | List<Organisation> | All organisations in this duplicate group except the suggested merge destination returned by getFirstDup(). |
| title | String | The title shared by all organisations in this duplicate group. |
Methods
getCount()
Returns: Long
The number of organisations sharing this title, as reported by the duplicate-finding query.
getTitle()
Returns: String
The title shared by all organisations in this duplicate group.
getDups()
Returns: List<Organisation>
All organisations in this duplicate group, including the suggested merge destination.
getFirstDup()
Returns: Organisation
The organisation in this duplicate group suggested as the merge destination, chosen according to the MergeDestMode the group was built with (newest, oldest, or the first with a numeric org id). The result is computed once and cached.
getOtherDups()
Returns: List<Organisation>
All organisations in this duplicate group except the suggested merge destination returned by getFirstDup().