]> git.mxchange.org Git - jcontacts-lib.git/commitdiff
Continued a bit:
authorRoland Haeder <roland@mxchange.org>
Sun, 17 Apr 2016 12:09:53 +0000 (14:09 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 17 Apr 2016 12:26:19 +0000 (14:26 +0200)
- added remote interface for administrative contact's phone purposes
- added new dependency jphone-core.jar
- updated jar(s)

lib/jcontacts-core.jar
lib/jphone-core.jar [new file with mode: 0644]
nbproject/project.properties
src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java [new file with mode: 0644]

index 5a0bec21056569a658179ab359e95c264fc9c390..b3545d53e6c5c63410a1dfc296bd4984a4616b47 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ
diff --git a/lib/jphone-core.jar b/lib/jphone-core.jar
new file mode 100644 (file)
index 0000000..4121511
Binary files /dev/null and b/lib/jphone-core.jar differ
index 8d37da345c816630231ab06708b5a218dfd7a3f5..7e0c9d40145ba72cad41723731c44c7ce7c10f72 100644 (file)
@@ -32,6 +32,7 @@ endorsed.classpath=
 excludes=
 file.reference.jcontacts-business-core.jar=lib/jcontacts-business-core.jar
 file.reference.jcontacts-core.jar=lib/jcontacts-core.jar
+file.reference.jphone-core.jar=lib/jphone-core.jar
 includes=**
 jar.archive.disabled=${jnlp.enabled}
 jar.compress=false
@@ -39,10 +40,12 @@ jar.index=${jnlp.enabled}
 javac.classpath=\
     ${file.reference.jcontacts-core.jar}:\
     ${file.reference.jcontacts-business-core.jar}:\
+    ${file.reference.jphone-core.jar}:\
     ${libs.javaee-api-7.0.classpath}
 # Space-separated list of extra javac options
 javac.compilerargs=-Xlint:unchecked -Xlint:deprecation
 javac.deprecation=true
+javac.external.vm=false
 javac.processorpath=\
     ${javac.classpath}
 javac.source=1.7
@@ -93,5 +96,6 @@ run.test.classpath=\
 source.encoding=UTF-8
 source.reference.jcontacts-business-core.jar=../jcontacts-business-core/src/
 source.reference.jcontacts-core.jar=../jcontacts-core/src/
+source.reference.jphone-core.jar=../jphone-core/src/
 src.dir=src
 test.src.dir=test
diff --git a/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java b/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..2112e04
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * 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.phone;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.ejb.Remote;
+import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
+
+/**
+ * A remote interface for administrative purposes around contact's phone numbers
+ * (any type).
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+@Remote
+public interface AdminContactsPhoneSessionBeanRemote extends Serializable {
+
+       /**
+        * A list of all contacts having given cellphone instance linked.
+        * <p>
+        * @param cellPhone Cellphone instance
+        * <p>
+        * @return A list of all linked contacts
+        */
+       List<Contact> allContacts (final DialableCellphoneNumber cellPhone);
+
+}