@Remote
public interface AddressbookSessionBeanRemote extends Serializable {
+ /**
+ * Retrieves a list of all users this user is not sharing the given address
+ * book with.
+ * <p>
+ * @param user User instance
+ * @param addressbook Address book instance
+ * <p>
+ * @return List of users
+ */
+ List<User> allUsersNotSharing (final User user, final Addressbook addressbook);
+
/**
* Count all shared address books by given user
* <p>
* <p>
* @return List of all address books
*/
- List<Addressbook> getUsersList (final User loggedInUser);
+ List<Addressbook> getUsersAddressbookList (final User loggedInUser);
/**
* Creates given address book by persisting it. A User instance must be set,