]> git.mxchange.org Git - jcustomer-lib.git/commitdiff
Merge branch 'master' of file:///media/quix0r/INTENSO/Java Project/jshop-ee-lib
authorRoland Haeder <roland@mxchange.org>
Thu, 17 Sep 2015 14:08:29 +0000 (16:08 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 17 Sep 2015 14:08:29 +0000 (16:08 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcore/model/contact/gender/GenderStatefulBeanRemote.java [deleted file]
src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java
src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java

diff --git a/src/org/mxchange/jcore/model/contact/gender/GenderStatefulBeanRemote.java b/src/org/mxchange/jcore/model/contact/gender/GenderStatefulBeanRemote.java
deleted file mode 100644 (file)
index a4ace43..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright (C) 2015 Roland Haeder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcore.model.contact.gender;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.ejb.Remote;
-
-/**
- * A remote interface for static shop data
- *
- * @author Roland Haeder<roland@mxchange.org>
- */
-@Remote
-public interface GenderStatefulBeanRemote extends Serializable {
-
-       /**
-        * Getter for all genders as array
-        *
-        * @return All genders as array
-        */
-       public Gender[] allGenders ();
-
-       /**
-        * All selectable genders. This excludes UNKNOWN
-        *
-        * @return Selectable gender for the user
-        */
-       public List<Gender> selectableGenders ();
-}
index cc83e8849d10c3ad822b36d855c528b5902157b4..54bbf59ecc9de8ba6ec1f0378b8b4eda4533a41a 100644 (file)
@@ -17,7 +17,9 @@
 package org.mxchange.jshopcore.model.basket;
 
 import java.io.Serializable;
+import java.util.List;
 import javax.ejb.Remote;
+import org.mxchange.jshopcore.model.customer.Customer;
 
 /**
  * An interface for a basket bean
@@ -26,4 +28,12 @@ import javax.ejb.Remote;
  */
 @Remote
 public interface BasketSessionBeanRemote extends Serializable {
+
+       /**
+        * Registers the order list of tems with the customer
+        *
+        * @param customer Customer instance
+        * @param itemList Ordered items list
+        */
+       public void registerItems (final Customer customer, final List<AddableBasketItem> itemList);
 }
index f07443e20ec11200cf42b4bcc7ca54c54f53ec7c..0ee29d2f835645741667420f14f5a8c1a9d6cff9 100644 (file)
@@ -18,6 +18,8 @@ package org.mxchange.jshopcore.model.customer;
 
 import java.io.Serializable;
 import javax.ejb.Remote;
+import org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException;
+import org.mxchange.jshopcore.exceptions.QueryNotExecutedException;
 
 /**
  * An interface for customer beans
@@ -26,4 +28,31 @@ import javax.ejb.Remote;
  */
 @Remote
 public interface CustomerSessionBeanRemote extends Serializable {
+
+       /**
+        * Fills given customer instance with all available data
+        *
+        * @param customer Initial Customer instance
+        * @return Prepared Customer instance
+        */
+       public Customer fillCustomerData (final Customer customer);
+
+       /**
+        * Checks if the the given customer instance is already registered
+        *
+        * @param customer Customer instance
+        * @return Whether the customer is already registered
+        * @throws org.mxchange.jshopcore.exceptions.QueryNotExecutedException If the SQL query did not execute
+        */
+       public boolean isReqistered (final Customer customer) throws QueryNotExecutedException;
+
+       /**
+        * Registers the customer and creates a customer number after succesful
+        * persisting.
+        * 
+        * @param customer Initial customer instance
+        * @return Prepared Customer instance
+        * @throws org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException If the customer is already registered.
+        */
+       public Customer registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException;
 }