]> git.mxchange.org Git - jshop-lib.git/blobdiff - src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java
Continued a bit:
[jshop-lib.git] / src / org / mxchange / jshopcore / model / product / AdminProductSessionBeanRemote.java
index 3d5397818ee1517f6a14ac1611d588a66b9ddf97..8e926ff46448e0ce965f1a731ed9a68f43d35433 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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;
+
 }