/*
- * Copyright (C) 2015 Roland Haeder
+ * Copyright (C) 2016 - 2024 Free Software Foundation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
import java.util.Deque;
import java.util.Iterator;
import org.mxchange.jcore.application.Application;
-import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
-import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
-import org.mxchange.jshopcore.model.category.Category;
-import org.mxchange.jshopcore.model.product.Product;
+import org.mxchange.jproduct.exceptions.CategoryTitleAlreadyUsedException;
+import org.mxchange.jproduct.exceptions.ProductTitleAlreadyUsedException;
+import org.mxchange.jproduct.model.category.Category;
+import org.mxchange.jproduct.model.product.Product;
/**
*
- * @author Roland Haeder<roland@mxchange.org>
+ * @author Roland Hรคder<roland@mxchange.org>
*/
public interface PizzaApplication extends Application {
* Adds given category data from request to database
* <p>
* @param category Category instance
+ * <p>
* @throws
* org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If
* the category's title has been used
*/
- public void doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException;
+ void doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException;
/**
* Adds given product data from request to database
* <p>
* @param product Product instance
+ * <p>
* @throws
* org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the
* * product's title has been used
*/
- public void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException;
+ void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException;
/**
* Some "getter" for a linked list of all categories
* <p>
* @return All categories
*/
- public Deque<Category> getAllCategories ();
+ Deque<Category> getAllCategories ();
/**
* Some "getter" for a an array of all categories
* <p>
* @return All categories
*/
- public Iterator<Category> getAllCategoriesIterator ();
+ Iterator<Category> getAllCategoriesIterator ();
/**
* Some "getter" for a linked list of all products
* <p>
* @return All products
*/
- public Deque<Product> getAllProducts ();
+ Deque<Product> getAllProducts ();
/**
* Some "getter" for a an array of all products
* <p>
* @return All products
*/
- public Iterator<Product> getAllProductsIterator ();
+ Iterator<Product> getAllProductsIterator ();
/**
* Some "getter" for a linked list of only available products
* <p>
* @return Only available products
*/
- public Deque<Product> getAvailableProducts ();
+ Deque<Product> getAvailableProducts ();
/**
* Some "getter" for a an array of only available products
* <p>
* @return Only available products
*/
- public Iterator<Product> getAvailableProductsIterator ();
+ Iterator<Product> getAvailableProductsIterator ();
/**
* Initializes this instance with given ServletContext
* @throws java.sql.SQLException If an SQL error occurs
* @throws java.io.IOException If an IO error occurs
*/
- public void init () throws SQLException, IOException;
+ void init () throws SQLException, IOException;
}