From: Roland Häder <roland@mxchange.org>
Date: Tue, 9 Aug 2016 09:17:17 +0000 (+0200)
Subject: Moved to proper interface: (please cherry-pick)
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=59449d781d35c9497b43cf5d1885ba4bbea02b56;p=jphone-lib.git

Moved to proper interface: (please cherry-pick)
- these methods are not administrative, they are general and should be used there
---

diff --git a/src/org/mxchange/jphone/phonenumbers/phone/AdminPhoneSessionBeanRemote.java b/src/org/mxchange/jphone/phonenumbers/phone/AdminPhoneSessionBeanRemote.java
index 557b9b3..cb52fb4 100644
--- a/src/org/mxchange/jphone/phonenumbers/phone/AdminPhoneSessionBeanRemote.java
+++ b/src/org/mxchange/jphone/phonenumbers/phone/AdminPhoneSessionBeanRemote.java
@@ -17,11 +17,7 @@
 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 ();
-
 }
diff --git a/src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java b/src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java
index 914bf7c..8037bc5 100644
--- a/src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java
+++ b/src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java
@@ -17,9 +17,12 @@
 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 ();
+
 }