]> git.mxchange.org Git - jphone-lib.git/commitdiff
Moved to proper interface: (please cherry-pick)
authorRoland Häder <roland@mxchange.org>
Tue, 9 Aug 2016 09:17:17 +0000 (11:17 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 9 Aug 2016 09:17:17 +0000 (11:17 +0200)
- these methods are not administrative, they are general and should be used there

src/org/mxchange/jphone/phonenumbers/phone/AdminPhoneSessionBeanRemote.java
src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java

index 557b9b302b8dc226302a4fe1493893d6b02f2164..cb52fb4c4edf6baa24b74f62ca9338e37e10562b 100644 (file)
 package org.mxchange.jphone.phonenumbers.phone;
 
 import java.io.Serializable;
-import java.util.List;
 import javax.ejb.Remote;
-import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
-import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
-import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
 
 /**
  * A remote administrative interface for any kind of phone numbers.
@@ -31,25 +27,4 @@ import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
 @Remote
 public interface AdminPhoneSessionBeanRemote extends Serializable {
 
-       /**
-        * Returns a list of all cell phone numbers
-        * <p>
-        * @return All cell phone numbers
-        */
-       List<DialableCellphoneNumber> allCellphoneNumbers ();
-
-       /**
-        * Returns a list of all land-line numbers
-        * <p>
-        * @return All land-line numbers
-        */
-       List<DialableLandLineNumber> allLandLineNumbers ();
-
-       /**
-        * Returns a list of all fax numbers
-        * <p>
-        * @return All fax numbers
-        */
-       List<DialableFaxNumber> allFaxNumbers ();
-
 }
index 914bf7c246c95f73bc9e95d91c4dd3760fa77e40..8037bc53f15ae65027ef6ce4440a5a73a7058805 100644 (file)
 package org.mxchange.jphone.phonenumbers.phone;
 
 import java.io.Serializable;
+import java.util.List;
 import javax.ejb.Remote;
 import org.mxchange.jphone.exceptions.PhoneEntityNotFoundException;
 import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
 
 /**
  * A remote interface for phone numbers (any kind)
@@ -40,4 +43,25 @@ public interface PhoneSessionBeanRemote extends Serializable {
         */
        DialableCellphoneNumber findCellphoneById (Long cellphoneId) throws PhoneEntityNotFoundException;
 
+       /**
+        * Returns a list of all cell phone numbers
+        * <p>
+        * @return All cell phone numbers
+        */
+       List<DialableCellphoneNumber> allCellphoneNumbers ();
+
+       /**
+        * Returns a list of all land-line numbers
+        * <p>
+        * @return All land-line numbers
+        */
+       List<DialableLandLineNumber> allLandLineNumbers ();
+
+       /**
+        * Returns a list of all fax numbers
+        * <p>
+        * @return All fax numbers
+        */
+       List<DialableFaxNumber> allFaxNumbers ();
+
 }