]> git.mxchange.org Git - jcontacts-business-lib.git/commitdiff
allSomeFooData() is mostly administrative, so let's split it out for now. One
authorRoland Häder <roland@mxchange.org>
Sun, 23 Jul 2017 17:42:12 +0000 (19:42 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 23 Jul 2017 17:42:12 +0000 (19:42 +0200)
exception here is a full user-visible list of all foo-data entries (here
business data).

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

diff --git a/src/org/mxchange/jcontactsbusiness/BusinessDataAdminSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/BusinessDataAdminSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..2bf06d1
--- /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;
+
+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 ();
+
+}
index c521149507bc362f2205833919ce49fdd17a0a54..1d7b240dcfcf5cdc1069b31319f9d056febdaf2c 100644 (file)
@@ -17,7 +17,6 @@
 package org.mxchange.jcontactsbusiness;
 
 import java.io.Serializable;
-import java.util.List;
 import javax.ejb.Remote;
 import org.mxchange.jcontactsbusiness.exceptions.BusinessDataNotFoundException;
 
@@ -42,12 +41,4 @@ public interface BusinessDataSessionBeanRemote extends Serializable {
         */
        BusinessBasicData findBusinessDataById (final Long businessDataId) 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> allBusinessContacts ();
-
 }