From 22a727155f5cb45f7306981e7523db6fa0ac1459 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 16 Oct 2015 11:02:23 +0200 Subject: [PATCH] =?utf8?q?added=20business=20method=20allSharedAddressbook?= =?utf8?q?s()=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../shared/SharedAddressbooksSessionBeanRemote.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java b/src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java index dc0cee33..a134b8ca 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. -- 2.39.5