Interface ContactRelationHandler
-
public interface ContactRelationHandler
Defines an API to modify the contact relation of a source contact of typeContact
- Since:
- 12.24
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ContactRelationHandler.JoinStrategy
ContactRelationHandler.JoinStrategy.MOVE
move source contact to target contactContactRelationHandler.JoinStrategy.UNION
move all joined source contacts to target contact
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContactRelationHandler
joinContact(Contact target, ContactRelationHandler.JoinStrategy joinStrategy)
Joins a targetContact
non destructively to the sourceContact
.ContactRelationHandler
splitContact()
Releasing the sourceContact
from joined contacts
-
-
-
Method Detail
-
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
-
-