// Merge contact instance
Contact managedContact = this.getEntityManager().merge(foundContact);
+ // Is a fax number set?
+ if (detachedContact.getContactFaxNumber() instanceof DialableFaxNumber) {
+ // Make fax numbers managed
+ managedContact.setContactFaxNumber(this.getManaged(detachedContact.getContactFaxNumber(), detachedContact.getContactFaxNumber()));
+ }
+
+ // Is a land-line number set?
+ if (detachedContact.getContactLandLineNumber() instanceof DialableLandLineNumber) {
+ // Make land-line numbers managed
+ managedContact.setContactLandLineNumber(this.getManaged(detachedContact.getContactLandLineNumber(), detachedContact.getContactLandLineNumber()));
+ }
+
+ // Is a mobile number set?
+ if (detachedContact.getContactMobileNumber() instanceof DialableMobileNumber) {
+ // Make mobile numbers managed
+ managedContact.setContactMobileNumber(this.getManaged(detachedContact.getContactMobileNumber(), detachedContact.getContactMobileNumber()));
+ }
+
// Set updated timestamp
managedContact.setContactUpdated(new GregorianCalendar());