From: Roland Haeder Date: Sun, 17 Apr 2016 12:09:53 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f5bce6a30a85e325e52ac57d2d1f59288da6b0f1;p=jcontacts-lib.git Continued a bit: - added remote interface for administrative contact's phone purposes - added new dependency jphone-core.jar - updated jar(s) --- diff --git a/lib/jcontacts-core.jar b/lib/jcontacts-core.jar index 5a0bec2..b3545d5 100644 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 index 0000000..4121511 Binary files /dev/null and b/lib/jphone-core.jar differ diff --git a/nbproject/project.properties b/nbproject/project.properties index 8d37da3..7e0c9d4 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -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 index 0000000..2112e04 --- /dev/null +++ b/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java @@ -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 . + */ +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). + *

+ * @author Roland Haeder + */ +@Remote +public interface AdminContactsPhoneSessionBeanRemote extends Serializable { + + /** + * A list of all contacts having given cellphone instance linked. + *

+ * @param cellPhone Cellphone instance + *

+ * @return A list of all linked contacts + */ + List allContacts (final DialableCellphoneNumber cellPhone); + +}