]> git.mxchange.org Git - jaddressbook-lib.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 22 Apr 2020 14:53:40 +0000 (16:53 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 22 Apr 2020 14:53:40 +0000 (16:53 +0200)
- added missing JPA 2.1 API jar
- removed no longer wanted/needed methods
- renamed allFoos() to fetchAllFoos()

Signed-off-by: Roland Häder <roland@mxchange.org>
lib/jpa20-persistence/javax.persistence_2.1.0.v201304241213.jar [new file with mode: 0644]
src/org/mxchange/addressbook/model/addressbook/AddressbookSessionBeanRemote.java

diff --git a/lib/jpa20-persistence/javax.persistence_2.1.0.v201304241213.jar b/lib/jpa20-persistence/javax.persistence_2.1.0.v201304241213.jar
new file mode 100644 (file)
index 0000000..a4dd386
Binary files /dev/null and b/lib/jpa20-persistence/javax.persistence_2.1.0.v201304241213.jar differ
index 8cc597c508ebc3c10371a01ea41ccdd818b01df9..7b5efb0ad2e65f3341c6dc6177fdfdb1ac7f4af9 100644 (file)
@@ -20,7 +20,6 @@ import java.io.Serializable;
 import java.util.List;
 import javax.ejb.Remote;
 import org.mxchange.jaddressbook.exceptions.AddressbookNameAlreadyUsedException;
-import org.mxchange.jaddressbook.exceptions.AddressbookNotFoundException;
 import org.mxchange.jaddressbook.model.addressbook.Addressbook;
 import org.mxchange.jaddressbook.model.addressbook.entry.AddressbookEntry;
 import org.mxchange.jusercore.model.user.User;
@@ -33,21 +32,6 @@ import org.mxchange.jusercore.model.user.User;
 @Remote
 public interface AddressbookSessionBeanRemote extends Serializable {
 
-       /**
-        * Some getter for an address book instance from given id number. If the
-        * address book is not found, an exception is thrown.
-        * <p>
-        * @param addressbookId Id number for address book instance
-        * <p>
-        * @return Address book instance
-        * <p>
-        * @throws 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.
@@ -56,7 +40,7 @@ public interface AddressbookSessionBeanRemote extends Serializable {
         * <p>
         * @return List of all entries
         */
-       List<AddressbookEntry> allEntries (final Addressbook addressbook);
+       List<AddressbookEntry> fetchAllAddressbookEntries (final Addressbook addressbook);
 
        /**
         * Some "getter" for a list of address books the logged-in user has created
@@ -65,7 +49,7 @@ public interface AddressbookSessionBeanRemote extends Serializable {
         * <p>
         * @return List of all address books
         */
-       List<Addressbook> getUsersAddressbookList (final User loggedInUser);
+       List<Addressbook> fetchAddressbooksByUser (final User loggedInUser);
 
        /**
         * Creates given address book by persisting it. A User instance must be set,
@@ -89,13 +73,4 @@ public interface AddressbookSessionBeanRemote extends Serializable {
         */
        boolean isAddressbookIdUsed (final Long addressbookId);
 
-       /**
-        * Checks if the given address book's name is already used by the user.
-        * <p>
-        * @param addressbook Address bok instance to check
-        * <p>
-        * @return Whether the name has already been used by the user
-        */
-       boolean isAddressbookNameUsed (final Addressbook addressbook);
-
 }