]> git.mxchange.org Git - jcontacts-business-lib.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 10 Sep 2017 19:20:13 +0000 (21:20 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 10 Sep 2017 19:20:13 +0000 (21:20 +0200)
- moved these remote interfaces to 'model' package as they (by convention)
  should be in same package as the "main entity" (what the remote interface is
  all about) is.

Signed-off-by: Roland Häder <roland@mxchange.org>
14 files changed:
src/org/mxchange/jcontactsbusiness/basicdata/AdminBusinessDataSessionBeanRemote.java [deleted file]
src/org/mxchange/jcontactsbusiness/basicdata/BusinessDataSessionBeanRemote.java [deleted file]
src/org/mxchange/jcontactsbusiness/branchoffice/AdminBranchOfficeSessionBeanRemote.java [deleted file]
src/org/mxchange/jcontactsbusiness/branchoffice/BranchOfficeSessionBeanRemote.java [deleted file]
src/org/mxchange/jcontactsbusiness/employee/AdminCompanyEmployeeSessionBeanRemote.java [deleted file]
src/org/mxchange/jcontactsbusiness/employee/CompanyEmployeeSessionBeanRemote.java [deleted file]
src/org/mxchange/jcontactsbusiness/headquarters/CompanyHeadquartersSessionBeanRemote.java [deleted file]
src/org/mxchange/jcontactsbusiness/model/basicdata/AdminBasicCompanyDataSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jcontactsbusiness/model/basicdata/BasicCompanyDataSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jcontactsbusiness/model/branchoffice/AdminBranchOfficeSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jcontactsbusiness/model/branchoffice/BranchOfficeSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jcontactsbusiness/model/employee/AdminCompanyEmployeeSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jcontactsbusiness/model/employee/CompanyEmployeeSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jcontactsbusiness/model/headquarters/CompanyHeadquartersSessionBeanRemote.java [new file with mode: 0644]

diff --git a/src/org/mxchange/jcontactsbusiness/basicdata/AdminBusinessDataSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/basicdata/AdminBusinessDataSessionBeanRemote.java
deleted file mode 100644 (file)
index aee3674..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright (C) 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcontactsbusiness.basicdata;
-
-import java.io.Serializable;
-import javax.ejb.Remote;
-import org.mxchange.jcontactsbusiness.exceptions.basicdata.BusinessDataAlreadyAddedException;
-
-/**
- * A remote interface for business contact data
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface AdminBusinessDataSessionBeanRemote extends Serializable {
-
-       /**
-        * Adds basic business data to database, if not found. If found, a proper
-        * exception is being thrown.
-        * <p>
-        * @param basicData Basic data to be persisted
-        * <p>
-        * @return Updated basic data
-        * <p>
-        * @throws BusinessDataAlreadyAddedException If the company name was already
-        * found
-        */
-       BusinessBasicData addCompanyBasicData (final BusinessBasicData basicData) throws BusinessDataAlreadyAddedException;
-
-}
diff --git a/src/org/mxchange/jcontactsbusiness/basicdata/BusinessDataSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/basicdata/BusinessDataSessionBeanRemote.java
deleted file mode 100644 (file)
index a7c3fda..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright (C) 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcontactsbusiness.basicdata;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.ejb.Remote;
-import org.mxchange.jcontactsbusiness.exceptions.basicdata.BusinessDataNotFoundException;
-
-/**
- * A remote interface for business contact data
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface BusinessDataSessionBeanRemote extends Serializable {
-
-       /**
-        * Checks whether given company name already exists
-        * <p>
-        * @param companyName Company name to check
-        * <p>
-        * @return Whether the company name exists
-        */
-       Boolean isCompanyNameUsed (final String companyName);
-
-       /**
-        * Retrieves a single business data entity for given id number or throws a
-        * proper exception if not found.
-        * <p>
-        * @param basicDataId Company basic data id to lookup
-        * <p>
-        * @return Business contact instance
-        * <p>
-        * @throws BusinessDataNotFoundException If the id number could not be
-        * looked up and solved into an entity
-        */
-       BusinessBasicData findBasicDataById (final Long basicDataId) throws BusinessDataNotFoundException;
-
-       /**
-        * Returns a list, even empty if not thing found, from all business
-        * contacts. NULL should not be returned by this method.
-        * <p>
-        * @return A list with all business contacts
-        */
-       List<BusinessBasicData> allCompanyBasicData ();
-
-}
diff --git a/src/org/mxchange/jcontactsbusiness/branchoffice/AdminBranchOfficeSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/branchoffice/AdminBranchOfficeSessionBeanRemote.java
deleted file mode 100644 (file)
index ddf6af4..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (C) 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcontactsbusiness.branchoffice;
-
-import java.io.Serializable;
-import javax.ejb.Remote;
-import org.mxchange.jcontactsbusiness.exceptions.branchoffice.BranchOfficeAlreadyAddedException;
-
-/**
- * A remote interface for business contact data
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface AdminBranchOfficeSessionBeanRemote extends Serializable {
-
-       /**
-        * Adds given branch office entity to persistence. If the branch office's
-        * address was already added, a proper exception is thrown. The parameter is
-        * validated before being accepted like that branchId is not set.
-        * <p>
-        * @param branchOffice Branch office instance
-        * <p>
-        * @return Updated branch office instance
-        * <p>
-        * @throws BranchOfficeAlreadyAddedException If the branch office's address
-        * was already added
-        */
-       BranchOffice addBranchOffice (final BranchOffice branchOffice) throws BranchOfficeAlreadyAddedException;
-
-}
diff --git a/src/org/mxchange/jcontactsbusiness/branchoffice/BranchOfficeSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/branchoffice/BranchOfficeSessionBeanRemote.java
deleted file mode 100644 (file)
index 029a1ce..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcontactsbusiness.branchoffice;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.ejb.Remote;
-
-/**
- * A remote interface for business contact data
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface BranchOfficeSessionBeanRemote extends Serializable {
-
-       /**
-        * Returns a list of all branch offices
-        * <p>
-        * @return All branch offices
-        */
-       List<BranchOffice> allBranchOffices ();
-
-}
diff --git a/src/org/mxchange/jcontactsbusiness/employee/AdminCompanyEmployeeSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/employee/AdminCompanyEmployeeSessionBeanRemote.java
deleted file mode 100644 (file)
index 3e9fb0d..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (C) 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcontactsbusiness.employee;
-
-import java.io.Serializable;
-import javax.ejb.Remote;
-
-/**
- * An interface for administrative purposes on handling company employee data
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface AdminCompanyEmployeeSessionBeanRemote extends Serializable {
-
-}
diff --git a/src/org/mxchange/jcontactsbusiness/employee/CompanyEmployeeSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/employee/CompanyEmployeeSessionBeanRemote.java
deleted file mode 100644 (file)
index 68da109..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright (C) 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcontactsbusiness.employee;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.ejb.Remote;
-import org.mxchange.jcontactsbusiness.exceptions.employee.CompanyEmployeeNotFoundException;
-
-/**
- * An interface for company employee data being handled
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface CompanyEmployeeSessionBeanRemote extends Serializable {
-
-       /**
-        * Returns a list of all company employees (regardless in which company they work)
-        * <p>
-        * @return A list of all company employees
-        */
-       List<Employee> allCompanyEmployees ();
-
-       /**
-        * Finds a company employee by given employee id
-        * <p>
-        * @param employeeId Employee id to find company employee instance for
-        * <p>
-        * @return Company employee instance
-        * <p>
-        * @throws CompanyEmployeeNotFoundException If the company employee was not
-        * found
-        */
-       Employee findCompanyEmployeeById (final Long employeeId) throws CompanyEmployeeNotFoundException;
-
-}
diff --git a/src/org/mxchange/jcontactsbusiness/headquarters/CompanyHeadquartersSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/headquarters/CompanyHeadquartersSessionBeanRemote.java
deleted file mode 100644 (file)
index a17fbad..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (C) 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcontactsbusiness.headquarters;
-
-import java.io.Serializable;
-import javax.ejb.Remote;
-import org.mxchange.jcontactsbusiness.exceptions.headquarters.CompanyHeadquartersNotFoundException;
-
-/**
- * A remote interface for company headquarters data
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface CompanyHeadquartersSessionBeanRemote extends Serializable {
-
-       /**
-        * Tries to find company headquarters data by given id number. If not found,
-        * a proper exception is thrown.
-        * <p>
-        * @param headquartersId <p>
-        * @return Headquarters data entity
-        * <p>
-        * @throws CompanyHeadquartersNotFoundException If no headquarters data
-        * could be found
-        */
-       HeadquartersData findCompanyHeadquartersById (final Long headquartersId) throws CompanyHeadquartersNotFoundException;
-
-}
diff --git a/src/org/mxchange/jcontactsbusiness/model/basicdata/AdminBasicCompanyDataSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/basicdata/AdminBasicCompanyDataSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..b5bff98
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontactsbusiness.model.basicdata;
+
+import java.io.Serializable;
+import javax.ejb.Remote;
+import org.mxchange.jcontactsbusiness.exceptions.basicdata.BasicCompanyDataAlreadyAddedException;
+import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
+
+/**
+ * A remote interface for business contact data
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface AdminBasicCompanyDataSessionBeanRemote extends Serializable {
+
+       /**
+        * Adds basic business data to database, if not found. If found, a proper
+        * exception is being thrown.
+        * <p>
+        * @param basicData Basic data to be persisted
+        * <p>
+        * @return Updated basic data
+        * <p>
+        * @throws BasicCompanyDataAlreadyAddedException If the company name was already
+        * found
+        */
+       BusinessBasicData addCompanyBasicData (final BusinessBasicData basicData) throws BasicCompanyDataAlreadyAddedException;
+
+}
diff --git a/src/org/mxchange/jcontactsbusiness/model/basicdata/BasicCompanyDataSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/basicdata/BasicCompanyDataSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..967fcb2
--- /dev/null
@@ -0,0 +1,63 @@
+/*
+ * Copyright (C) 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontactsbusiness.model.basicdata;
+
+import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
+import java.io.Serializable;
+import java.util.List;
+import javax.ejb.Remote;
+import org.mxchange.jcontactsbusiness.exceptions.basicdata.BasicCompanyDataNotFoundException;
+
+/**
+ * A remote interface for business contact data
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface BasicCompanyDataSessionBeanRemote extends Serializable {
+
+       /**
+        * Checks whether given company name already exists
+        * <p>
+        * @param companyName Company name to check
+        * <p>
+        * @return Whether the company name exists
+        */
+       Boolean isCompanyNameUsed (final String companyName);
+
+       /**
+        * Retrieves a single business data entity for given id number or throws a
+        * proper exception if not found.
+        * <p>
+        * @param basicDataId Company basic data id to lookup
+        * <p>
+        * @return Business contact instance
+        * <p>
+        * @throws BasicCompanyDataNotFoundException If the id number could not be
+        * looked up and solved into an entity
+        */
+       BusinessBasicData findBasicDataById (final Long basicDataId) throws BasicCompanyDataNotFoundException;
+
+       /**
+        * Returns a list, even empty if not thing found, from all business
+        * contacts. NULL should not be returned by this method.
+        * <p>
+        * @return A list with all business contacts
+        */
+       List<BusinessBasicData> allCompanyBasicData ();
+
+}
diff --git a/src/org/mxchange/jcontactsbusiness/model/branchoffice/AdminBranchOfficeSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/branchoffice/AdminBranchOfficeSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..c1eda41
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontactsbusiness.model.branchoffice;
+
+import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
+import java.io.Serializable;
+import javax.ejb.Remote;
+import org.mxchange.jcontactsbusiness.exceptions.branchoffice.BranchOfficeAlreadyAddedException;
+
+/**
+ * A remote interface for business contact data
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface AdminBranchOfficeSessionBeanRemote extends Serializable {
+
+       /**
+        * Adds given branch office entity to persistence. If the branch office's
+        * address was already added, a proper exception is thrown. The parameter is
+        * validated before being accepted like that branchId is not set.
+        * <p>
+        * @param branchOffice Branch office instance
+        * <p>
+        * @return Updated branch office instance
+        * <p>
+        * @throws BranchOfficeAlreadyAddedException If the branch office's address
+        * was already added
+        */
+       BranchOffice addBranchOffice (final BranchOffice branchOffice) throws BranchOfficeAlreadyAddedException;
+
+}
diff --git a/src/org/mxchange/jcontactsbusiness/model/branchoffice/BranchOfficeSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/branchoffice/BranchOfficeSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..862db15
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontactsbusiness.model.branchoffice;
+
+import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
+import java.io.Serializable;
+import java.util.List;
+import javax.ejb.Remote;
+
+/**
+ * A remote interface for business contact data
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface BranchOfficeSessionBeanRemote extends Serializable {
+
+       /**
+        * Returns a list of all branch offices
+        * <p>
+        * @return All branch offices
+        */
+       List<BranchOffice> allBranchOffices ();
+
+}
diff --git a/src/org/mxchange/jcontactsbusiness/model/employee/AdminCompanyEmployeeSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/employee/AdminCompanyEmployeeSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..0f8fd97
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontactsbusiness.model.employee;
+
+import java.io.Serializable;
+import javax.ejb.Remote;
+
+/**
+ * An interface for administrative purposes on handling company employee data
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface AdminCompanyEmployeeSessionBeanRemote extends Serializable {
+
+}
diff --git a/src/org/mxchange/jcontactsbusiness/model/employee/CompanyEmployeeSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/employee/CompanyEmployeeSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..8c0479b
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontactsbusiness.model.employee;
+
+import org.mxchange.jcontactsbusiness.model.employee.Employee;
+import java.io.Serializable;
+import java.util.List;
+import javax.ejb.Remote;
+import org.mxchange.jcontactsbusiness.exceptions.employee.CompanyEmployeeNotFoundException;
+
+/**
+ * An interface for company employee data being handled
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface CompanyEmployeeSessionBeanRemote extends Serializable {
+
+       /**
+        * Returns a list of all company employees (regardless in which company they work)
+        * <p>
+        * @return A list of all company employees
+        */
+       List<Employee> allCompanyEmployees ();
+
+       /**
+        * Finds a company employee by given employee id
+        * <p>
+        * @param employeeId Employee id to find company employee instance for
+        * <p>
+        * @return Company employee instance
+        * <p>
+        * @throws CompanyEmployeeNotFoundException If the company employee was not
+        * found
+        */
+       Employee findCompanyEmployeeById (final Long employeeId) throws CompanyEmployeeNotFoundException;
+
+}
diff --git a/src/org/mxchange/jcontactsbusiness/model/headquarters/CompanyHeadquartersSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/headquarters/CompanyHeadquartersSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..4d968e0
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontactsbusiness.model.headquarters;
+
+import org.mxchange.jcontactsbusiness.model.headquarters.HeadquartersData;
+import java.io.Serializable;
+import javax.ejb.Remote;
+import org.mxchange.jcontactsbusiness.exceptions.headquarters.CompanyHeadquartersNotFoundException;
+
+/**
+ * A remote interface for company headquarters data
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface CompanyHeadquartersSessionBeanRemote extends Serializable {
+
+       /**
+        * Tries to find company headquarters data by given id number. If not found,
+        * a proper exception is thrown.
+        * <p>
+        * @param headquartersId <p>
+        * @return Headquarters data entity
+        * <p>
+        * @throws CompanyHeadquartersNotFoundException If no headquarters data
+        * could be found
+        */
+       HeadquartersData findCompanyHeadquartersById (final Long headquartersId) throws CompanyHeadquartersNotFoundException;
+
+}