From 57cd41ecd3bb57c9e687f6b56c0e2a3911739894 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 18 Aug 2016 15:13:16 +0200 Subject: [PATCH] Continued a bit: - added business methods for linking new/existing fax, land-line and mobile numbers --- .../AdminContactsPhoneSessionBeanRemote.java | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java b/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java index fbfd9e9..fb7d8fe 100644 --- a/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java +++ b/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java @@ -35,6 +35,72 @@ import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; @Remote public interface AdminContactsPhoneSessionBeanRemote extends Serializable { + /** + * Links existing fax number with given contact instance. The id number + * should be set. + *

+ * @param contact Contact to link to + * @param faxNumber Fax number to link + *

+ * @return Updated contact + */ + Contact linkExistingFaxNumberWithContact (final Contact contact, final DialableFaxNumber faxNumber); + + /** + * Links existing land-line number with given contact instance. The id + * number should be set. + *

+ * @param contact Contact to link to + * @param landLineNumber Land-line number to link + *

+ * @return Updated contact + */ + Contact linkExistingLandLineNumberWithContact (final Contact contact, final DialableLandLineNumber landLineNumber); + + /** + * Links existing mobile number with given contact instance. The id number + * should be set. + *

+ * @param contact Contact to link to + * @param mobileNumber Mobile number to link + *

+ * @return Updated contact + */ + Contact linkExistingMobileNumberWithContact (final Contact contact, final DialableMobileNumber mobileNumber); + + /** + * Links new fax number with given contact instance. The id number should + * NOT be set. + *

+ * @param contact Contact to link to + * @param faxNumber Fax number to link + *

+ * @return Updated contact + */ + Contact linkNewFaxNumberWithContact (final Contact contact, final DialableFaxNumber faxNumber); + + /** + * Links new land-line number with given contact instance. The id number + * should NOT be set. + *

+ * @param contact Contact to link to + * @param landLineNumber Land-line number to link + *

+ * @return Updated contact + */ + Contact linkNewLandLineNumberWithContact (final Contact contact, final DialableLandLineNumber landLineNumber); + + /** + * Links new mobile number with given contact instance. The id number should + * NOT be set. + *

+ * @param contact Contact to link to + * @param mobileNumber Mobile number to link + *

+ * @return Updated contact + */ + Contact linkNewMobileNumberWithContact (final Contact contact, final DialableMobileNumber mobileNumber); + /** * Unlinks fax data from given contact and returns the updated (detached?) * version. -- 2.39.5