]> git.mxchange.org Git - jcontacts-business-lib.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 24 Sep 2017 20:59:59 +0000 (22:59 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 24 Sep 2017 20:59:59 +0000 (22:59 +0200)
- added remote interfaces for company departments, admin and general
- general has already 2 first business methods

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcontactsbusiness/model/department/AdminCompanyDepartmentSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jcontactsbusiness/model/department/CompanyDepartmentSessionBeanRemote.java [new file with mode: 0644]

diff --git a/src/org/mxchange/jcontactsbusiness/model/department/AdminCompanyDepartmentSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/department/AdminCompanyDepartmentSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..2f12edc
--- /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.department;
+
+import java.io.Serializable;
+import javax.ejb.Remote;
+
+/**
+ * A remote interface for business contact data
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface AdminCompanyDepartmentSessionBeanRemote extends Serializable {
+
+}
diff --git a/src/org/mxchange/jcontactsbusiness/model/department/CompanyDepartmentSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/department/CompanyDepartmentSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..4b6f6e8
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+ * 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.department;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.ejb.Remote;
+import org.mxchange.jcontactsbusiness.exceptions.department.CompanyDepartmentNotFoundException;
+
+/**
+ * A remote interface for business contact data
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface CompanyDepartmentSessionBeanRemote extends Serializable {
+
+       /**
+        * Retrieves a single company department entity for given id number or
+        * throws a proper exception if not found.
+        * <p>
+        * @param departmentId Company department id to lookup
+        * <p>
+        * @return Company department instance
+        * <p>
+        * @throws CompanyDepartmentNotFoundException If the id number could not be
+        * looked up and solved into an entity
+        */
+       Department findDepartmentById (final Long departmentId) throws CompanyDepartmentNotFoundException;
+
+       /**
+        * Returns a list, even empty if not thing found, from all company
+        * departments. NULL should not be returned by this method.
+        * <p>
+        * @return A list with all company departments
+        */
+       List<Department> allCompanyDepartments ();
+
+}