import java.io.Serializable;
import javax.ejb.Remote;
+import org.mxchange.addressbook.exceptions.UserAlreadySharingAddressbookException;
+import org.mxchange.addressbook.model.addressbook.Addressbook;
+import org.mxchange.addressbook.model.addressbook.shared.ShareableAddressbook;
import org.mxchange.jusercore.model.user.User;
/**
@Remote
public interface SharedAddressbooksSessionBeanRemote extends Serializable {
+ /**
+ * Starts an address book share between currently logged-in user and
+ * assigned user for current address book.
+ * <p>
+ * @param sharee User sharee instance
+ * @param addressbook Address book instance
+ * @return Updated share instance
+ * @throws
+ * org.mxchange.addressbook.exceptions.UserAlreadySharingAddressbookException
+ * When the user is already sharing the address book
+ */
+ ShareableAddressbook startSharing (final User sharee, final Addressbook addressbook) throws UserAlreadySharingAddressbookException;
+
/**
* Checks if the given user is sharing address books with others
* <p>