]> git.mxchange.org Git - jcontacts-business-lib.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 3 Nov 2017 21:40:38 +0000 (22:40 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 3 Nov 2017 21:40:38 +0000 (22:40 +0100)
- add first business method addEmployee()

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcontactsbusiness/model/employee/AdminEmployeeSessionBeanRemote.java

index 5b7c8969031bb6f13b7583ad56ceb4d08521e070..a09a6d5f8a582dfb3f97e57a909eeb2a4be213e0 100644 (file)
@@ -18,6 +18,7 @@ package org.mxchange.jcontactsbusiness.model.employee;
 
 import java.io.Serializable;
 import javax.ejb.Remote;
+import org.mxchange.jcontactsbusiness.exceptions.employee.EmployeeAlreadyAddedException;
 
 /**
  * An interface for administrative purposes on handling company employee data
@@ -27,4 +28,16 @@ import javax.ejb.Remote;
 @Remote
 public interface AdminEmployeeSessionBeanRemote extends Serializable {
 
+       /**
+        * Adds given employee instance to database. If already found, a proper
+        * exception is thrown.
+        * <p>
+        * @param employee Employee instance to be added
+        * <p>
+        * @return Updated employee instance
+        * <p>
+        * @throws EmployeeAlreadyAddedException
+        */
+       Employable addEmployee (final Employable employee) throws EmployeeAlreadyAddedException;
+
 }