From: Roland Haeder Date: Sat, 23 Apr 2016 10:28:35 +0000 (+0200) Subject: Continued rewriting: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dcdc9769f3d125f6dc3b56419f85e85c4f6310d3;p=jjobs-lib.git Continued rewriting: - added new project dependency jaddressbook-lib (remote interfaces) - remove remote interfaces as they have been moved to upper mentioned lib - removed own remote interface as the generic is still enough Signed-off-by: Roland Häder --- diff --git a/lib/jaddressbook-lib.jar b/lib/jaddressbook-lib.jar new file mode 100644 index 0000000..5a076de Binary files /dev/null and b/lib/jaddressbook-lib.jar differ diff --git a/nbproject/project.properties b/nbproject/project.properties index ca7fa8d..3d5f557 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -30,6 +30,8 @@ dist.jar=${dist.dir}/jjobs-lib.jar dist.javadoc.dir=${dist.dir}/javadoc endorsed.classpath= excludes= +file.reference.jaddressbook-core.jar=lib/jaddressbook-core.jar +file.reference.jaddressbook-lib.jar=lib/jaddressbook-lib.jar file.reference.jcontacts-business-core.jar=lib/jcontacts-business-core.jar file.reference.jcontacts-core.jar=lib/jcontacts-core.jar file.reference.jcore-logger-lib.jar=lib/jcore-logger-lib.jar @@ -51,6 +53,8 @@ javac.classpath=\ ${file.reference.jcontacts-business-core.jar}:\ ${file.reference.juser-core.jar}:\ ${file.reference.juser-lib.jar}:\ + ${file.reference.jaddressbook-core.jar}:\ + ${file.reference.jaddressbook-lib.jar}:\ ${libs.javaee-api-7.0.classpath}:\ ${libs.jpa20-persistence.classpath} # Space-separated list of extra javac options @@ -92,6 +96,8 @@ run.test.classpath=\ ${javac.test.classpath}:\ ${build.test.classes.dir} source.encoding=UTF-8 +source.reference.jaddressbook-core.jar=../jaddressbook-core/src/ +source.reference.jaddressbook-lib.jar=../jaddressbook-lib/src/ source.reference.jcontacts-business-core.jar=../jcontacts-business-core/src/ source.reference.jcontacts-core.jar=../jcontacts-core/src/ source.reference.jcore-logger-lib.jar=../jcore-logger-lib/src/ diff --git a/src/org/mxchange/jjobs/model/addressbook/JobsAddressbookSessionBeanRemote.java b/src/org/mxchange/jjobs/model/addressbook/JobsAddressbookSessionBeanRemote.java deleted file mode 100644 index 6cd5780..0000000 --- a/src/org/mxchange/jjobs/model/addressbook/JobsAddressbookSessionBeanRemote.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * 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.jjobs.model.addressbook; - -import java.io.Serializable; -import java.util.List; -import javax.ejb.Remote; -import org.mxchange.jjobs.exceptions.AddressbookNameAlreadyUsedException; -import org.mxchange.jjobs.exceptions.AddressbookNotFoundException; -import org.mxchange.jjobs.model.addressbook.entry.AddressbookEntry; -import org.mxchange.jusercore.model.user.User; - -/** - * A remote session interface for addressbook handling - *

- * @author Roland Haeder - */ -@Remote -public interface JobsAddressbookSessionBeanRemote extends Serializable { - - /** - * Some getter for an address book instance from given id number. If the - * address book is not found, an exception is thrown. - *

- * @param addressbookId Id number for address book instance - *

- * @return Address book instance - *

- * @throws org.mxchange.jjobs.exceptions.AddressbookNotFoundException - * If the address book cannot be found by given id number - * @throws NullPointerException If addressbookId is null - * @throws IllegalArgumentException If the id number is below 1 - */ - Addressbook getAddressbookById (final Long addressbookId) throws AddressbookNotFoundException; - - /** - * Returns a list of all entries of given address book, whether the assigned - * user is the "owner" or "sharer" of the entry. - *

- * @param addressbook Address book instance - *

- * @return List of all entries - */ - List allEntries (final Addressbook addressbook); - - /** - * Some "getter" for a list of address books the logged-in user has created - *

- * @param loggedInUser Logged-in user - *

- * @return List of all address books - */ - List getUsersAddressbookList (final User loggedInUser); - - /** - * Creates given address book by persisting it. A User instance must be set, - * else an exception is thrown. - *

- * @param addressbook Address book instance to create - *

- * @return Updated address book instance - *

- * @throws - * org.mxchange.jjobs.exceptions.AddressbookNameAlreadyUsedException - * If the address book's name has already been used by the user. - */ - Addressbook createAddressbook (final Addressbook addressbook) throws AddressbookNameAlreadyUsedException; - - /** - * Checks whether the given address book id is used (means available). - *

- * @param addressbookId Address book id to check - *

- * @return Whether the id is valid - */ - boolean isAddressbookIdUsed (final Long addressbookId); - - /** - * Checks if the given address book's name is already used by the user. - *

- * @param addressbook Address bok instance to check - *

- * @return Whether the name has already been used by the user - */ - boolean isAddressbookNameUsed (final Addressbook addressbook); - -}