From: Roland Haeder Date: Fri, 16 Oct 2015 09:02:23 +0000 (+0200) Subject: added business method allSharedAddressbooks() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=22a727155f5cb45f7306981e7523db6fa0ac1459;p=jaddressbook-share-lib.git added business method allSharedAddressbooks() Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java b/src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java index dc0cee3..a134b8c 100644 --- a/src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java +++ b/src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java @@ -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. + *

+ * @param user User instance to get list of shared address books (shares) + * from + * @return List of shares (= shared address book entries) + */ + List allSharedAddressbooks (final User user); + /** * Starts an address book share between currently logged-in user and * assigned user for current address book.