@Remote
public interface AdminContactsPhoneSessionBeanRemote extends Serializable {
+ /**
+ * Links existing fax number with given contact instance. The id number
+ * should be set.
+ * <p>
+ * @param contact Contact to link to
+ * @param faxNumber Fax number to link
+ * <p>
+ * @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.
+ * <p>
+ * @param contact Contact to link to
+ * @param landLineNumber Land-line number to link
+ * <p>
+ * @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.
+ * <p>
+ * @param contact Contact to link to
+ * @param mobileNumber Mobile number to link
+ * <p>
+ * @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.
+ * <p>
+ * @param contact Contact to link to
+ * @param faxNumber Fax number to link
+ * <p>
+ * @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.
+ * <p>
+ * @param contact Contact to link to
+ * @param landLineNumber Land-line number to link
+ * <p>
+ * @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.
+ * <p>
+ * @param contact Contact to link to
+ * @param mobileNumber Mobile number to link
+ * <p>
+ * @return Updated contact
+ */
+ Contact linkNewMobileNumberWithContact (final Contact contact, final DialableMobileNumber mobileNumber);
+
/**
* Unlinks fax data from given contact and returns the updated (detached?)
* version.