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 enum
ContactRelationHandler.JoinStrategy.MOVE
move source contact to target contactContactRelationHandler.JoinStrategy.UNION
move all joined source contacts to target contact -
Method Summary
Modifier and TypeMethodDescriptionjoinContact
(Contact target, ContactRelationHandler.JoinStrategy joinStrategy) Joins a targetContact
non destructively to the sourceContact
.Releasing the sourceContact
from joined contacts
-
Method Details
-
joinContact
ContactRelationHandler joinContact(Contact target, ContactRelationHandler.JoinStrategy joinStrategy) Joins a targetContact
non destructively to the sourceContact
.- Parameters:
target
- targetContact
to which the sourceContact
should be non destructively joined tojoinStrategy
- strategy to use if both the sourceContact
and target contact are part of a joined contact
ContactRelationHandler.JoinStrategy.MOVE
move source contact to target contactContactRelationHandler.JoinStrategy.UNION
move all joined source contacts to target contact- Returns:
- the
ContactRelationHandler
- Since:
- 12.24
-
splitContact
ContactRelationHandler splitContact()Releasing the sourceContact
from joined contacts- Returns:
- the
ContactRelationHandler
- Since:
- 12.24
-