From: Roland Häder Date: Wed, 27 Apr 2016 09:43:11 +0000 (+0200) Subject: added business method linkCustomer() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3363d8854720deffc576fd02075427cf8f92bee9;p=jcustomer-lib.git added business method linkCustomer() --- diff --git a/src/org/mxchange/jcustomercore/model/customer/AdminCustomerSessionBeanRemote.java b/src/org/mxchange/jcustomercore/model/customer/AdminCustomerSessionBeanRemote.java index fe0e894..7ea851e 100644 --- a/src/org/mxchange/jcustomercore/model/customer/AdminCustomerSessionBeanRemote.java +++ b/src/org/mxchange/jcustomercore/model/customer/AdminCustomerSessionBeanRemote.java @@ -30,6 +30,20 @@ import org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException; @Remote public interface AdminCustomerSessionBeanRemote extends Serializable { + /** + * Links customer instance with included contact instance and returns an + * updated customer instance after success. + *

+ * @param customer Customer with included contact insrtance + *

+ * @return Updated customer instance + *

+ * @throws + * org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException + * If the customer is already there + */ + Customer linkCustomer (final Customer customer) throws CustomerAlreadyRegisteredException; + /** * Returns a list of all customers. This method should be used from * administrative beans.