]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Cleanup (no longer used methods? maybe it will come back, who knows ...)
authorRoland Haeder <roland@mxchange.org>
Fri, 4 Sep 2015 17:51:56 +0000 (19:51 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 4 Sep 2015 17:51:56 +0000 (19:51 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/pizzaapplication/application/PizzaApplication.java
src/java/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java
src/java/org/mxchange/pizzaapplication/beans/controller/PizzaBean.java
src/java/org/mxchange/pizzaapplication/beans/controller/PizzaServiceBean.java

index 0b2f79efbb4c2c4526a60a8eddfd6a5df4671641..11495d59ca4e90145fc8de114c6fdd0f5246a7ea 100644 (file)
@@ -203,17 +203,4 @@ public interface PizzaApplication extends Application {
         */
        @Deprecated
        public void doAdminHandleCategoryForms () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, CategoryTitleAlreadyUsedException;
-
-       /**
-        * Some "getter" for a Product instance from given item
-        *
-        * @param item Item instance
-        * @return A Product instance
-        * @throws java.io.IOException If an IO error occurs
-        * @throws java.sql.SQLException If an SQL error occurs
-        * @throws java.lang.NoSuchMethodException If a method was not found
-        * @throws java.lang.IllegalAccessException If the method cannot be accessed publicly
-        * @throws java.lang.reflect.InvocationTargetException If something else happens?
-        */
-       public Product getProduct (final AddableBasketItem item) throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException;
 }
index cd83bce766e19bceea317b77f363bc3e00ad081d..f96e26e65d9a879d994879ecc9fdcdab1b92f03a 100644 (file)
@@ -409,25 +409,4 @@ public class PizzaServiceApplication extends BasePizzaServiceSystem implements P
                // Return it
                return isUsed;
        }
-
-       @Override
-       public Product getProduct (final AddableBasketItem item) throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
-               // Trace message
-               this.getLogger().trace(MessageFormat.format("item={0} - CALLED!", item)); //NOI18N
-
-               // item should not be null
-               if (null == item) {
-                       // Abort here
-                       throw new NullPointerException("item is null"); //NOI18N
-               }
-
-               // Init product instance
-               Product product = this.productFrontend.getProduct(item);
-
-               // Trace message
-               this.getLogger().trace(MessageFormat.format("product={0} - EXIT!", product)); //NOI18N //NOI18N
-
-               // Return it
-               return product;
-       }
 }
index 8ad0547f123b29d417a860ea3599dc502bec95b4..0209793267faeb872b2aae97f2334300ce7a5297 100644 (file)
@@ -24,7 +24,6 @@ import org.mxchange.jshop.beans.FrameworkBean;
 import org.mxchange.jshop.category.Category;
 import org.mxchange.jshop.exceptions.CategoryTitleAlreadyUsedException;
 import org.mxchange.jshop.exceptions.ProductTitleAlreadyUsedException;
-import org.mxchange.jshop.item.AddableBasketItem;
 import org.mxchange.jshop.product.Product;
 
 /**
@@ -155,12 +154,4 @@ public interface PizzaBean extends FrameworkBean {
         */
        @Deprecated
        public void doAdminHandleCategoryForms () throws RemoteException;
-
-       /**
-        * Some "getter" for a product from given item
-        * @param item Item instance
-        * @return A Product instance
-        * @throws java.rmi.RemoteException If something bad happens
-        */
-       public Product getProduct (final AddableBasketItem item) throws RemoteException;
 }
index 66cfb17e3bfd2c5e20569fa26ef0db20a02178ef..a54f1e1c9ba5c1ff44b3674881b0f45eeebe9c5a 100644 (file)
@@ -202,17 +202,6 @@ public class PizzaServiceBean extends BaseFrameworkBean implements PizzaBean {
                throw new UnsupportedOperationException("Deprecated method called");
        }
 
-       @Override
-       public Product getProduct (final AddableBasketItem item) throws RemoteException {
-               try {
-                       // Deligate to application
-                       return this.app.getProduct(item);
-               } catch (IOException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
-                       // Continue to throw
-                       throw new RemoteException("getProductI() failed.", ex);
-               }
-       }
-
        @Override
        @Deprecated
        public String generateLinkForParent (final Category category) {