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.
* @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;
}
* <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 ();
}