package org.mxchange.jphone.phonenumbers.phone;
import java.io.Serializable;
-import java.util.List;
import javax.ejb.Remote;
-import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
-import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
-import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
/**
* A remote administrative interface for any kind of phone numbers.
@Remote
public interface AdminPhoneSessionBeanRemote extends Serializable {
- /**
- * Returns a list of all cell phone numbers
- * <p>
- * @return All cell phone numbers
- */
- List<DialableCellphoneNumber> allCellphoneNumbers ();
-
- /**
- * 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 ();
-
}
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.cellphone.DialableCellphoneNumber;
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
/**
* A remote interface for phone numbers (any kind)
*/
DialableCellphoneNumber findCellphoneById (Long cellphoneId) throws PhoneEntityNotFoundException;
+ /**
+ * Returns a list of all cell phone numbers
+ * <p>
+ * @return All cell phone numbers
+ */
+ List<DialableCellphoneNumber> allCellphoneNumbers ();
+
+ /**
+ * 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 ();
+
}