@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.