From: Roland Häder Date: Thu, 2 Nov 2017 19:50:11 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0dff02b8cb2b81716550c5837560890fba7e5dc5;p=jcontacts-business-lib.git Continued: - renamed all occurrences from headquarters to headquarter to reduce confusion between singlar and plural naming. Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jcontactsbusiness/model/headquarter/AdminHeadquarterSessionBeanRemote.java b/src/org/mxchange/jcontactsbusiness/model/headquarter/AdminHeadquarterSessionBeanRemote.java new file mode 100644 index 0000000..7292bef --- /dev/null +++ b/src/org/mxchange/jcontactsbusiness/model/headquarter/AdminHeadquarterSessionBeanRemote.java @@ -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 . + */ +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 + *

+ * @author Roland Häder + */ +@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. + *

+ * @param headquarter Headquarter instance + *

+ * @return Updated headquarter instance + *

+ * @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 index 0000000..f37d7b4 --- /dev/null +++ b/src/org/mxchange/jcontactsbusiness/model/headquarter/HeadquarterSessionBeanRemote.java @@ -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 . + */ +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 + *

+ * @author Roland Häder + */ +@Remote +public interface HeadquarterSessionBeanRemote extends Serializable { + + /** + * Returns a list of all headquarters + *

+ * @return A list of all headquarters + */ + List 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 index 5ef695a..0000000 --- a/src/org/mxchange/jcontactsbusiness/model/headquarters/AdminHeadquartersSessionBeanRemote.java +++ /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 . - */ -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 - *

- * @author Roland Häder - */ -@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. - *

- * @param headquarters Headquarter instance - *

- * @return Updated headquarters instance - *

- * @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 index 9b70482..0000000 --- a/src/org/mxchange/jcontactsbusiness/model/headquarters/HeadquartersSessionBeanRemote.java +++ /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 . - */ -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 - *

- * @author Roland Häder - */ -@Remote -public interface HeadquartersSessionBeanRemote extends Serializable { - - /** - * Returns a list of all headquarters - *

- * @return A list of all headquarters - */ - List allHeadquarters (); - -}