--- /dev/null
+/*
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+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.
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface AdminMobileSessionBeanRemote extends Serializable {
+
+ /**
+ * Deletes given mobile data.
+ * <p>
+ * @param mobileNumber Mobile data to be deleted
+ */
+ void deleteMobileData (final DialableMobileNumber mobileNumber);
+
+ /**
+ * Updates data from given mobile number instance in database
+ * <p>
+ * @param mobileNumber Mobile number instance to update
+ * <p>
+ * @return Updated mobile number instance
+ */
+ DialableMobileNumber updateMobileData (final DialableMobileNumber mobileNumber);
+
+}
--- /dev/null
+/*
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+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)
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface MobileSessionBeanRemote extends Serializable {
+
+ /**
+ * Returns a list of all cell phone numbers
+ * <p>
+ * @return All cell phone numbers
+ */
+ List<DialableMobileNumber> fetchAllMobileNumbers ();
+
+}
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.
*/
void deleteLandLineData (final DialableLandLineNumber landLineNumber);
- /**
- * Deletes given mobile data.
- * <p>
- * @param mobileNumber Mobile data to be deleted
- */
- void deleteMobileData (final DialableMobileNumber mobileNumber);
-
/**
* Updates data from given fax number instance in database
* <p>
*/
DialableLandLineNumber updateLandLineData (final DialableLandLineNumber landLineNumber);
- /**
- * Updates data from given mobile number instance in database
- * <p>
- * @param mobileNumber Mobile number instance to update
- * <p>
- * @return Updated mobile number instance
- */
- DialableMobileNumber updateMobileData (final DialableMobileNumber mobileNumber);
-
}
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)
*/
List<DialableLandLineNumber> fetchAllLandLineNumbers ();
- /**
- * Returns a list of all cell phone numbers
- * <p>
- * @return All cell phone numbers
- */
- List<DialableMobileNumber> fetchAllMobileNumbers ();
-
}