From 12f36cf1e165f827f235988a89fe138f09e485fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 16 Aug 2016 16:02:11 +0200 Subject: [PATCH] added business methods for fax and land-line numbers (retrival by id number) --- .../phone/PhoneSessionBeanRemote.java | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java b/src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java index da9a72c..177087a 100644 --- a/src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java +++ b/src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java @@ -33,15 +33,37 @@ import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; public interface PhoneSessionBeanRemote extends Serializable { /** - * Finds a cellphone entry by given id number + * Finds a fax entry by given id number *

- * @param cellphoneId Cellphone entry id number + * @param faxNumberId Fax entry id number *

- * @return A valid cellphone instance + * @return A valid fax instance *

* @throws PhoneEntityNotFoundException If the entity was not found */ - DialableMobileNumber findMobileNumberById (Long cellphoneId) throws PhoneEntityNotFoundException; + DialableFaxNumber findFaxNumberById (final Long faxNumberId) throws PhoneEntityNotFoundException; + + /** + * Finds a land-line entry by given id number + *

+ * @param landLineNumberId Land-line entry id number + *

+ * @return A valid land-line instance + *

+ * @throws PhoneEntityNotFoundException If the entity was not found + */ + DialableLandLineNumber findLandLineNumberById (final Long landLineNumberId) throws PhoneEntityNotFoundException; + + /** + * Finds a mobile entry by given id number + *

+ * @param mobileNumberId Mobile entry id number + *

+ * @return A valid mobile instance + *

+ * @throws PhoneEntityNotFoundException If the entity was not found + */ + DialableMobileNumber findMobileNumberById (Long mobileNumberId) throws PhoneEntityNotFoundException; /** * Returns a list of all cell phone numbers -- 2.39.5