From: Roland Haeder Date: Thu, 15 Oct 2015 15:38:34 +0000 (+0200) Subject: Added business method countAllUserSharedAddressbooks() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1211777358e0f1b8f76560cf16972de9b036e540;p=addressbook-lib.git Added business method countAllUserSharedAddressbooks() --- diff --git a/src/org/mxchange/addressbook/model/addressbook/AddressbookSessionBeanRemote.java b/src/org/mxchange/addressbook/model/addressbook/AddressbookSessionBeanRemote.java index fc32310..b4909c0 100644 --- a/src/org/mxchange/addressbook/model/addressbook/AddressbookSessionBeanRemote.java +++ b/src/org/mxchange/addressbook/model/addressbook/AddressbookSessionBeanRemote.java @@ -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 + *

+ * @param user User instance + *

+ * @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. *

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

* @return Address book instance + *

* @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). *

* @param addressbookId Address book id to check + *

* @return Whether the id is valid */ boolean isAddressbookIdUsed (final Long addressbookId);