From 696fa01298acf865eaf1bb7a54dbf6888c118a53 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 15 Apr 2020 22:21:06 +0200 Subject: [PATCH] Continued: - splitted mobile number methods from phone (fax/land-line) numbers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../mobile/AdminMobileSessionBeanRemote.java | 46 +++++++++++++++++++ .../mobile/MobileSessionBeanRemote.java | 38 +++++++++++++++ .../phone/AdminPhoneSessionBeanRemote.java | 17 ------- .../phone/PhoneSessionBeanRemote.java | 8 ---- 4 files changed, 84 insertions(+), 25 deletions(-) create mode 100644 src/org/mxchange/jphone/model/phonenumbers/mobile/AdminMobileSessionBeanRemote.java create mode 100644 src/org/mxchange/jphone/model/phonenumbers/mobile/MobileSessionBeanRemote.java diff --git a/src/org/mxchange/jphone/model/phonenumbers/mobile/AdminMobileSessionBeanRemote.java b/src/org/mxchange/jphone/model/phonenumbers/mobile/AdminMobileSessionBeanRemote.java new file mode 100644 index 0000000..59ac11f --- /dev/null +++ b/src/org/mxchange/jphone/model/phonenumbers/mobile/AdminMobileSessionBeanRemote.java @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2016 - 2020 Free Software Foundation + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jphone.model.phonenumbers.mobile; + +import java.io.Serializable; +import javax.ejb.Remote; + +/** + * A remote administrative interface for any kind of phone numbers. + *

+ * @author Roland Häder + */ +@Remote +public interface AdminMobileSessionBeanRemote extends Serializable { + + /** + * Deletes given mobile data. + *

+ * @param mobileNumber Mobile data to be deleted + */ + void deleteMobileData (final DialableMobileNumber mobileNumber); + + /** + * Updates data from given mobile number instance in database + *

+ * @param mobileNumber Mobile number instance to update + *

+ * @return Updated mobile number instance + */ + DialableMobileNumber updateMobileData (final DialableMobileNumber mobileNumber); + +} diff --git a/src/org/mxchange/jphone/model/phonenumbers/mobile/MobileSessionBeanRemote.java b/src/org/mxchange/jphone/model/phonenumbers/mobile/MobileSessionBeanRemote.java new file mode 100644 index 0000000..5f8a9a7 --- /dev/null +++ b/src/org/mxchange/jphone/model/phonenumbers/mobile/MobileSessionBeanRemote.java @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2016 - 2020 Free Software Foundation + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jphone.model.phonenumbers.mobile; + +import java.io.Serializable; +import java.util.List; +import javax.ejb.Remote; + +/** + * A remote interface for phone numbers (any kind) + *

+ * @author Roland Häder + */ +@Remote +public interface MobileSessionBeanRemote extends Serializable { + + /** + * Returns a list of all cell phone numbers + *

+ * @return All cell phone numbers + */ + List fetchAllMobileNumbers (); + +} diff --git a/src/org/mxchange/jphone/model/phonenumbers/phone/AdminPhoneSessionBeanRemote.java b/src/org/mxchange/jphone/model/phonenumbers/phone/AdminPhoneSessionBeanRemote.java index a188a4f..1f1f6f9 100644 --- a/src/org/mxchange/jphone/model/phonenumbers/phone/AdminPhoneSessionBeanRemote.java +++ b/src/org/mxchange/jphone/model/phonenumbers/phone/AdminPhoneSessionBeanRemote.java @@ -20,7 +20,6 @@ import java.io.Serializable; import javax.ejb.Remote; import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber; import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber; -import org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber; /** * A remote administrative interface for any kind of phone numbers. @@ -44,13 +43,6 @@ public interface AdminPhoneSessionBeanRemote extends Serializable { */ void deleteLandLineData (final DialableLandLineNumber landLineNumber); - /** - * Deletes given mobile data. - *

- * @param mobileNumber Mobile data to be deleted - */ - void deleteMobileData (final DialableMobileNumber mobileNumber); - /** * Updates data from given fax number instance in database *

@@ -69,13 +61,4 @@ public interface AdminPhoneSessionBeanRemote extends Serializable { */ DialableLandLineNumber updateLandLineData (final DialableLandLineNumber landLineNumber); - /** - * Updates data from given mobile number instance in database - *

- * @param mobileNumber Mobile number instance to update - *

- * @return Updated mobile number instance - */ - DialableMobileNumber updateMobileData (final DialableMobileNumber mobileNumber); - } diff --git a/src/org/mxchange/jphone/model/phonenumbers/phone/PhoneSessionBeanRemote.java b/src/org/mxchange/jphone/model/phonenumbers/phone/PhoneSessionBeanRemote.java index 3a6194b..b849536 100644 --- a/src/org/mxchange/jphone/model/phonenumbers/phone/PhoneSessionBeanRemote.java +++ b/src/org/mxchange/jphone/model/phonenumbers/phone/PhoneSessionBeanRemote.java @@ -21,7 +21,6 @@ import java.util.List; import javax.ejb.Remote; import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber; import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber; -import org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber; /** * A remote interface for phone numbers (any kind) @@ -45,11 +44,4 @@ public interface PhoneSessionBeanRemote extends Serializable { */ List fetchAllLandLineNumbers (); - /** - * Returns a list of all cell phone numbers - *

- * @return All cell phone numbers - */ - List fetchAllMobileNumbers (); - } -- 2.39.5