]> git.mxchange.org Git - jcontacts-business-lib.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 2 Nov 2017 19:50:11 +0000 (20:50 +0100)
committerRoland Häder <roland@mxchange.org>
Thu, 2 Nov 2017 20:19:53 +0000 (21:19 +0100)
- renamed all occurrences from headquarters to headquarter to reduce confusion
  between singlar and plural naming.

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcontactsbusiness/model/headquarter/AdminHeadquarterSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jcontactsbusiness/model/headquarter/HeadquarterSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jcontactsbusiness/model/headquarters/AdminHeadquartersSessionBeanRemote.java [deleted file]
src/org/mxchange/jcontactsbusiness/model/headquarters/HeadquartersSessionBeanRemote.java [deleted file]

diff --git a/src/org/mxchange/jcontactsbusiness/model/headquarter/AdminHeadquarterSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/headquarter/AdminHeadquarterSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..7292bef
--- /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.headquarter;
+
+import java.io.Serializable;
+import javax.ejb.Remote;
+import org.mxchange.jcontactsbusiness.exceptions.headquarter.HeadquarterAlreadyAddedException;
+
+/**
+ * An administrative remote interface for company headquarter data
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface AdminHeadquarterSessionBeanRemote extends Serializable {
+
+       /**
+        * Adds given headquarter entity to persistence. If the headquarter'
+        * address was already added, a proper exception is thrown. The parameter is
+        * validated before being accepted like that branchId is not set.
+        * <p>
+        * @param headquarter Headquarter instance
+        * <p>
+        * @return Updated headquarter instance
+        * <p>
+        * @throws HeadquarterAlreadyAddedException If the headquarter' address
+        * was already added
+        */
+       Headquarter addHeadquarter (final Headquarter headquarter) throws HeadquarterAlreadyAddedException;
+
+}
diff --git a/src/org/mxchange/jcontactsbusiness/model/headquarter/HeadquarterSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/headquarter/HeadquarterSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..f37d7b4
--- /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.headquarter;
+
+import org.mxchange.jcontactsbusiness.model.headquarter.Headquarter;
+import java.io.Serializable;
+import java.util.List;
+import javax.ejb.Remote;
+
+/**
+ * A general remote interface for company headquarter data
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface HeadquarterSessionBeanRemote extends Serializable {
+
+       /**
+        * Returns a list of all headquarters
+        * <p>
+        * @return A list of all headquarters
+        */
+       List<Headquarter> allHeadquarters ();
+
+}
diff --git a/src/org/mxchange/jcontactsbusiness/model/headquarters/AdminHeadquartersSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/headquarters/AdminHeadquartersSessionBeanRemote.java
deleted file mode 100644 (file)
index 5ef695a..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.model.headquarters;
-
-import java.io.Serializable;
-import javax.ejb.Remote;
-import org.mxchange.jcontactsbusiness.exceptions.headquarters.HeadquartersAlreadyAddedException;
-
-/**
- * An administrative remote interface for company headquarters data
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface AdminHeadquartersSessionBeanRemote extends Serializable {
-
-       /**
-        * Adds given headquarters entity to persistence. If the headquarters'
-        * address was already added, a proper exception is thrown. The parameter is
-        * validated before being accepted like that branchId is not set.
-        * <p>
-        * @param headquarters Headquarter instance
-        * <p>
-        * @return Updated headquarters instance
-        * <p>
-        * @throws HeadquartersAlreadyAddedException If the headquarters' address
-        * was already added
-        */
-       Headquarter addHeadquarters (final Headquarter headquarters) throws HeadquartersAlreadyAddedException;
-
-}
diff --git a/src/org/mxchange/jcontactsbusiness/model/headquarters/HeadquartersSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/headquarters/HeadquartersSessionBeanRemote.java
deleted file mode 100644 (file)
index 9b70482..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.model.headquarters;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.ejb.Remote;
-
-/**
- * A general remote interface for company headquarters data
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface HeadquartersSessionBeanRemote extends Serializable {
-
-       /**
-        * Returns a list of all headquarters
-        * <p>
-        * @return A list of all headquarters
-        */
-       List<Headquarter> allHeadquarters ();
-
-}