From 1211777358e0f1b8f76560cf16972de9b036e540 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 15 Oct 2015 17:38:34 +0200 Subject: [PATCH] Added business method countAllUserSharedAddressbooks() --- .../addressbook/AddressbookSessionBeanRemote.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); -- 2.39.5