*/
@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;
}
// 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;
- }
}
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;
/**
*/
@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;
}
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) {