From: Roland Häder Date: Wed, 15 Apr 2020 20:21:06 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=696fa01298acf865eaf1bb7a54dbf6888c118a53;p=jphone-lib.git Continued: - splitted mobile number methods from phone (fax/land-line) numbers Signed-off-by: Roland Häder --- 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 (); - }