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