/*
- * 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
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
* <p>
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
*/
@Remote
public interface SharedAddressbooksSessionBeanRemote extends Serializable {
* <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);
* <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
* Checks if the given user is sharing address books with others
* <p>
* @param user User instance
+ *
* @return Whether the user is sharing address books
*/
Boolean isUserSharingAddressbooks (final User user);