]> git.mxchange.org Git - jproduct-lib.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 26 Apr 2018 21:31:18 +0000 (23:31 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 26 Apr 2018 23:45:31 +0000 (01:45 +0200)
- added business method for updating product instances

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

index 91fcc6f6b5695243d5d3e140fcb20e76a06f5ffe..6efeea527afb6a2ff6c04e2c269defb1244eabd6 100644 (file)
@@ -19,6 +19,7 @@ package org.mxchange.jproduct.model.product;
 import java.io.Serializable;
 import javax.ejb.Remote;
 import org.mxchange.jproduct.exceptions.product.ProductAlreadyAddedException;
+import org.mxchange.jproduct.exceptions.product.ProductNotFoundException;
 
 /**
  * Product interface for "ADMIN" role
@@ -28,6 +29,17 @@ import org.mxchange.jproduct.exceptions.product.ProductAlreadyAddedException;
 @Remote
 public interface AdminProductSessionBeanRemote extends Serializable {
 
+       /**
+        * Updates given product instance
+        * <p>
+        * @param product Product instance to be updated
+        * <p>
+        * @return Updated instance
+        * <p>
+        * @throws ProductNotFoundException If product was not found
+        */
+       Product updateProductData (final Product product) throws ProductNotFoundException;
+
        /**
         * Adds given product data from request to database
         * <p>