package org.mxchange.addressbook.model.shared;
import java.io.Serializable;
+import java.util.List;
import javax.ejb.Remote;
import org.mxchange.addressbook.exceptions.UserAlreadySharingAddressbookException;
import org.mxchange.addressbook.model.addressbook.Addressbook;
@Remote
public interface SharedAddressbooksSessionBeanRemote extends Serializable {
+ /**
+ * Retrieves a list of all user's shared address books. The list contains
+ * only the shares. But the address books and sharee can be easily
+ * extracted.
+ * <p>
+ * @param user User instance to get list of shared address books (shares)
+ * from
+ * @return List of shares (= shared address book entries)
+ */
+ List<ShareableAddressbook> allSharedAddressbooks (final User user);
+
/**
* Starts an address book share between currently logged-in user and
* assigned user for current address book.