*/
public Iterator<Category> getAllCategoriesIterator () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException, 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 getPrintableProduktAvailability (final Product product);
/**
* @throws java.lang.reflect.InvocationTargetException If something else happens?
* @throws org.mxchange.jcore.exceptions.BadTokenException If a bad token was found
* @throws org.mxchange.jcore.exceptions.CorruptedDatabaseFileException If the database file is damaged
+ * @deprecated Old lost code
*/
+ @Deprecated
public String getPrintableProductCategory (final Product product) throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, InvocationTargetException;
/**
}
@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, BadTokenException, SQLException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
// Trace message
this.getLogger().trace(MessageFormat.format("product={0} - CALLED!", product)); //NOI18N
*/
public Deque<Category> getAllCategories () throws ServletException;
+ /**
+ * 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 getPrintableProduktAvailability (final Product product);
/**
* @param product Product instance to check
* @return Human-readable version of product availability
* @throws javax.servlet.ServletException If something unexpected happened
+ * @deprecated Old lost code
*/
+ @Deprecated
public String getPrintableProduktCategory (final Product product) throws ServletException;
/**
}
@Override
+ @Deprecated
public String getPrintableProduktAvailability (final Product product) {
return this.app.getPrintableProduktAvailability(product);
}
}
@Override
+ @Deprecated
public String getPrintableProduktCategory (final Product product) throws ServletException {
try {
return this.app.getPrintableProductCategory(product);
throw new ServletException(ex);
}
}
+
+ @Override
+ @Deprecated
+ public String generateLinkForParent (final Category category) {
+ // Deligate to app
+ return this.app.generateLinkForParent(category);
+ }
}