@Override
public void doBootstrap () {
- throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ throw new UnsupportedOperationException("Not supported yet."); //NOI18N
}
@Override
public void doMainLoop () {
- throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ throw new UnsupportedOperationException("Not supported yet."); //NOI18N
}
@Override
public void doShutdown () {
- throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+ throw new UnsupportedOperationException("Not supported yet."); //NOI18N
}
/**
*/
@Override
public String getPrintableProduktAvailability (final Product product) {
- throw new UnsupportedOperationException(MessageFormat.format("Not supported yet: product={0}", product));
+ throw new UnsupportedOperationException(MessageFormat.format("Not supported yet: product={0}", product)); //NOI18N
}
/**
@Override
public void markAllChoosenProductsAsOrdered (final HttpServletRequest request, final HttpSession session) throws ServletException {
// Trace message
- this.getLogger().trace(MessageFormat.format("request={0},session={1} - CALLED!", request, session));
+ this.getLogger().trace(MessageFormat.format("request={0},session={1} - CALLED!", request, session)); //NOI18N
// Init iterator
Iterator<Product> iterator = this.getProducts();
Product product = iterator.next();
// Debug message
- this.getLogger().debug(MessageFormat.format("product={0}", product));
+ this.getLogger().debug(MessageFormat.format("product={0}", product)); //NOI18N
// Is it choosen?
if (this.isProductChoosen(product, request, session)) {
}
// Trace message
- this.getLogger().trace("EXIT!");
+ this.getLogger().trace("EXIT!"); //NOI18N
}
/**
// Check request method
if (!"POST".equals(request.getMethod())) { //NOI18N
// Not POST, so get from session
- this.getLogger().trace(MessageFormat.format("Calling this.getChooseFromSession({0},{1}) ... - EXIT!", product.getId(), session));
+ this.getLogger().trace(MessageFormat.format("Calling this.getChooseFromSession({0},{1}) ... - EXIT!", product.getId(), session)); //NOI18N
return this.getChooseFromSession(product, session);
} else if (this.isProductOrdered(product, session)) {
// Product is ordered
- this.getLogger().trace(MessageFormat.format("Calling this.getChooseFromSession({0},{1}) ... - EXIT!", product.getId(), session));
+ this.getLogger().trace(MessageFormat.format("Calling this.getChooseFromSession({0},{1}) ... - EXIT!", product.getId(), session)); //NOI18N
return this.getChooseFromSession(product, session);
} else if (!this.getChooseFromSession(product, session).isEmpty()) {
// Found in session
- this.getLogger().trace(MessageFormat.format("Calling this.getChooseFromSession({0},{1}) ... - EXIT!", product.getId(), session));
+ this.getLogger().trace(MessageFormat.format("Calling this.getChooseFromSession({0},{1}) ... - EXIT!", product.getId(), session)); //NOI18N
return this.getChooseFromSession(product, session);
}
this.getLogger().debug(MessageFormat.format("entry {0}={1}", entry.getKey(), entry.getValue())); //NOI18N
}
}
+
+ /**
+ * Adds given category data from request to database
+ *
+ * @param request Request instance
+ */
+ @Override
+ public void doAdminAddCategory (final HttpServletRequest request) {
+ // Trace message
+ this.getLogger().trace(MessageFormat.format("request={0} - CALLED!", request)); //NOI18N
+
+ // Trace message
+ this.getLogger().trace("EXIT!"); //NOI18N
+ }
+
+ /**
+ * Adds given product data from request to database
+ *
+ * @param request Request instance
+ */
+ @Override
+ public void doAdminAddProduct (final HttpServletRequest request) {
+ // Trace message
+ this.getLogger().trace(MessageFormat.format("request={0} - CALLED!", request)); //NOI18N
+
+ // Trace message
+ this.getLogger().trace("EXIT!"); //NOI18N
+ }
}