From 3ff1e33d919ea04bc4ef7c41bc0695f2746c3b0c Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 5 Sep 2015 23:47:32 +0200 Subject: [PATCH] =?utf8?q?updated=20jshop-ee-lib.jar=20+=20removed=20depre?= =?utf8?q?cated=20methods=20and=20which=20are=20old=20and=20lost=20here.?= =?utf8?q?=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jshop-ee-lib.jar | Bin 5774 -> 5699 bytes .../application/PizzaApplication.java | 65 ------------- .../application/PizzaServiceApplication.java | 89 ------------------ 3 files changed, 154 deletions(-) diff --git a/lib/jshop-ee-lib.jar b/lib/jshop-ee-lib.jar index 7251376ffc65520c774764a34940d7dd4d318668..5b07dd4b20c721018592964274047b1f2ca9552f 100644 GIT binary patch delta 468 zcmY+AJxc>Y5Qb+rmu!ru$=&4=jTe-FU!Wv~5VSFo#IF=FD&`Qy%Em(QALI%vF&eh8 zGflu!Ar=-M2v^yuzrcWCt&MhZ=Ry=0W}caM-eP8})6SH9a_j`xia# z-OUk*3i^a+0O0Smirsu?$3$$^JnWgL$m`xCFSTr*P-b!2T_uC4D=EZtN0ikZcI&Ep z;iX!_?n5;Z1#KJA)(q}w?zgnHEmX>3v+v*8{62hug9+WB=Zq6+oWJ@LJmdHAm@W^a sw|bR#S_A-NK^)M14J*nY^pfjwP9x=hF91fqYY=Q$CQn67-(v{HA30)scmMzZ delta 511 zcmZXQJ4*vm5QXPnH`yd^NcNG3x;{{R1e6UZ1hr5>d<#l~1`)!F%VO|>8U%lUmWp1) zA`2FRm4y)hfQX=#Vq+l|HkKAPT6$*#idf8iGv`b*=em8bLz)_|5CQ-`0LM9y613iyaG+_Tgh1HTSM4I#<_Q?R^k&Ga8I)=EQDRx3b<#7n{ML*@D(>#209_ZY!0Kgh$ zuf$-6&=RN@p+*EB7d+sy(!^wlZ#Q6KH9h$eUZH zv23o|M%n94{Fh2G&l_RyAs_RIBeNh72tgPqcmY5F0wTzKqM&d`1&u2|4p$-&b={cT z<50!v_K&dmb7f}Pl9Y+%j3<9rqgGU5uueG`5M`srl6XQ=ybvF cswdRLa{f5G*CcdqxpP|SI>Bhtt6>Q64Uuh)(*OVf diff --git a/src/org/mxchange/pizzaapplication/application/PizzaApplication.java b/src/org/mxchange/pizzaapplication/application/PizzaApplication.java index 1a6f286..29658f6 100644 --- a/src/org/mxchange/pizzaapplication/application/PizzaApplication.java +++ b/src/org/mxchange/pizzaapplication/application/PizzaApplication.java @@ -112,43 +112,6 @@ public interface PizzaApplication extends Application { */ public Iterator getAllCategoriesIterator () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException; - /** - * Generates a link for category's parent category. If none is given, the method will return only a small - * note. - * - * @param category Category instance - * @return HTML link for category's parent category - * @deprecated Old lost code - */ - @Deprecated - public String generateLinkForParent (final Category category); - - /** - * Checks if given Product instance is available and returns a printable - * (human-readable) string. - * - * @param product Product instance to check - * @return Human-readable version of product availability - * @deprecated Old lost code - */ - @Deprecated - public String getPrintableProductAvailability (final Product product); - - /** - * Returns a printable (human-readable) string of product's category - * - * @param product Product instance to check - * @return Human-readable version of product availability - * @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? - * @deprecated Old lost code - */ - @Deprecated - public String getPrintableProductCategory (final Product product) throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException; - /** * Adds given category data from request to database * @@ -174,32 +137,4 @@ public interface PizzaApplication extends Application { * @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the product's title is already used */ public void doAdminAddProduct (final Product product) throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, ProductTitleAlreadyUsedException; - - /** - * Handles admin product form requests - * - * @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? - * @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the product's title is already used - * @deprecated Old lost code - */ - @Deprecated - public void doAdminHandleProductForms () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, ProductTitleAlreadyUsedException; - - /** - * Handles admin category form requests - * - * @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? - * @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException The category's title is already used - * @deprecated - */ - @Deprecated - public void doAdminHandleCategoryForms () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, CategoryTitleAlreadyUsedException; } diff --git a/src/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java b/src/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java index d87bf40..fbe20d7 100644 --- a/src/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java +++ b/src/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java @@ -91,28 +91,6 @@ public class PizzaServiceApplication extends BaseFrameworkSystem implements Pizz throw new UnsupportedOperationException("Not supported yet."); //NOI18N } - @Override - @Deprecated - public String getPrintableProductAvailability (final Product product) { - // Trace message - this.getLogger().trace(MessageFormat.format("product={0} - CALLED!", product)); //NOI18N - - // Is it null? - if (null == product) { - // Should not be null - throw new NullPointerException("product is null"); //NOI18N - } - - // Get availability - if (product.getAvailable() == true) { - // Is available - return "Ja"; - } else { - // Not, not for public - return "Nein"; - } - } - @Override @SuppressWarnings ("unchecked") public Iterator getAvailableProductsIterator () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { @@ -257,59 +235,6 @@ public class PizzaServiceApplication extends BaseFrameworkSystem implements Pizz this.getLogger().trace("EXIT!"); //NOI18N } - @Override - @Deprecated - public String generateLinkForParent (final Category category) { - // Trace message - this.getLogger().trace(MessageFormat.format("category={0} - CALLED!", category)); //NOI18N - - // category must not be null - if (null == category) { - // Is null - throw new NullPointerException("category is null"); //NOI18N - } - - // Get parent id - Long parentId = category.getParentId(); - - // Is the id set? - if (parentId > 0) { - // Product HTML code for link - throw new UnsupportedOperationException(MessageFormat.format("parentId={0} - Unfinished!", parentId)); //NOI18N - } - - // No parent set - return "Keine"; - } - - @Override - @Deprecated - public String getPrintableProductCategory (final Product product) throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { - // Trace message - this.getLogger().trace(MessageFormat.format("product={0} - CALLED!", product)); //NOI18N - - // product must not be null - if (null == product) { - // Abort here - throw new NullPointerException("product is null"); //NOI18N - } - - // Declare category - Category category = this.categoryFrontend.getCategory(product); - - // Debug message - this.getLogger().debug(MessageFormat.format("categoryId={0}", category)); //NOI18N - - // Get decoded title - String title = category.getDecodedTitle(); - - // Trace message - this.getLogger().trace(MessageFormat.format("title={0} - EXIT!", title)); //NOI18N - - // Return it - return title; - } - /** * Checks if product's title is already used. * @@ -353,20 +278,6 @@ public class PizzaServiceApplication extends BaseFrameworkSystem implements Pizz //return isUsed; } - @Override - @Deprecated - public void doAdminHandleProductForms () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, ProductTitleAlreadyUsedException { - // Deprecated method called - throw new UnsupportedOperationException("Deprecated method called."); - } - - @Override - @Deprecated - public void doAdminHandleCategoryForms () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, CategoryTitleAlreadyUsedException { - // Deprecated method called - throw new UnsupportedOperationException("Deprecated method called."); - } - /** * Checks if category's title is already used. * -- 2.39.5