]> git.mxchange.org Git - jcustomer-lib.git/commitdiff
added business method linkCustomer()
authorRoland Häder <roland@mxchange.org>
Wed, 27 Apr 2016 09:43:11 +0000 (11:43 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 27 Apr 2016 09:43:11 +0000 (11:43 +0200)
src/org/mxchange/jcustomercore/model/customer/AdminCustomerSessionBeanRemote.java

index fe0e894546f3f864a00449f626779186ce4bc05b..7ea851ef35d1ed94cef4ed13770f3a6678274188 100644 (file)
@@ -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.
+        * <p>
+        * @param customer Customer with included contact insrtance
+        * <p>
+        * @return Updated customer instance
+        * <p>
+        * @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.