]> git.mxchange.org Git - jaddressbook-share-lib.git/commitdiff
Added business method countAllUserSharedAddressbooks()
authorRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 15:38:34 +0000 (17:38 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 15:38:34 +0000 (17:38 +0200)
src/org/mxchange/addressbook/model/addressbook/AddressbookSessionBeanRemote.java

index fc3231091225e99dafbbf9c32ccad4cdbac4af79..b4909c0bec198a1a4f75d8737e37eefb85bf1a9f 100644 (file)
@@ -32,12 +32,23 @@ import org.mxchange.jusercore.model.user.User;
 @Remote
 public interface AddressbookSessionBeanRemote extends Serializable {
 
+       /**
+        * Count all shared address books by given user
+        * <p>
+        * @param user User instance
+        * <p>
+        * @return Count of all user's shared address books
+        */
+       Integer countAllUserSharedAddressbooks (final User user);
+
        /**
         * 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 org.mxchange.addressbook.exceptions.AddressbookNotFoundException
         * If the address book cannot be found by given id number
         * @throws NullPointerException If addressbookId is null
@@ -82,6 +93,7 @@ public interface AddressbookSessionBeanRemote extends Serializable {
         * Checks whether the given address book id is used (means available).
         * <p>
         * @param addressbookId Address book id to check
+        * <p>
         * @return Whether the id is valid
         */
        boolean isAddressbookIdUsed (final Long addressbookId);