/*
- * Copyright (C) 2015 Roland Haeder
+ * Copyright (C) 2016, 2017 Roland Häder
*
* 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
package org.mxchange.jshopcore.model.product;
import java.io.Serializable;
-import java.util.Deque;
+import java.util.List;
import javax.ejb.Remote;
-import org.mxchange.jshopcore.exceptions.CannotAddProductException;
-import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
+import org.mxchange.jproduct.exceptions.CannotAddProductException;
+import org.mxchange.jproduct.exceptions.ProductTitleAlreadyUsedException;
+import org.mxchange.jproduct.model.product.Product;
/**
* Product interface for "ADMIN" role
- *
- * @author Roland Haeder<roland@mxchange.org>
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
*/
@Remote
public interface AdminProductSessionBeanRemote extends Serializable {
/**
* Some "getter" for a linked list of all products
- *
+ * <p>
* @return All products
*/
- public Deque<Product> getAllProducts ();
+ List<Product> getAllProducts ();
/**
* Adds given product data from request to database
- *
+ * <p>
* @param product Product instance
- * @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the given product title is already used
- * @throws org.mxchange.jshopcore.exceptions.CannotAddProductException If something unexpected happened
+ * <p>
+ * @return Updated product instance
+ * <p>
+ * @throws ProductTitleAlreadyUsedException If the given product title is
+ * already used
+ * @throws CannotAddProductException If something unexpected happened
*/
- public void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
+ Product doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
+
}