]> git.mxchange.org Git - addressbook-lib.git/commitdiff
added business method allSharedAddressbooks()
authorRoland Haeder <roland@mxchange.org>
Fri, 16 Oct 2015 09:02:23 +0000 (11:02 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 16 Oct 2015 09:02:23 +0000 (11:02 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java

index dc0cee33ee55563a2cd3b0134a6de68ea104049c..a134b8ca0c91fe11734e702c6a554dd4a2ed3425 100644 (file)
@@ -17,6 +17,7 @@
 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;
@@ -31,6 +32,17 @@ import org.mxchange.jusercore.model.user.User;
 @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.