]> git.mxchange.org Git - jphone-lib.git/commitdiff
added business methods for fax and land-line numbers (retrival by id number)
authorRoland Häder <roland@mxchange.org>
Tue, 16 Aug 2016 14:02:11 +0000 (16:02 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 16 Aug 2016 14:02:11 +0000 (16:02 +0200)
src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java

index da9a72cf7d8f8ca848816add0378235132b168d2..177087a2639808149f24d958f9e434bc6841bfd3 100644 (file)
@@ -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
         * <p>
-        * @param cellphoneId Cellphone entry id number
+        * @param faxNumberId Fax entry id number
         * <p>
-        * @return A valid cellphone instance
+        * @return A valid fax instance
         * <p>
         * @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
+        * <p>
+        * @param landLineNumberId Land-line entry id number
+        * <p>
+        * @return A valid land-line instance
+        * <p>
+        * @throws PhoneEntityNotFoundException If the entity was not found
+        */
+       DialableLandLineNumber findLandLineNumberById (final Long landLineNumberId) throws PhoneEntityNotFoundException;
+
+       /**
+        * Finds a mobile entry by given id number
+        * <p>
+        * @param mobileNumberId Mobile entry id number
+        * <p>
+        * @return A valid mobile instance
+        * <p>
+        * @throws PhoneEntityNotFoundException If the entity was not found
+        */
+       DialableMobileNumber findMobileNumberById (Long mobileNumberId) throws PhoneEntityNotFoundException;
 
        /**
         * Returns a list of all cell phone numbers