From 59449d781d35c9497b43cf5d1885ba4bbea02b56 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 9 Aug 2016 11:17:17 +0200 Subject: [PATCH] Moved to proper interface: (please cherry-pick) - these methods are not administrative, they are general and should be used there --- .../phone/AdminPhoneSessionBeanRemote.java | 25 ------------------- .../phone/PhoneSessionBeanRemote.java | 24 ++++++++++++++++++ 2 files changed, 24 insertions(+), 25 deletions(-) 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 - *

- * @return All cell phone numbers - */ - List allCellphoneNumbers (); - - /** - * Returns a list of all land-line numbers - *

- * @return All land-line numbers - */ - List allLandLineNumbers (); - - /** - * Returns a list of all fax numbers - *

- * @return All fax numbers - */ - List 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 + *

+ * @return All cell phone numbers + */ + List allCellphoneNumbers (); + + /** + * Returns a list of all land-line numbers + *

+ * @return All land-line numbers + */ + List allLandLineNumbers (); + + /** + * Returns a list of all fax numbers + *

+ * @return All fax numbers + */ + List allFaxNumbers (); + } -- 2.39.5