]> git.mxchange.org Git - jphone-lib.git/commitdiff
Added more business methods for deleting/updating fax/land-line numbers
authorRoland Häder <roland@mxchange.org>
Tue, 23 Aug 2016 10:38:22 +0000 (12:38 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 23 Aug 2016 10:38:22 +0000 (12:38 +0200)
src/org/mxchange/jphone/phonenumbers/phone/AdminPhoneSessionBeanRemote.java

index 7ecb759282f4bcb56ded244c11a0750dcfe60240..809f2a87c80cf42e3966058fd61ffca1063195a7 100644 (file)
@@ -18,6 +18,8 @@ package org.mxchange.jphone.phonenumbers.phone;
 
 import java.io.Serializable;
 import javax.ejb.Remote;
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
 import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
 
 /**
@@ -29,19 +31,51 @@ import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
 public interface AdminPhoneSessionBeanRemote extends Serializable {
 
        /**
-        * Deletes given cell phone data.
+        * Deletes given fax data.
         * <p>
-        * @param cellPhoneNumber Cell phone data to be deleted
+        * @param faxNumber Fax data to be deleted
         */
-       void deleteMobileData (final DialableMobileNumber cellPhoneNumber);
+       void deleteFaxData (final DialableFaxNumber faxNumber);
 
        /**
-        * Updates data from given cell phone number instance in database
+        * Deletes given land-line data.
         * <p>
-        * @param cellPhoneNumber Cell phone number instance to update
+        * @param landLineNumber Land-line data to be deleted
+        */
+       void deleteLandLineData (final DialableLandLineNumber landLineNumber);
+
+       /**
+        * Deletes given mobile data.
+        * <p>
+        * @param mobileNumber Mobile data to be deleted
+        */
+       void deleteMobileData (final DialableMobileNumber mobileNumber);
+
+       /**
+        * Updates data from given fax number instance in database
+        * <p>
+        * @param faxNumber Fax number instance to update
+        * <p>
+        * @return Updated fax number instance
+        */
+       DialableFaxNumber updateFaxData (final DialableFaxNumber faxNumber);
+
+       /**
+        * Updates data from given land-line number instance in database
+        * <p>
+        * @param landLineNumber Land-line number instance to update
+        * <p>
+        * @return Updated landLine number instance
+        */
+       DialableLandLineNumber updateLandLineData (final DialableLandLineNumber landLineNumber);
+
+       /**
+        * Updates data from given mobile number instance in database
+        * <p>
+        * @param mobileNumber Mobile number instance to update
         * <p>
-        * @return Updated cell phone number instance
+        * @return Updated mobile number instance
         */
-       DialableMobileNumber updateMobileData (final DialableMobileNumber cellPhoneNumber);
+       DialableMobileNumber updateMobileData (final DialableMobileNumber mobileNumber);
 
 }