]> git.mxchange.org Git - jcustomer-lib.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Tue, 8 Sep 2015 20:45:02 +0000 (22:45 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 8 Sep 2015 20:45:02 +0000 (22:45 +0200)
- had to put all classes and interfaces in one package jar-wide ... :-(
- updated jcore.jar, jcoreee.jar
Signed-off-by:Roland Häder <roland@mxchange.org>

18 files changed:
lib/jcore.jar
lib/jcoreee.jar
lib/jshop-core.jar
nbproject/build-impl.xml
nbproject/genfiles.properties
nbproject/project.properties
nbproject/project.xml
src/org/mxchange/jcore/model/contact/gender/GenderSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jshopejb/beans/remote/basket/BasketSessionBeanRemote.java [deleted file]
src/org/mxchange/jshopejb/beans/remote/customer/CustomerSessionBeanRemote.java [deleted file]
src/org/mxchange/jshopejb/beans/remote/data/ShopDataBeanRemote.java [deleted file]
src/org/mxchange/jshopejb/beans/remote/shop/ShopSessionBeanRemote.java [deleted file]

index 7318d475bd60750789a5af0d8c58471ad7d4f1d8..217c364fc77db0e54d31c837de5517fdce382fb0 100644 (file)
Binary files a/lib/jcore.jar and b/lib/jcore.jar differ
index f479cd85f681296c81d035819d67d492850194ec..9f0039fef5c5783f9feefb340c1781b104232d23 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
index 9965f385e61d36baf52fba5fce71f241d62a54ea..3772ba4f64521091bb8321d30622e5475449b72d 100644 (file)
Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ
index 4c1276d0cfff1884d91c4ae4fc56a218f1003b03..f65ba54e0f5c84848ecda7cb4afc03fd95f65737 100644 (file)
@@ -921,6 +921,14 @@ is divided into following sections:
         <propertyfile file="${built-jar.properties}">
             <entry key="${basedir}" value=""/>
         </propertyfile>
+        <antcall target="-maybe-call-dep">
+            <param name="call.built.properties" value="${built-jar.properties}"/>
+            <param location="${project.jcore-ee-logger}" name="call.subproject"/>
+            <param location="${project.jcore-ee-logger}/build.xml" name="call.script"/>
+            <param name="call.target" value="jar"/>
+            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
+            <param name="transfer.not.archive.disabled" value="true"/>
+        </antcall>
     </target>
     <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
     <target depends="init" name="-check-automatic-build">
@@ -1406,6 +1414,14 @@ is divided into following sections:
         <propertyfile file="${built-clean.properties}">
             <entry key="${basedir}" value=""/>
         </propertyfile>
+        <antcall target="-maybe-call-dep">
+            <param name="call.built.properties" value="${built-clean.properties}"/>
+            <param location="${project.jcore-ee-logger}" name="call.subproject"/>
+            <param location="${project.jcore-ee-logger}/build.xml" name="call.script"/>
+            <param name="call.target" value="clean"/>
+            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
+            <param name="transfer.not.archive.disabled" value="true"/>
+        </antcall>
     </target>
     <target depends="init" name="-do-clean">
         <delete dir="${build.dir}"/>
index bdd86e7b24f3abd41f5cf8ba98adf7c7909b0c31..9431885f4a420d2c1c97c5d76e622848a141a614 100644 (file)
@@ -1,8 +1,8 @@
-build.xml.data.CRC32=4a3637b0
+build.xml.data.CRC32=890671fc
 build.xml.script.CRC32=7a07e688
 build.xml.stylesheet.CRC32=8064a381@1.75.2.48
 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
 # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
-nbproject/build-impl.xml.data.CRC32=4a3637b0
-nbproject/build-impl.xml.script.CRC32=4eec5454
+nbproject/build-impl.xml.data.CRC32=890671fc
+nbproject/build-impl.xml.script.CRC32=d964ec0e
 nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48
index dedc5903ef0692a382bbd566eb2653f3faad74f1..c5fb60c57151cb6e1e88426964329b2366d9f32b 100644 (file)
@@ -39,6 +39,7 @@ jar.compress=false
 jar.index=${jnlp.enabled}
 javac.classpath=\
     ${file.reference.jcore.jar}:\
+    ${reference.jcore-ee-logger.jar}:\
     ${file.reference.jcoreee.jar}:\
     ${file.reference.jshop-core.jar}:\
     ${libs.javaee-api-7.0.classpath}
@@ -81,7 +82,9 @@ manifest.custom.permissions=
 meta.inf.dir=${src.dir}/META-INF
 mkdist.disabled=true
 platform.active=default_platform
+project.jcore-ee-logger=../jcore-ee-logger
 project.license=gpl30
+reference.jcore-ee-logger.jar=${project.jcore-ee-logger}/dist/jcore-ee-logger.jar
 run.classpath=\
     ${javac.classpath}:\
     ${build.classes.dir}
index 1f83014a9ecb5bc2539af8dba83c9442890d00fd..9cd0bf1c1f94c2745811a6d2c9a931a72d68aefa 100644 (file)
         <libraries xmlns="http://www.netbeans.org/ns/ant-project-libraries/1">
             <definitions>./lib/nblibraries.properties</definitions>
         </libraries>
+        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
+            <reference>
+                <foreign-project>jcore-ee-logger</foreign-project>
+                <artifact-type>jar</artifact-type>
+                <script>build.xml</script>
+                <target>jar</target>
+                <clean-target>clean</clean-target>
+                <id>jar</id>
+            </reference>
+        </references>
     </configuration>
 </project>
diff --git a/src/org/mxchange/jcore/model/contact/gender/GenderSessionBeanRemote.java b/src/org/mxchange/jcore/model/contact/gender/GenderSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..3cdbb49
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * 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
+ */
+@Remote
+public interface GenderSessionBeanRemote 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 ();
+}
diff --git a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..de3f3a1
--- /dev/null
@@ -0,0 +1,88 @@
+/*
+ * 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.jshopcore.model.basket;
+
+import java.io.Serializable;
+import java.rmi.RemoteException;
+import java.util.Map;
+import javax.ejb.Remote;
+
+/**
+ * An interface for a basket bean
+ *
+ * @author Roland Haeder
+ */
+@Remote
+public interface BasketSessionBeanRemote extends Serializable {
+       /**
+        * Adds given item instance to this basket
+        * @param item Item instance to add
+        * @throws java.rmi.RemoteException If something bad happens
+        */
+       public void addItem (final AddableBasketItem item) throws RemoteException;
+
+       /**
+        * Adds given item instance to basket. Remember that the product instance
+        * itself is not added. Instead a AddableBasketItem is created which holds
+        * information about amoutn and item type.
+        *
+        * @param item Item instance
+        * @throws java.rmi.RemoteException If something bad happens
+        */
+       public void addToBasket (final AddableBasketItem item) throws RemoteException;
+
+       /**
+        * Checks if the basket is empty
+        *
+        * @return Whether the basket is empty
+        * @throws java.rmi.RemoteException If something bad happens
+        */
+       public boolean isEmpty () throws RemoteException;
+
+       /**
+        * Checks whether the given product as already been added. If the product's
+        * item id number was found in basket, the corresponding item instance will be set
+        *
+        * @param item Item instance to check
+        * @return Whether the given item has been found
+        * @throws java.rmi.RemoteException If something bad happens
+        */
+       public boolean isAdded (final AddableBasketItem item) throws RemoteException;
+
+       /**
+        * Some "getter" for all entries in this basket
+        *
+        * @return Map on all basket items
+        * @throws java.rmi.RemoteException If something bad happens
+        */
+       public Map<Long, AddableBasketItem> getAll () throws RemoteException;
+
+       /**
+        * Getter for last entry
+        *
+        * @return Last added item in basket
+        * @throws java.rmi.RemoteException If something bad happens
+        */
+       public AddableBasketItem getLast () throws RemoteException;
+
+       /**
+        * Getter for last num rows
+        * 
+        * @return Last num rows
+        */
+       public int getLastNumRows ();
+}
diff --git a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java b/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java
new file mode 100644 (file)
index 0000000..9958060
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * 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.jshopcore.model.category;
+
+import java.io.Serializable;
+import java.rmi.RemoteException;
+import javax.ejb.Remote;
+import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
+
+/**
+ * An interface for categories for "ADMIN" role
+ *.
+ * @author Roland Haeder
+ */
+@Remote
+public interface AdminCategorySessionBeanRemote extends Serializable {
+
+       /**
+        * Adds given category data from request to database
+        *
+        * @param category Category instance
+        * @throws java.rmi.RemoteException If something unexpected happened
+        * @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given title is already used
+        */
+       public void doAdminAddCategory (final Category category) throws RemoteException, CategoryTitleAlreadyUsedException;
+}
diff --git a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java b/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java
new file mode 100644 (file)
index 0000000..f5f157c
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * 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.jshopcore.model.category;
+
+import java.io.Serializable;
+import java.rmi.RemoteException;
+import java.util.Deque;
+import javax.ejb.Remote;
+
+/**
+ * A remote-call interface for the shop
+ *
+ * @author Roland Haeder
+ */
+@Remote
+public interface CategorySessionBeanRemote extends Serializable {
+
+       /**
+        * Some "getter" for a linked list of all categories
+        *
+        * @return All categories
+        * @throws java.rmi.RemoteException If anything went wrong
+        */
+       public Deque<Category> getAllCategories () throws RemoteException;
+}
diff --git a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..57cd728
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * 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.jshopcore.model.customer;
+
+import java.io.Serializable;
+import javax.ejb.Remote;
+
+/**
+ * An interface for customer beans
+ *
+ * @author Roland Haeder
+ */
+@Remote
+public interface CustomerSessionBeanRemote extends Serializable {
+}
diff --git a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..b07c3c5
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ * 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.jshopcore.model.product;
+
+import java.io.Serializable;
+import java.rmi.RemoteException;
+import java.util.Deque;
+import javax.ejb.Remote;
+import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
+
+/**
+ * Product interface for "ADMIN" role
+ *
+ * @author Roland Haeder
+ */
+@Remote
+public interface AdminProductSessionBeanRemote extends Serializable {
+
+       /**
+        * Some "getter" for a linked list of all products
+        *
+        * @return All products
+        * @throws java.rmi.RemoteException If anything went wrong
+        */
+       public Deque<Product> getAllProducts () throws RemoteException;
+
+       /**
+        * Adds given product data from request to database
+        *
+        * @param product Product instance
+        * @throws java.rmi.RemoteException If something unexpected happened
+        * @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the given product title is already used
+        */
+       public void doAdminAddProduct (final Product product) throws RemoteException, ProductTitleAlreadyUsedException;
+}
diff --git a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..cba7829
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * 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.jshopcore.model.product;
+
+import java.io.Serializable;
+import java.rmi.RemoteException;
+import java.util.Deque;
+import javax.ejb.Remote;
+
+/**
+ * An interface for non-admin purposes
+ *
+ * @author Roland Haeder
+ */
+@Remote
+public interface ProductSessionBeanRemote extends Serializable {
+
+       /**
+        * Some "getter" for a linked list of only available products
+        *
+        * @return Only available products
+        * @throws java.rmi.RemoteException If anything went wrong
+        */
+       public Deque<Product> getAvailableProducts () throws RemoteException;
+}
diff --git a/src/org/mxchange/jshopejb/beans/remote/basket/BasketSessionBeanRemote.java b/src/org/mxchange/jshopejb/beans/remote/basket/BasketSessionBeanRemote.java
deleted file mode 100644 (file)
index c0c823b..0000000
+++ /dev/null
@@ -1,89 +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.jshopejb.beans.remote.basket;
-
-import java.io.Serializable;
-import java.rmi.RemoteException;
-import java.util.Map;
-import javax.ejb.Remote;
-import org.mxchange.jshopcore.model.item.AddableBasketItem;
-
-/**
- * An interface for a basket bean
- *
- * @author Roland Haeder
- */
-@Remote
-public interface BasketSessionBeanRemote extends Serializable {
-       /**
-        * Adds given item instance to this basket
-        * @param item Item instance to add
-        * @throws java.rmi.RemoteException If something bad happens
-        */
-       public void addItem (final AddableBasketItem item) throws RemoteException;
-
-       /**
-        * Adds given item instance to basket. Remember that the product instance
-        * itself is not added. Instead a AddableBasketItem is created which holds
-        * information about amoutn and item type.
-        *
-        * @param item Item instance
-        * @throws java.rmi.RemoteException If something bad happens
-        */
-       public void addToBasket (final AddableBasketItem item) throws RemoteException;
-
-       /**
-        * Checks if the basket is empty
-        *
-        * @return Whether the basket is empty
-        * @throws java.rmi.RemoteException If something bad happens
-        */
-       public boolean isEmpty () throws RemoteException;
-
-       /**
-        * Checks whether the given product as already been added. If the product's
-        * item id number was found in basket, the corresponding item instance will be set
-        *
-        * @param item Item instance to check
-        * @return Whether the given item has been found
-        * @throws java.rmi.RemoteException If something bad happens
-        */
-       public boolean isAdded (final AddableBasketItem item) throws RemoteException;
-
-       /**
-        * Some "getter" for all entries in this basket
-        *
-        * @return Map on all basket items
-        * @throws java.rmi.RemoteException If something bad happens
-        */
-       public Map<Long, AddableBasketItem> getAll () throws RemoteException;
-
-       /**
-        * Getter for last entry
-        *
-        * @return Last added item in basket
-        * @throws java.rmi.RemoteException If something bad happens
-        */
-       public AddableBasketItem getLast () throws RemoteException;
-
-       /**
-        * Getter for last num rows
-        * 
-        * @return Last num rows
-        */
-       public int getLastNumRows ();
-}
diff --git a/src/org/mxchange/jshopejb/beans/remote/customer/CustomerSessionBeanRemote.java b/src/org/mxchange/jshopejb/beans/remote/customer/CustomerSessionBeanRemote.java
deleted file mode 100644 (file)
index 7beb9f8..0000000
+++ /dev/null
@@ -1,29 +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.jshopejb.beans.remote.customer;
-
-import java.io.Serializable;
-import javax.ejb.Remote;
-
-/**
- * An interface for customer beans
- *
- * @author Roland Haeder
- */
-@Remote
-public interface CustomerSessionBeanRemote extends Serializable {
-}
diff --git a/src/org/mxchange/jshopejb/beans/remote/data/ShopDataBeanRemote.java b/src/org/mxchange/jshopejb/beans/remote/data/ShopDataBeanRemote.java
deleted file mode 100644 (file)
index 0b12b25..0000000
+++ /dev/null
@@ -1,45 +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.jshopejb.beans.remote.data;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.ejb.Remote;
-import org.mxchange.jcore.model.contact.gender.Gender;
-
-/**
- * A remote interface for static shop data
- *
- * @author Roland Haeder
- */
-@Remote
-public interface ShopDataBeanRemote 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 ();
-}
diff --git a/src/org/mxchange/jshopejb/beans/remote/shop/ShopSessionBeanRemote.java b/src/org/mxchange/jshopejb/beans/remote/shop/ShopSessionBeanRemote.java
deleted file mode 100644 (file)
index ab0b94c..0000000
+++ /dev/null
@@ -1,77 +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.jshopejb.beans.remote.shop;
-
-import java.io.Serializable;
-import java.rmi.RemoteException;
-import java.util.Deque;
-import javax.ejb.Remote;
-import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
-import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
-import org.mxchange.jshopcore.model.category.Category;
-import org.mxchange.jshopcore.model.product.Product;
-
-/**
- * A remote-call interface for the shop
- *
- * @author Roland Haeder
- */
-@Remote
-public interface ShopSessionBeanRemote extends Serializable {
-
-       /**
-        * Some "getter" for a linked list of only available products
-        *
-        * @return Only available products
-        * @throws java.rmi.RemoteException If anything went wrong
-        */
-       public Deque<Product> getAvailableProducts () throws RemoteException;
-
-       /**
-        * Some "getter" for a linked list of all products
-        *
-        * @return All products
-        * @throws java.rmi.RemoteException If anything went wrong
-        */
-       public Deque<Product> getAllProducts () throws RemoteException;
-
-       /**
-        * Some "getter" for a linked list of all categories
-        *
-        * @return All categories
-        * @throws java.rmi.RemoteException If anything went wrong
-        */
-       public Deque<Category> getAllCategories () throws RemoteException;
-
-       /**
-        * Adds given category data from request to database
-        *
-        * @param category Category instance
-        * @throws java.rmi.RemoteException If something unexpected happened
-        * @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given title is already used
-        */
-       public void doAdminAddCategory (final Category category) throws RemoteException, CategoryTitleAlreadyUsedException;
-
-       /**
-        * Adds given product data from request to database
-        *
-        * @param product Product instance
-        * @throws java.rmi.RemoteException If something unexpected happened
-        * @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the given product title is already used
-        */
-       public void doAdminAddProduct (final Product product) throws RemoteException, ProductTitleAlreadyUsedException;
-}