]> git.mxchange.org Git - jcontacts-lib.git/commitdiff
Continued a bit:
authorRoland Haeder <roland@mxchange.org>
Sun, 17 Apr 2016 13:04:55 +0000 (15:04 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 17 Apr 2016 15:28:09 +0000 (17:28 +0200)
- Added remote interface for general contact purposes
- updated jar(s)

lib/jcontacts-core.jar
src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java [new file with mode: 0644]

index b3545d53e6c5c63410a1dfc296bd4984a4616b47..8421ff371fba35b6b49565f9033db9129f9fa80d 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ
diff --git a/src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java b/src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..e79c121
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2016 Roland Haeder<roland@mxchange.org>
+ *
+ * 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.jcontacts.contact;
+
+import java.io.Serializable;
+import javax.ejb.Remote;
+import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
+
+/**
+ * A remote interface for general contact purposes
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+@Remote
+public interface ContactSessionBeanRemote extends Serializable {
+
+       /**
+        * Returns a contact instance which has the given id number.
+        * <p>
+        * @param contactId Contact id
+        * <p>
+        * @return Contact instance
+        * <p>
+        * @throws ContactNotFoundException If the contact was not found
+        */
+       Contact findContactById (final Long contactId) throws ContactNotFoundException;
+
+}