]> git.mxchange.org Git - jfinancials-lib.git/blobdiff - src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java
Continued:
[jfinancials-lib.git] / src / org / mxchange / addressbook / model / shared / SharedAddressbooksSessionBeanRemote.java
index 6d292bcdbed90e988fb2e2ed7ce7af54087a6e68..dc0cee33ee55563a2cd3b0134a6de68ea104049c 100644 (file)
@@ -18,6 +18,9 @@ package org.mxchange.addressbook.model.shared;
 
 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;
 
 /**
@@ -28,6 +31,19 @@ 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>