X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Faddressbook%2Fmodel%2Fshared%2FSharedAddressbooksSessionBeanRemote.java;h=c0e0bc088ca883408c43b10d90d703b8e03dc963;hb=2c37173f44de9a51df0d6d0f199f0b4bdb2a1983;hp=a134b8ca0c91fe11734e702c6a554dd4a2ed3425;hpb=22a727155f5cb45f7306981e7523db6fa0ac1459;p=addressbook-lib.git diff --git a/src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java b/src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java index a134b8c..c0e0bc0 100644 --- a/src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java +++ b/src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Roland Haeder + * Copyright (C) 2016 Roland Haeder * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,15 +19,15 @@ 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; -import org.mxchange.addressbook.model.addressbook.shared.ShareableAddressbook; +import org.mxchange.jaddressbookcore.exceptions.UserAlreadySharingAddressbookException; +import org.mxchange.jaddressbookcore.model.addressbook.Addressbook; +import org.mxchange.jaddressbookcore.model.addressbook.shared.ShareableAddressbook; import org.mxchange.jusercore.model.user.User; /** * A remote interface for sharing address books *

- * @author Roland Haeder + * @author Roland Haeder */ @Remote public interface SharedAddressbooksSessionBeanRemote extends Serializable { @@ -39,6 +39,7 @@ public interface SharedAddressbooksSessionBeanRemote extends Serializable { *

* @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); @@ -49,7 +50,9 @@ public interface SharedAddressbooksSessionBeanRemote extends Serializable { *

* @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 @@ -60,6 +63,7 @@ public interface SharedAddressbooksSessionBeanRemote extends Serializable { * Checks if the given user is sharing address books with others *

* @param user User instance + * * @return Whether the user is sharing address books */ Boolean isUserSharingAddressbooks (final User user);