From 3363d8854720deffc576fd02075427cf8f92bee9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 27 Apr 2016 11:43:11 +0200 Subject: [PATCH] added business method linkCustomer() --- .../customer/AdminCustomerSessionBeanRemote.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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. -- 2.39.5