Holds one set of profiles which share a duplicated value, as found by UserManager.findDuplicates. One profile in the set is nominated the first, or default merge destination, according to the merge mode the search was run with.
Properties
| Property | Returns | Description |
|---|---|---|
| count | Long | The number of profiles which share the duplicated value. |
| dups | List<Profile> | All the profiles which share the duplicated value, including the one nominated as the merge destination. |
| dupValue | Object | The value shared by all the profiles in this set, eg a common email address or custom field value, depending on which match method found the duplicates. |
| firstDup | Profile | The profile in this set nominated as the default merge destination, chosen according to the merge mode the duplicate search was run with - the newest profile, the oldest profile, or the one with a numeric name. |
| otherDups | List<Profile> | The profiles in this set other than the one nominated as the merge destination - the ones which would be merged into getFirstDup. |
Methods
getCount()
Returns: Long
The number of profiles which share the duplicated value.
getDupValue()
Returns: Object
The value shared by all the profiles in this set, eg a common email address or custom field value, depending on which match method found the duplicates.
getDups()
Returns: List<Profile>
All the profiles which share the duplicated value, including the one nominated as the merge destination.
getFirstDup()
Returns: Profile
The profile in this set nominated as the default merge destination, chosen according to the merge mode the duplicate search was run with - the newest profile, the oldest profile, or the one with a numeric name.
getOtherDups()
Returns: List<Profile>
The profiles in this set other than the one nominated as the merge destination - the ones which would be merged into getFirstDup.