]> git.mxchange.org Git - jphone-lib.git/commitdiff
Added new remote interface (is session okay?) with a business method for finding...
authorRoland Haeder <roland@mxchange.org>
Sun, 17 Apr 2016 10:36:15 +0000 (12:36 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 17 Apr 2016 10:36:15 +0000 (12:36 +0200)
lib/jphone-core.jar
src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java [new file with mode: 0644]

index b880b877b91245fa7c87f027511432060a1f9144..412151183b1e8df79a1bfcf16d84ed0aee672d82 100644 (file)
Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ
diff --git a/src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java b/src/org/mxchange/jphone/phonenumbers/phone/PhoneSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..914bf7c
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2016 Roland Haeder
+ *
+ * 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.exceptions.PhoneEntityNotFoundException;
+import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
+
+/**
+ * A remote interface for phone numbers (any kind)
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+@Remote
+public interface PhoneSessionBeanRemote extends Serializable {
+
+       /**
+        * Finds a cellphone entry by given id number
+        * <p>
+        * @param cellphoneId Cellphone entry id number
+        * <p>
+        * @return A valid cellphone instance
+        * <p>
+        * @throws PhoneEntityNotFoundException If the entity was not found
+        */
+       DialableCellphoneNumber findCellphoneById (Long cellphoneId) throws PhoneEntityNotFoundException;
+
+}