import java.io.Serializable;
import javax.ejb.Remote;
-import org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException;
+import org.mxchange.jphone.exceptions.mobileprovider.MobileProviderAlreadyAddedException;
/**
* A remote interface for mobile provider data retrieval for administrative
* <p>
* @return Updated instance
* <p>
- * @throws org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException Thrown if the mobile provider is already added
+ * @throws org.mxchange.jphone.exceptions.mobileprovider.MobileProviderAlreadyAddedException Thrown if the mobile provider is already added
*/
MobileProvider addMobileProvider (final MobileProvider mobileProvider) throws MobileProviderAlreadyAddedException;
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;
@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>