--- /dev/null
+/*
+ * Copyright (C) 2016, 2017 Roland Häder
+ *
+ * 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.mobileprovider;
+
+import java.io.Serializable;
+import javax.ejb.Remote;
+import org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException;
+
+/**
+ * A remote interface for mobile provider data retrieval for administrative
+ * purposes.
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface AdminMobileProviderSessionBeanRemote extends Serializable {
+
+ /**
+ * Adds given mobile provider to database if not already added. If the
+ * providers dial prefix and country combination is found an exception is
+ * thrown. An updated instance is returned on success.
+ * <p>
+ * @param mobileProvider Mobile provider instance
+ * <p>
+ * @return Updated instance
+ * <p>
+ * @throws org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException Thrown if the mobile provider is already added
+ */
+ MobileProvider addMobileProvider (final MobileProvider mobileProvider) throws MobileProviderAlreadyAddedException;
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2016, 2017 Roland Häder
+ *
+ * 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.mobileprovider;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.ejb.Remote;
+
+/**
+ * A remote interface for mobile provider data retrieval
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface MobileProviderSingletonBeanRemote extends Serializable {
+
+ /**
+ * All registered SMS providers
+ * <p>
+ * @return A list of all SMS providers
+ */
+ List<MobileProvider> allMobileProviders ();
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2016, 2017 Roland Häder
+ *
+ * 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.phone;
+
+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.
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface AdminPhoneSessionBeanRemote extends Serializable {
+
+ /**
+ * Deletes given fax data.
+ * <p>
+ * @param faxNumber Fax data to be deleted
+ */
+ void deleteFaxData (final DialableFaxNumber faxNumber);
+
+ /**
+ * Deletes given land-line data.
+ * <p>
+ * @param landLineNumber Land-line data to be deleted
+ */
+ 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>
+ * @param faxNumber Fax number instance to update
+ * <p>
+ * @return Updated fax number instance
+ */
+ DialableFaxNumber updateFaxData (final DialableFaxNumber faxNumber);
+
+ /**
+ * Updates data from given land-line number instance in database
+ * <p>
+ * @param landLineNumber Land-line number instance to update
+ * <p>
+ * @return Updated landLine number instance
+ */
+ 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);
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2016, 2017 Roland Häder
+ *
+ * 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.phone;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.ejb.Remote;
+import org.mxchange.jphone.exceptions.PhoneEntityNotFoundException;
+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)
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface PhoneSessionBeanRemote extends Serializable {
+
+ /**
+ * Finds a fax entry by given id number
+ * <p>
+ * @param faxNumberId Fax entry id number
+ * <p>
+ * @return A valid fax instance
+ * <p>
+ * @throws PhoneEntityNotFoundException If the entity was not found
+ */
+ DialableFaxNumber findFaxNumberById (final Long faxNumberId) throws PhoneEntityNotFoundException;
+
+ /**
+ * Finds a land-line entry by given id number
+ * <p>
+ * @param landLineNumberId Land-line entry id number
+ * <p>
+ * @return A valid land-line instance
+ * <p>
+ * @throws PhoneEntityNotFoundException If the entity was not found
+ */
+ DialableLandLineNumber findLandLineNumberById (final Long landLineNumberId) throws PhoneEntityNotFoundException;
+
+ /**
+ * Finds a mobile entry by given id number
+ * <p>
+ * @param mobileNumberId Mobile entry id number
+ * <p>
+ * @return A valid mobile instance
+ * <p>
+ * @throws PhoneEntityNotFoundException If the entity was not found
+ */
+ DialableMobileNumber findMobileNumberById (Long mobileNumberId) throws PhoneEntityNotFoundException;
+
+ /**
+ * Returns a list of all cell phone numbers
+ * <p>
+ * @return All cell phone numbers
+ */
+ List<DialableMobileNumber> allMobileNumbers ();
+
+ /**
+ * 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 ();
+
+}
+++ /dev/null
-/*
- * Copyright (C) 2016, 2017 Roland Häder
- *
- * 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.phonenumbers.mobileprovider;
-
-import java.io.Serializable;
-import javax.ejb.Remote;
-import org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException;
-
-/**
- * A remote interface for mobile provider data retrieval for administrative
- * purposes.
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface AdminMobileProviderSessionBeanRemote extends Serializable {
-
- /**
- * Adds given mobile provider to database if not already added. If the
- * providers dial prefix and country combination is found an exception is
- * thrown. An updated instance is returned on success.
- * <p>
- * @param mobileProvider Mobile provider instance
- * <p>
- * @return Updated instance
- * <p>
- * @throws org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException Thrown if the mobile provider is already added
- */
- MobileProvider addMobileProvider (final MobileProvider mobileProvider) throws MobileProviderAlreadyAddedException;
-
-}
+++ /dev/null
-/*
- * Copyright (C) 2016, 2017 Roland Häder
- *
- * 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.phonenumbers.mobileprovider;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.ejb.Remote;
-
-/**
- * A remote interface for mobile provider data retrieval
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface MobileProviderSingletonBeanRemote extends Serializable {
-
- /**
- * All registered SMS providers
- * <p>
- * @return A list of all SMS providers
- */
- List<MobileProvider> allMobileProviders ();
-
-}
+++ /dev/null
-/*
- * Copyright (C) 2016, 2017 Roland Häder
- *
- * 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.phonenumbers.phone;
-
-import java.io.Serializable;
-import javax.ejb.Remote;
-import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
-import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
-import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
-
-/**
- * A remote administrative interface for any kind of phone numbers.
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface AdminPhoneSessionBeanRemote extends Serializable {
-
- /**
- * Deletes given fax data.
- * <p>
- * @param faxNumber Fax data to be deleted
- */
- void deleteFaxData (final DialableFaxNumber faxNumber);
-
- /**
- * Deletes given land-line data.
- * <p>
- * @param landLineNumber Land-line data to be deleted
- */
- 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>
- * @param faxNumber Fax number instance to update
- * <p>
- * @return Updated fax number instance
- */
- DialableFaxNumber updateFaxData (final DialableFaxNumber faxNumber);
-
- /**
- * Updates data from given land-line number instance in database
- * <p>
- * @param landLineNumber Land-line number instance to update
- * <p>
- * @return Updated landLine number instance
- */
- 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);
-
-}
+++ /dev/null
-/*
- * Copyright (C) 2016, 2017 Roland Häder
- *
- * 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.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.fax.DialableFaxNumber;
-import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
-import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
-
-/**
- * A remote interface for phone numbers (any kind)
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface PhoneSessionBeanRemote extends Serializable {
-
- /**
- * Finds a fax entry by given id number
- * <p>
- * @param faxNumberId Fax entry id number
- * <p>
- * @return A valid fax instance
- * <p>
- * @throws PhoneEntityNotFoundException If the entity was not found
- */
- DialableFaxNumber findFaxNumberById (final Long faxNumberId) throws PhoneEntityNotFoundException;
-
- /**
- * Finds a land-line entry by given id number
- * <p>
- * @param landLineNumberId Land-line entry id number
- * <p>
- * @return A valid land-line instance
- * <p>
- * @throws PhoneEntityNotFoundException If the entity was not found
- */
- DialableLandLineNumber findLandLineNumberById (final Long landLineNumberId) throws PhoneEntityNotFoundException;
-
- /**
- * Finds a mobile entry by given id number
- * <p>
- * @param mobileNumberId Mobile entry id number
- * <p>
- * @return A valid mobile instance
- * <p>
- * @throws PhoneEntityNotFoundException If the entity was not found
- */
- DialableMobileNumber findMobileNumberById (Long mobileNumberId) throws PhoneEntityNotFoundException;
-
- /**
- * Returns a list of all cell phone numbers
- * <p>
- * @return All cell phone numbers
- */
- List<DialableMobileNumber> allMobileNumbers ();
-
- /**
- * 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 ();
-
-}