Interface ContactRelationHandler
public interface ContactRelationHandler
Defines an API to modify the contact relation of a source contact of type
Contact- Since:
- 12.24
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumContactRelationHandler.JoinStrategy.MOVEmove source contact to target contactContactRelationHandler.JoinStrategy.UNIONmove all joined source contacts to target contact -
Method Summary
Modifier and TypeMethodDescriptionjoinContact(Contact target, ContactRelationHandler.JoinStrategy joinStrategy) Joins a targetContactnon destructively to the sourceContact.Releasing the sourceContactfrom joined contacts
-
Method Details
-
joinContact
ContactRelationHandler joinContact(Contact target, ContactRelationHandler.JoinStrategy joinStrategy) Joins a targetContactnon destructively to the sourceContact.- Parameters:
target- targetContactto which the sourceContactshould be non destructively joined tojoinStrategy- strategy to use if both the sourceContactand target contact are part of a joined contact
ContactRelationHandler.JoinStrategy.MOVEmove source contact to target contactContactRelationHandler.JoinStrategy.UNIONmove all joined source contacts to target contact- Returns:
- the
ContactRelationHandler - Since:
- 12.24
-
splitContact
ContactRelationHandler splitContact()Releasing the sourceContactfrom joined contacts- Returns:
- the
ContactRelationHandler - Since:
- 12.24
-