import java.util.List;
import javax.ejb.Remote;
import org.mxchange.addressbook.exceptions.AddressbookNameAlreadyUsedException;
+import org.mxchange.addressbook.exceptions.AddressbookNotFoundException;
import org.mxchange.addressbook.model.addressbook.entry.AddressbookEntry;
import org.mxchange.jusercore.model.user.User;
@Remote
public interface AddressbookSessionBeanRemote extends Serializable {
+ /**
+ * Some getter for an address book instance from given id number. If the
+ * address book is not found, an exception is thrown.
+ * <p>
+ * @param addressbookId Id number for address book instance
+ * @return Address book instance
+ * @throws org.mxchange.addressbook.exceptions.AddressbookNotFoundException
+ * If the address book cannot be found by given id number
+ * @throws NullPointerException If addressbookId is null
+ * @throws IllegalArgumentException If the id number is below 1
+ */
+ public Addressbook getAddressbookById (final Long addressbookId) throws AddressbookNotFoundException;
+
/**
* Returns a list of all entries of given address book, whether the assigned
* user is the "owner" or "sharer" of the entry.