- renamed administrative business-data interface as this break naming convention
- added thrown exception to generic business-data interface
- added remote interfaces for administrative and general purposes, the general
already have 2 business methods
Signed-off-by: Roland Häder <roland@mxchange.org>
--- /dev/null
+/*
+ * 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;
+
+/**
+ * A remote interface for business contact data
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface AdminBusinessDataSessionBeanRemote extends Serializable {
+
+ /**
+ * 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> allBusinessContacts ();
+
+}
+++ /dev/null
-/*
- * 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;
-
-/**
- * A remote interface for business contact data
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface BusinessDataAdminSessionBeanRemote extends Serializable {
-
- /**
- * 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> allBusinessContacts ();
-
-}
import java.io.Serializable;
import javax.ejb.Remote;
-import org.mxchange.jcontactsbusiness.exceptions.BusinessDataNotFoundException;
+import org.mxchange.jcontactsbusiness.exceptions.basicdata.BusinessDataNotFoundException;
/**
* A remote interface for business contact data
--- /dev/null
+/*
+ * Copyright (C) 2017 Roland Haeder<roland@mxchange.org>
+ *
+ * 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 Haeder<roland@mxchange.org>
+ */
+@Remote
+public interface AdminCompanyEmployeeSessionBeanRemote extends Serializable {
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2017 Roland Haeder<roland@mxchange.org>
+ *
+ * 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 Haeder<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;
+
+}