]> git.mxchange.org Git - jproduct-lib.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 25 Apr 2020 18:14:55 +0000 (20:14 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 25 Apr 2020 18:17:39 +0000 (20:17 +0200)
- removed no longer used fetchAvailableCategories() as this shall be done in
  web container
- added checked CategoryNotFoundException to method signature
- renamed methods according naming-convention

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jproduct/model/category/AdminCategorySessionBeanRemote.java
src/org/mxchange/jproduct/model/category/CategorySessionBeanRemote.java
src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java

index 4c532daf6b3e6ca23a8e9a37f9f97aff538ecf16..68c61484101e5aa90a837e22618a1748803215d6 100644 (file)
@@ -19,6 +19,7 @@ package org.mxchange.jproduct.model.category;
 import java.io.Serializable;
 import javax.ejb.Remote;
 import org.mxchange.jproduct.exceptions.category.CategoryAlreadyAddedException;
+import org.mxchange.jproduct.exceptions.category.CategoryNotFoundException;
 
 /**
  * An interface for categories for "ADMIN" role.
@@ -45,7 +46,9 @@ public interface AdminCategorySessionBeanRemote extends Serializable {
         * @param category Category instance
         * <p>
         * @return Updated category instance
+        * <p>
+        * @throws CategoryNotFoundException If the given category was not found
         */
-       Category updateProductCategory (final Category category);
+       Category updateProductCategory (final Category category) throws CategoryNotFoundException;
 
 }
index 4a886f17303c517323d9921ba5587f665019aed5..bea0901182593793a49a46bfee30d07786f358a4 100644 (file)
@@ -33,6 +33,6 @@ public interface CategorySessionBeanRemote extends Serializable {
         * <p>
         * @return All categories
         */
-       List<Category> allCategories ();
+       List<Category> fetchAllProductCategories ();
 
 }
index bed31d21067574798ebf7b14c61bc5c1b088df92..8e26a6b9827b7a0fdd29bcf997e435dd6ed84027 100644 (file)
@@ -33,13 +33,6 @@ public interface ProductSessionBeanRemote extends Serializable {
         * <p>
         * @return All products
         */
-       List<Product> allProducts ();
-
-       /**
-        * Some "getter" for a linked list of only available products
-        * <p>
-        * @return Only available products
-        */
-       List<Product> allAvailableProducts ();
+       List<Product> fetchAllGenericProducts ();
 
 }